jQWidgets Forums
Forum Replies Created
-
Author
-
October 17, 2014 at 1:28 pm in reply to: Cannot find beforeprocessing callback in documentation for jqxAdapter Cannot find beforeprocessing callback in documentation for jqxAdapter #61306
Hi
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 16, 2014 at 3:18 pm in reply to: Cannot find beforeprocessing callback in documentation for jqxAdapter 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
-
AuthorPosts