Friday, February 21, 2014

Getting Telerik Control Object which is in Item Template.

 

 

 Lets consider that your RadComboBox is in ItemTemplate.

 So here $find(<%=RadComboxID.ClientID%>); will not work as the control is in item template.

  1. We need to first find the radcombobox
  2. Get the id of it
  3. And then use it with $find()
  4. Now you can use the inbuilt telerik methods on the object of radcombobox
  var RadComboxID= $("[id$='RadComboxID']").attr("id");
  var objradcombobox=$find(RadComboxID);            //Here you got the object of RadComboBox 
  objradcombobox.get_selectedvalue();   //use telerik methods with radcombox object

No comments:

Post a Comment