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

ComboBox in RadWindow holds previous state

3 Answers 52 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Richard M
Top achievements
Rank 1
Richard M asked on 23 Jun 2010, 10:46 PM
I have a RadWindow1 in my Page1.aspx page which opens up Page2.aspx in my RadWindow1.  In Page2.aspx I have a RadComboBox.  I want the RadWindow1 to always open with ComboBox1.SelectedItem = 0, but everytime the RadWindow is open, it keeps its previous state.  I tried setting EnableViewState = False, but it did not work.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Jun 2010, 12:03 PM
Hello,

Try setting 'DestroyOnClose' property of RadWindow to "True", which will prevent the caching feature of RadWindow and to destroy the client object when it is closed.

-Shinu.
0
Richard M
Top achievements
Rank 1
answered on 24 Jun 2010, 04:09 PM
I did try that, and unfortunately you would have to recreate the window in code behind every time you bring it up.  But I did find that if I set ReloadOnShow="true" in my RadWindow, it will reload all of the controls, and then I can write code in Page2.aspx.vb which will reset my controls to SelectedItemIndex = 0 or to "".  Thank you for your help.
0
Simon
Telerik team
answered on 28 Jun 2010, 01:07 PM
Hi Richard M,

Please try replacing the RadComboBox with a DropDownList to verify whether the issue still persists.

If so, then you could try clearing the selection of the RCB whenever the Window opens (in the client-side Show event).

Sincerely yours,
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
Tags
ComboBox
Asked by
Richard M
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Richard M
Top achievements
Rank 1
Simon
Telerik team
Share this question
or