Dropdown does not maintain its selected value when i come back to the page using "window.history.back(-1)"

2 posts, 0 answers
  1. Abhishek
    Abhishek avatar
    21 posts
    Member since:
    Mar 2011

    Posted 29 Mar 2011 Link to this post

    Hi,
    I am using the licenced version of Rad controls.
    I have created a wizard using aspx pages.
    on first page i have a combobox and next button. and on 2nd page i have a previous button. Previous button has code
    "window.history.back(-1);" OnClientClicked event.
    From first page I select item from combobox and click on next button. As a result request is redirected to 2nd page where i click on the previous button. So request is redirected to 1st page. And it shows the selected value in combobox.
    But when i access the combobox selectedvalue it shows value at 0 index not the selected one.

    Please suggest solution.

  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 01 Apr 2011 Link to this post

    Hi Abhishek,

    Actually it is a known issue when you navigate to a page using the back button of the browser or execute a similar javascript.

    A possible solution you may find here.

    Kind regards,
    Dimitar Terziev
    the Telerik team
Back to Top