ComboBox in RadWindow holds previous state

4 posts, 0 answers
  1. Richard M
    Richard M avatar
    76 posts
    Member since:
    Mar 2010

    Posted 23 Jun 2010 Link to this post

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Jun 2010 Link to this post

    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.
  3. Richard M
    Richard M avatar
    76 posts
    Member since:
    Mar 2010

    Posted 24 Jun 2010 Link to this post

    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.
  4. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 28 Jun 2010 Link to this post

    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
Back to Top