how to get the edit template controls on any dropdown change event in edit mode

Last post 06-24-2009 3:11 AM by dhpraveen. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-23-2009 1:16 PM

    how to get the edit template controls on any dropdown change event in edit mode

     Hi Sonu,

    I am using ajax datalist for my application. When I edit a row, I have three dropdowns and two radio buttons. I populate just one dropdown on Edit command, and the other two should populate on the chnage event of the first dropdown. When I try to do this calling a client side function I cannot access the dropdowns used in the edit template as these controls do not render as html controls. Is there a way to find these controls outside the command functions of the datalist.  

    I have used the datalist to best of my requirement in the project, but here its hurting me.

    Please guide me for the same.

    Praveen

     

     

  •  Advertisement

    Featured Advertisement

     
  • 06-23-2009 1:28 PM In reply to

    • Sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,081
    • MVP

    Re: how to get the edit template controls on any dropdown change event in edit mode

    You should be able to use item.findControl("controlId").

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
  • 06-24-2009 3:11 AM In reply to

    Re: how to get the edit template controls on any dropdown change event in edit mode

     Got a solution.

    _datalist.getEditItem().findControl("ControlId");

    Since I am accessing the controls outside the command events, I need to explicitly call the _datalist.getEditItem()

    --

    Praveen

     

Page 1 of 1 (3 items)