How to Select Item after Initiating requestItems Callback

2 posts, 0 answers
  1. sara
    sara avatar
    31 posts
    Member since:
    May 2007

    Posted 10 Jun 2008 Link to this post

    How do you select an item after manually firing a requestItems callback?  I'm calling:

    combo.requestItems(valueToSelect, false); 

    The valueToSelect is the value I want selected in the combo box.  I've tried selecting the item when populating the list on the server during the callback, but this doesn't work.  It used to work in RadControls for ASP.NET, but in this version it does not work.  I've read several posts about how you can't do this. 

    So, my question is, how do I select the item in the combo box without using a global javascript variable?

  2. Simon
    Simon avatar
    2281 posts

    Posted 12 Jun 2008 Link to this post

    Hello sara,

    You could hook on the OnClientItemsRequested event of the ComboBox and there find the Item by value and select it. Unfortunately this will require a global variable.

    Still, depending on your specific case there might be a solution which does not involve a global variable. However without first looking at your client-side logic I would not be able to suggest one.

    How do you determine the valueToSelect value before requesting Items from the server?

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top