IgGrid: how to get odata queryString for remote filtering in JavaScript

I am using grid infragistics (v16.1) with remote filtering. When I filter the "Name" column, I see that the grid makes a GET request as follows:

http://SERVER/grid/GetAll?&%24filter=indexof(tolower(name)%2C%27iv%27)+ge+0&page=0&pageSize=30&pk=id&_=1473841534609&pageSize=30&pk=id&_=1473841534609

The part between "filter =" and "& page" indexof(tolower(name)%2C%27iv%27)+ge+0is the option to query the OData Uri components that interest me.

I need to use this request URI or just a request variant in JavaScript.

+4
source share
1 answer

You can get url parameters using the _encodeUrl()grid data source method , for example:

var encodedUrl = $("#grid").data("igGrid").dataSource._encodeUrl()

url, , .

+3

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


All Articles