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

How to get access to the Combo Box on Checkbox click event on client side

2 Answers 57 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Emmanuel
Top achievements
Rank 1
Emmanuel asked on 08 Dec 2010, 02:42 AM

I have 2 combobox with checkbox generated on server side. The id of combo is depending on some event that I don’t know on client side. I have click event of the checkbox on client side. I have spent some times with the html generated by Telerik with those control, and I don’t see any way to associate the check box with the combobox. Is there any way server side (adding some properties while binding checkbox for example to indicate the combo ID), or on client side with jQuery. I tried the $('div.RadComboBox_Default’) but I get both combo. Any help would be greatly appreciated.

 

2 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 08 Dec 2010, 09:17 AM
Hello Emmanuel,

You can use the control's ClientID to access it with jQuery on the client, check this article for more info how.

All the best,
Kamen Bundev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Emmanuel
Top achievements
Rank 1
answered on 08 Dec 2010, 10:59 PM
thank you Kamen for your reply, but as i mentioned on my  first post the id of the combox is defined at server and is not always the same, so I can't use the jquery ID selector. Anyway i found another way to resolve my problem. Thanks again.
Tags
ComboBox
Asked by
Emmanuel
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Emmanuel
Top achievements
Rank 1
Share this question
or