Dojo collation option dStore Rest dGrid

When I exit dStore, the url looks something like this:

http://localhost/rest/dojo?department=sales

which works great. If I then clicked in the dGrid header, the URL to be sent would look like this.

http://localhost/rest/dojo?department=sales&sort(+id)&limit(25)

Shouldn't send & sort = + id & limit = 25? I use Java and Spring for the backend, and it expects the parameters to be formatted this way. Now I can not get additional parameters. Is there a way to get it to send parameters as Spring expects them?

+4
source share
1 answer

sort(...) limit(...) dstore/Request ( Rest ), sortParam , useRangeHeaders rangeStartParam rangeCountParam .

, &sort=+id&limit=25 , :

var store = new Rest({
    target: '...',
    sortParam: 'sort',
    rangeStartParam: 'offset',
    rangeCountParam: 'limit'
});

, , offset - GET, , , . , (useRangeHeaders - false), GET count, GET.

.

+3
source

Source: https://habr.com/ru/post/1612966/


All Articles