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

[Solved] Display selected item and other items as well

1 Answer 121 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Adam Plattner
Top achievements
Rank 1
Adam Plattner asked on 07 Dec 2009, 04:34 PM

The default behavior of combox with on demand feature is when user selects an item for list, and it saves into database. Then when the page reloads or redisplays, it displays as 1 of 1 record. Without remove the item, the other items won’t display. We would like the combox to behavior more like regular list box which selects the item and also list the other records. Without remove the selection, user should able to use on demand feature to fetch more items. Can this be done?

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 10 Dec 2009, 01:24 PM
Hi Adam Plattner,

You can subscribe to the OnClientDropDownOpened event of the combobox and invoke the requestItems method of the combo:

function onClientDropDownOpened(sender, e) {
  sender.requestItems("", false);
}

This will trigger the ItemsRequested server event (having e.Text = empty string) so all the items will be shown.

Let me know if this helps.

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Adam Plattner
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or