Paging, filtering and sorting does not work on post back. Works only on initial load.
Please let me know solution to it.
Thanks
Hello Jdag,
Thank you for contacting Infragistics support.
Could you send us a working isolated sample so we could further investigate?
I am looking forward to hearing from you.
Hi,
The behaviours i am using is
<ig:ColumnResizing ColumnResizingClientEvents-ColumnResizing="batchUpdateAlert"> <ColumnResizingClientEvents ColumnResizing="batchUpdateAlert"></ColumnResizingClientEvents> </ig:ColumnResizing> <ig:Filtering FilteringClientEvents-DataFiltering="batchUpdateAlert"> <FilteringClientEvents DataFiltering="batchUpdateAlert"></FilteringClientEvents> </ig:Filtering> <ig:RowSelectors RowNumbering="true" /> <ig:Sorting> </ig:Sorting> <ig:Paging PageSize="100" Enabled="true" PagingClientEvents-PageIndexChanging="batchUpdateAlert"> <PagingClientEvents PageIndexChanging ="batchUpdateAlert" /> </ig:Paging>
I am using batch update. Also, I am not enabling viewdata state since it doesnt let me save any added and or edited cells. I am using objectdatasource as datasource. It allows me sort filter and page in initial load but, when I try to search a parameter it returns 1st page but does not hold data in other pages and that is when sort and filter also stops working.
This is my .cs file. it should be either I can work around enableview state and still edit and add rows to the table and be able to save it to database or I bind data properly which I believe I am missing somewhere.
Hello,
Thank you for sending this information.
I will get back to you once I have a solution for you.
Please let me know if there is anything else.
I could resolve that issue using javascript. I could see that if i was using server side code it could not hold the data returned on for search button click function. that I had written on server side. So clicking on filter and sort would return empty grid and paging wont work from 2nd page onward for searched data.
I would still want to know how can i make serverside work paging,sorting and filtering.
client side code that made it work:
document.getElementById('dataContentplaceholder_hfSearch').value = "True";
i have a hidden field that holds the search value unfortunately i could not set it on serverside.