This is a migrated thread and some comments may be shown as answers.

[Solved] Client API and Disable LoadOnDemand from client side

3 Answers 151 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Gourangi
Top achievements
Rank 1
Gourangi asked on 25 Jun 2008, 11:27 AM
hi,

i have a user control and it has a combo.
this control is placed in gridview itemtemplate now it should be like when i select particular item from 1st row's combo, it should filter 2nd row's combo and disable its loadondemand property !

regards,

Divyesh

3 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 26 Jun 2008, 02:46 PM
Hello Divyesh ,

Please see our online example - http://www.telerik.com/demos/aspnet/prometheus/ComboBox/Examples/Functionality/MultipleComboBoxes/DefaultCS.aspx

I hope this will get you started.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gourangi
Top achievements
Rank 1
answered on 27 Jun 2008, 03:37 AM
hi,

thats good but i have a combo in usercontrol, how do i get clientid for nextrow's usercontrol combo !

and i think i have to attach javascript in gridview's itemdatabound event because if i write it somewhere else, it will remove it .

and i want to desiable loadondemand for particular combo on client side !

thanks for your response
0
Rosi
Telerik team
answered on 30 Jun 2008, 07:53 AM
Hello Divyesh Chapaneri,

Please read our help article - Finding combobox on the client-side when it is embedded in another control
Also, you can simply get these comboboxes from the array Telerik.Web.UI.RadComboBox.ComboBoxes
RadComboBox exposes this  array at the client-side that contains all the combobox instances.

for example:
<script> 
   function pageLoad()  
   {  
       var combo1 = Telerik.Web.UI.RadComboBox.ComboBoxes[0];  
       var combo2 = Telerik.Web.UI.RadComboBox.ComboBoxes[1];  
       var combo3 = Telerik.Web.UI.RadComboBox.ComboBoxes[2];  
   }  
</script> 
<telerik:RadGrid ID="RadGrid1" runat="server" ...> 
   ...  
    <EditItemTemplate> 
       <telerik:RadComboBox ID="RadComboBox1" runat="server"></telerik:RadComboBox> 
       <telerik:RadComboBox ID="RadComboBox2" runat="server"></telerik:RadComboBox> 
       <telerik:RadComboBox ID="RadComboBox3" runat="server"></telerik:RadComboBox> 
   </EditItemTemplate> 
   ...  
</telerik:RadGrid>  

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Gourangi
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Gourangi
Top achievements
Rank 1
Share this question
or