LoadOnDemand - 3 combo boxes use values from previous?

2 posts, 0 answers
  1. Michael
    Michael avatar
    31 posts
    Member since:
    Dec 2011

    Posted 18 Jun 2012 Link to this post

    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


  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 19 Jun 2012 Link to this post

    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.
Back to Top