Hi,
I implemented fetch/add/update/remove interface for RestDataSource by
PHP and can connect ListGrid with my PHP backend (MySQL) successfully.
However, when I try to add more features such as sorting and filtering,
I got some problems ...
For sorting, I found SC will provide an extra GET parameter, '_sortBy',
for "fetch" command. The sorting feature of ListGrid doesn't work
at the beginning ... however, if I scroll the ListGrid to the end, then
the sorting is working again (looks like ListGrid must have all data fetched
from DB to browser to make sorting work).
And for filtering, it never works.
So I guess, both sorting and filtering is the responsibility of PHP
backend. I need to do something in PHP to support that feature, am I
correct ?
What kind of response the RestDataSource expected from my PHP ?
Any documentation or examples ?
It will be great if SmartGWT can provide some PHP template code to handle
sort/filter request.
Regards
KC
I implemented fetch/add/update/remove interface for RestDataSource by
PHP and can connect ListGrid with my PHP backend (MySQL) successfully.
However, when I try to add more features such as sorting and filtering,
I got some problems ...
For sorting, I found SC will provide an extra GET parameter, '_sortBy',
for "fetch" command. The sorting feature of ListGrid doesn't work
at the beginning ... however, if I scroll the ListGrid to the end, then
the sorting is working again (looks like ListGrid must have all data fetched
from DB to browser to make sorting work).
And for filtering, it never works.
So I guess, both sorting and filtering is the responsibility of PHP
backend. I need to do something in PHP to support that feature, am I
correct ?
What kind of response the RestDataSource expected from my PHP ?
Any documentation or examples ?
It will be great if SmartGWT can provide some PHP template code to handle
sort/filter request.
Regards
KC
Comment