hi,
I am using WebDataGrid with paging and selection with the EnableCrossPageSelection set to true.
I am trying to get the selected rows on the client side. With the get_selectedRows() method i get the right number of selections, but when trying to get them with the getItem() method, i get only the selections for the current page. I know this is normal behaviour for the grid as it is bound only to the data for the current page. Is there a way around this issue, other then having a hidden field to hold the selections? In my web page i have multiple grids and it can be too much to have a hidden field for each one of them to hold selections.Is there any way to enable\disable paging on the client side? or any implementation in javascript for the GetIDPair(index) method?
thanks
Hello Amos,
Thank you for posting in our forums
You are correct when using Persistent Selection only the current page rows and cells are accessible
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1?page=WebDataGrid_Persistent_Selection.html
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1?page=Infragistics4.Web.v11.1~Infragistics.Web.UI.GridControls.Selection~EnableCrossPageSelection.html
You can use getItemID function in order to access the index and key of the selected rows from another page
selection.get_selectedRows().getItemID(0).index
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1?page=WebDataGrid~Infragistics.Web.UI.GridSelectedRowCollection~getItemID.html
Please let me know if you need further assistance.