Hi,
I will look again, but I think datatype as function is not working with True Scrolling, only with static binding.
Thanks
Absolutely Tony.
And thank your for a quick fix and such a great product!
In the meantime, though I was able to get True scrolling working well, I was wondering if there are any advanced examples, where PUT WebService is used instead or plain Get, and where there is a way of getting XML data and setting column values using some pre-processing event. Because otherwise I will have to write custom serializer to convert my existing data to JSON response you recognize. Any direction will help.
Thanks
Hi Tony,
Updated my sample so you can see error yourself. Follow these steps:
1. Open http://www.arnaco.com/test/
Thanks Tony,
On the same note… I've notices that when I call $(“#mygrid”).setGridParam(…).trigger(“reloadGrid”,[{page:1}]); with same parametrs it does not send request, but instead uses cashed data? So I was wondering how can I force grid to do fresh request to server?
Thanks
$(“#mygrid”).trigger(“reloadGrid”,[{page:1}]);
works like a charm and I guess it is possible to set any parametr same way, right?
Here is a link to working example that demonstrates this problem:
On the page there are 2 buttons. First loads grid with 500 records, second with only 40. Please use following steps to recreate:
1. Click first “Reload Grid” (top left) button and see grid loads.
2. Scroll grid to Page #20, so it shows records 201 – 240.
3. Click second “Reload Grid With Less Data” button and see grid reloads, but page index is carried over from previouse request.
If you view source of aspx page you will see that onclick I will explicitly set {page: 1} ($('#scrolling').setGridParam({page:1, filter: 1}).trigger('reloadGrid');”).
Here is a link to working example that demonstrates this problem:
On the page there are 2 buttons. First loads grid with 500 records, second with only 40. Please use following steps to recreate:
1. Click first “Reload Grid” (top left) button and see grid loads.
2. Scroll grid to Page #20, so it shows records 201 – 240.
3. Click second “Reload Grid With Less Data” button and see grid reloads, but page index is carried over from previouse request.
If you view source of aspx page you will see that onclick I will explicitly set {page: 1} ($('#scrolling').setGridParam({page:1, filter: 1}).trigger('reloadGrid');”).
I believe $(“#mygrid”).setGridParam({page:1}).trigger(“reloadGrid”) does not work when you use True Scrolling Rows (JSON, GET, URL) as it is is outline in my other post. I will try to post a working exampel later. It will keep page where it was.
I experienced same problem after upgrading to 3.6.4 too. It seems that order of event parametrs had changed.
Prior to 3.6.4 following signature would work:
afterInsertRow: function(rowid, rowdata, rowelem)
With 3.6.4 you will have to change order of parametrs to get correct data:
afterInsertRow: function(rowelem, rowid, rowdata)
Thanks
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top