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

LoadOnDemand - 3 combo boxes use values from previous?

1 Answer 24 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 18 Jun 2012, 10:33 AM
Hi,
I am trying to load 3 combo boxes using LoadOnDemand (or a similar method that doesnt require post backs).  The pseudo idea is that, the first box contains a list of books, then on selection of a book they get a list of chapter names for that book and they would select a chapter and then finally the third box would populate and contain a list of say paragraphs.

My issue is that when using LoadOnDemand the back end isn't able to receive the value of the previous box.  What would be the best way about doing this?  I understand I could use ajax but it seems really messy to pass it all back as strings to the front end.  I am pretty sure there must be some way to use LoadOnDemand how i require but i just cant seem to find it.

Many Thanks,
Michael


1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 19 Jun 2012, 09:59 AM
Hi Michael,

Take a look at the following online demo showing an application scenario for related RadComboBoxes: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx.
The RadComboBoxes in the aforementioned demo are using their client as well as server API to achieve the related controls scenario. The data of the selected item in the first RadComboBoxm, and the second RadComboBox respectively, is transferred to the server via the requestItems client method, and it is retrieved on the server by the RadComboBoxItemsRequestedEventArgs's Text property (see the ItemsRequested server event handler).

I hope this will help.

All the best,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ComboBox
Asked by
Michael
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or