jQuery UI Widgets › Forums › Grid › Cannot find beforeprocessing callback in documentation for jqxAdapter
Tagged: beforeprocessing, jqxAdapter
This topic contains 7 replies, has 3 voices, and was last updated by Peter Stoev 10 years, 1 month ago.
-
Author
-
January 29, 2014 at 5:26 am Cannot find beforeprocessing callback in documentation for jqxAdapter #48551
I saw at this URL, the ‘beforeprocessing’ callback function being used: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/asp.net-integration/asp.net-grid-filtering.htm
But this is not given in the documentation for jqxAdapater. It seems this callback should be the same as ‘downloadComplete’ callback function of jqxAdapter. Is this correct?Thanks
Sunilbeforeprocessing: function (data) { var returnData = {}; returnData.records = data.d; return returnData; }
January 29, 2014 at 6:38 am Cannot find beforeprocessing callback in documentation for jqxAdapter #48557Hi Sunil,
It is not part of jqxDataAdapter so you will not find references in that help topic. downloadComplete is the dataAdapter’s equivalent.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comJanuary 29, 2014 at 7:32 am Cannot find beforeprocessing callback in documentation for jqxAdapter #48567Hi Peter,
So, is the callback ‘beforeprocessing’ mentioned somewhere else?
Thanks
SunilJanuary 29, 2014 at 7:58 am Cannot find beforeprocessing callback in documentation for jqxAdapter #48575Hi Sunil,
beforeprocessing is the same as downloadComplete. You can think about it as the old name of downloadComplete.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comOctober 16, 2014 at 3:18 pm Cannot find beforeprocessing callback in documentation for jqxAdapter #61256Hi
it cost me 8 hrs…
1. downloadComplete method must return null, otherwise pagination will be broken; i assume documentation should me more informative
2. everywhere in examples i didn’t meet downloadComplete. there’s beforeprocessing everywhere (and it’s not documented)i met this issue because i’m using coffeescript, and it automatically returns the last computed value from function (unless you explicitly set different), and my experiments with pagination failed until i translated example with pagination step by step and finally realised that return value matters
October 16, 2014 at 3:57 pm Cannot find beforeprocessing callback in documentation for jqxAdapter #61257Hi iz65535,
1. downloadComplete shouldn’t return anything. I don’t know why you assumed that it should.
2. beforeprocessing = downloadComplete. In addition, it is not true that it is not documented. It is. Link: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/phpintegration/php-server-side-grid-paging-and-filtering.htmBest Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/October 17, 2014 at 1:28 pm Cannot find beforeprocessing callback in documentation for jqxAdapter #61306Hi
btw, why new forum message doesn’t fire email notification ? i visited this topic by occasion.
1. downloadComplete shouldn’t return anything. I don’t know why you assumed that it should.
I didn’t assume it should return something.
I assumed it should return null because if i return something different, it doesn’t do things i expect. Why i met that: because of coffeescript naturecoffeescript: f -> a = 2
will be compiled into something like
function f() { var a = 2; return a; ////////// coffeescript function returns by default last expression result unless you set something different. The same rule as in ruby }
so when i created custom downloadComplete function, it was returning something as a side effect, and my code didn’t work. i had to reproduce the example in javascript and then port it to coffee method by method, until i realized this nuance
beforeprocessing = downloadComplete. In addition, it is not true that it is not documented. It is. Link: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/phpintegration/php-server-side-grid-paging-and-filtering.htm
sorry, but no. beforeprocessing mentioned in example has no comments at all (of course i understand intuitively what it does)
also downloadComplete has no comments about its return valuei’m 100% not offending somebody, i’m just sharing some experience i’ve got during testing your framework, nothing more
October 17, 2014 at 1:36 pm Cannot find beforeprocessing callback in documentation for jqxAdapter #61308Hi iz65535,
I don’t know whether in coffeescript, a return value is required. In the samples we use and the demos we have, return value for downloadComplete or beforeprocessing is definitely not required.
Regards,
Peter -
AuthorPosts
You must be logged in to reply to this topic.