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

[Solved] gridtemplate col

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 10 Aug 2009, 03:10 AM
hi,

I've a radgrid with a gridbound col and a  grid template column in it.
The gridtemplate column has a dropdownlist control in it.

The whole grid is an user ctrl . I've a wizard kind of page where i clcik back and next to go to further pages.

I select values in the dropdownlist (which is a 2nd step in the wizard) and when i click back, it goes to the first step and then clciking next from there, it comes to my gridtemplate page but now i don't have any of my selected values in the dropdownlist. they all point to the first value. how do i make them retain the selected value even if i travel across wizrds.

I've even done this in grid's databound event:
ddl.selectedindex =  e.item.selctedindex;(where ddl is the dropdownlist in the gridtemplate col).
but it does not work. pls do help me with code.
Thanks,
ZR

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 11 Aug 2009, 04:24 PM
Hi Zaheka,

I recommend that you use a session variable to store the selected index of the dropdown list when it is changed and to set the selected index of the dropdown list to the saved value if it is not null when navigating through pages.

Best wishes,
Mira
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or