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

finding the client Id of combo box inside panel bar

2 Answers 52 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Anjali
Top achievements
Rank 1
Anjali asked on 09 Jun 2011, 11:00 PM
i am using the example of related combo box

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

The only problem, I am having is my combo box is inside the RadpanelBar. I could not figure out what to write for this

function pageLoad()
{
    // initialize the global variables
    // in this event all client objects
    // are already created and initialized
    countriesCombo = $find("<%= RadComboBox2.ClientID %>");    
    citiesCombo = $find("<%= RadComboBox3.ClientID %>");
}


when I do this
$find("<%= RadComboBox2.ClientID %>");    

It could not find the control because this combo box is inside the rad panel bar. can anyone please tell me the script to get the client ID of the control inside the radpanel bar,

any help will be apprecaited.

2 Answers, 1 is accepted

Sort by
0
Accepted
Kalina
Telerik team
answered on 10 Jun 2011, 03:39 PM
Hi Anjali,

Please take a look at the “Finding combobox on the client-side when it is embedded in another control”  help article.

Kind regards,
Kalina
the Telerik team

Browse the vast support resources we have to jump start 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
Anjali
Top achievements
Rank 1
answered on 10 Jun 2011, 09:12 PM
Thanks Kalina!
Tags
ComboBox
Asked by
Anjali
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Anjali
Top achievements
Rank 1
Share this question
or