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

Keep selected items in ComboBox on RadGrid DataBind

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 25 Jun 2013, 07:59 PM
I am trying to keep the selected values in a RadComboBox (which are nested in a DataBoundGridColumn's FilterTemplate) from resetting to the 1st item in the list ("All" / Value=0) upon filtering the RadGrid (using filterExpression).  I have tried setting the ViewState.ClientID to the selected value in the combobox, and have added a PreRender event handler to the HTML element.  It does not seem that the PreRender event will fire withe the ComboBox nested in the FilterTemplate.  Does anyone know a solution that would allow for the combobox selected item to remain the same after filtering the radGrid?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 28 Jun 2013, 11:11 AM
Hi Andrew,

You can use the CurrentFilterValue of the column which holds the combobox:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx

Hope this helps.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or