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

SelectedValue not work with ShowMoreResultBox

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bharat veer
Top achievements
Rank 1
bharat veer asked on 03 Sep 2011, 11:36 AM
I have a Radcombobox that is bind from the database.
i have put the following properties TRUE
ShowMoreResultsBox=true
EnableVirtualScrolling=true
EnableLoadOnDemand=true
ItemPerRequest=20
it works fine.
Suppose i add a Employee record. on the Employee add form there is a Radcombobox that have the Cities filled with it from the City table in database. when i click on the Radcombobox with each request next 20 cities are shown, its fine. Selected city suppose "California" is selected and inserted in database.
now when i come in edit mode i write down the code to select the california that was already added in database.
RadCombobox1.SelectedValue=20;  //California State ID from the database.
but it is not shown by default unless we click on the radCombobox.
I want that Seleceted state should be displayed by default and as well as pagination should be worked with above mentioned properties.

 

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 06 Sep 2011, 03:58 PM
Hi Bharat,

The scenario you described is an expected behavior for the RadComboBox when you are using LoadOnDemand.

As a workaround of the problem you can subscribe to the OnClientLoad event to set the text of the selected item in the ComboBox's input.

You can refer to the Troubleshoot and Load On Demand Support sections of the RadComboBox control to learn more about its behavior when using LoadOnDemand.

Regards,
Ivana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
General Discussions
Asked by
bharat veer
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or