Telerik RadGrid SelectedItem is not pointing to the actual selected item when filter is applied -


grid.selectedindexchanged += new eventhandler(grid_selectedindexchanged);  void grid_selectedindexchanged(object sender, eventargs e) {     dataitem item = grid.selecteditems[0].dataitem; } 

the selecteditem when no filter applied. when filter applied, grid displays filtered items only, right. when item selected it's bringing in item full list instead of filtered.

i got it. following line did trick.

grid.enableviewstate = false; 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -