开发者

Telerik RadGrid nopersistence (viewstate=false), doesn't keep the selectedindex on postback

i'm using a Telerik Radgrid on ASP.Net 3.5 and whenever开发者_如何学运维 I postback, the selectedindex is gone. I also used the NeedDataSource event to bind my data, and I do feel it may be related to that. is there a way to use both seamlessly without viewstate?


Hm, that's strange, as this is not the case here: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/needdatasource/defaultcs.aspx

when you change the skin with postback from the dropdown in the top right corner. Also, in case you postback from ajaxified control, make sure the grid is updated on postback as well.

Dick


Regular postback should not fire NeedDataSource and rebind grid. If you sort, page, filter, etc. the grid, consider this solution.

Dick

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜