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

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

1 Answer 796 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Abhishek
Top achievements
Rank 1
Abhishek asked on 29 Mar 2011, 02:05 PM

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.

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 01 Apr 2011, 09:43 AM
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
Tags
ComboBox
Asked by
Abhishek
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or