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

ComboBox update another ComboBox

4 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
tim
Top achievements
Rank 1
tim asked on 22 Oct 2010, 02:35 PM
hi

I've run into another wee issue, I have a text box (bog standard one) that when I type in part or all of a company name populates a dropdown commbobox (with checkboxes), that all works fine what  need to do is when they select a company from the new list I want it to update another list, but I dont seem to have anyway of capturing the fact that the text has changed in the combobox. I've tried all manner of ways, behind and in the page but I cant get the  OnTextChanged="CaseType_TextChanged" in the same way it works for the text box. Ive tried  ddlCaseList.TextChanged +=new EventHandler(ddlCaseList_TextChanged); but to no avail. I just need to know where to put the the call which captures the event that will fire the event handler!


any thoughts ?

thanks

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Oct 2010, 02:44 PM
Hi Tim,

Please refer to the Related ComboBoxes online example which shows how the comboboxes can interact with each other using client-side methods and requesting the items on demand.

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
tim
Top achievements
Rank 1
answered on 22 Oct 2010, 03:37 PM
hi

I had seen that but couldn't work it out with the checkboxes as well, anyway I have it working now so thank you for that, but..... if I select multiple checkboxes it falls over (no error) just doesnt fire the LoadCases(combo, eventArqs) function at all (its the LoadCities function in the example).

any ideas ?

thanks
tim
0
tim
Top achievements
Rank 1
answered on 22 Oct 2010, 04:27 PM
sorted, changed the LoadCases function to

function LoadCases(caseList)
{   
    casesCombo.set_text("Loading...");
    casesCombo.requestItems(caseList, false);                   
}

and then call LoadCases(text); from within the onCheckBoxClick(chk) function and this passes it across, loads the item numbers and opens the dropdown for me.

0
Pavlina
Telerik team
answered on 25 Oct 2010, 12:05 PM
Hi Tim,

I am glad to know that you managed to solve the problem. Please do not hesitate to write us back if any issues arise.

All the best,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
tim
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
tim
Top achievements
Rank 1
Share this question
or