Custom data loading, sorting, paging in wijgrid

2.5k views Asked by At

I have a wijgrid that I need to implement custom paging and sorting (read: server side paging and sorting), but I need to load the data using our custom client side library. It handles various authentication and XSS procedures that our server side code expects.

So looking at the custom paging samples I sort of need to do a combination of the "Dynamic Data" sample, where I can provide my own loading function and the "Remote Data" sample. The problem with the dynamic data, as I see it, is that it expects the loading function to end by setting the dataSource.data property with the data. In my case I can't do that because I will need to wait for an ajax call to complete and then process the data that is returned.

Is this a possibility or am I totally going about this the wrong way?

1

There are 1 answers

1
AbdiasM On

Take a look at the link below where it shows custom filtering of data : http://wijmo.com/wijgrid-custom-filtering/ It uses the wijdatasource widget to retrieve data from the server. You can use its 'loaded' event to process the returned data.