Is it possible to have a fixed row in the radgrid? That is, I'd liked a particular row to always be the first row in the grid, regardless of sorting criteria, etc.
3 Answers, 1 is accepted
0
Pavlina
Telerik team
answered on 14 Sep 2012, 04:18 PM
Hello,
To achieve the desired result you should access the row which you want to be fixed and persist its index on sorting.
All the best,
Pavlina
the Telerik team
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 their blog feed now.
Uh, could you explain that a bit more? I'm not sure what you mean by persist its index. I haven't tried this yet but I was going to try something in the grid's prerender event like removing the row from the items collection and reinserting it at the beginning. Is that what you're suggesting?
I ended up implementing this by setting AllowCustomSorting="true" on the grid's MasterTableView, performing sorting myself, and then moving the row I wanted fixed around in the sorted list as necessary before setting the list as the grid's datasource.