Related Combo Boxes with Items Requested

5 posts, 0 answers
  1. Shane
    Shane avatar
    4 posts
    Member since:
    Jan 2010

    Posted 25 Feb 2010 Link to this post

    Hi

    I am using LoadOnDemand and therefore the ItemsRequested. However this is causing problems in when one combo depends on another. The problem I am having is a user selects a value from combobox1 and then goes to combobox2. Combobox2 fires the ItemsRequested (but there aren't many items / user scrolls to end of the list) so e.EndOfItems is set to true. This means the ItemsRequested is no longer fired if the user then changes combobox1.

    Whilst I'm am handling the SelectedIndexChanged event of combobox1, nothing I do seems to enable the ItemsRequested on Combobox2. 

    Regards,
    Shane
  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 25 Feb 2010 Link to this post

    I believe this demo should be of help to you.


    It uses the LoadOnDemand approach. It populates the dependent comboboxes using client-side methods. 

    I hope that helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shane
    Shane avatar
    4 posts
    Member since:
    Jan 2010

    Posted 25 Feb 2010 Link to this post

    Thanks for your reply but I had checked this example before posting and I don't believe the demo is of help. That demo fires the ItemRequested for the related combo using the client side  combo.requestItems when the first combos selected index changes. this is all well and good just like my current solution until the related combobox sets the EndOfItems to true in the ItemRequested, as once this is set the ItemRequested event is no longer fired, thats my point.

    So how do I reset the EndOfItems? or allow the ItemsRequested event to be refired once it has been disabled through the EndOfItems.


  5. Shane
    Shane avatar
    4 posts
    Member since:
    Jan 2010

    Posted 25 Feb 2010 Link to this post

    It works in an ajax panel i'll just use that.

    Cheers,
    Shane
  6. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 01 Mar 2010 Link to this post

    Hi Shane,

    You can use set_endOfItems(value) whenever you need to force the RadComboBox to load new Items. In your case, this can happen prior to calling the requestItems of the respective RCB.

    Kind regards,
    Simon
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017