Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxGridView - How to store a focused row index in cookies

$
0
0

ASPxGridView does not save a focused row in cookies. However, you can add this capability by saving and restoring a focused row index to cookies manually:


[JScript]
function OnFocusedRowChanged(s, e){ ASPxClientUtils.SetCookie(s.name + '_focudedIndex', s.GetFocusedRowIndex());}function OnInit(s, e){if(ASPxClientUtils.GetCookie(s.name + '_focudedIndex') != null) s.SetFocusedRowIndex(ASPxClientUtils.GetCookie(s.name + '_focudedIndex'));}


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>