This is a migrated thread and some comments may be shown as answers.

How to set manually parameters for ajaxRequest()?

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Igniter
Top achievements
Rank 1
Igniter asked on 25 Nov 2011, 10:37 AM
I develop custom filtering, and I need somehow post values to be filtered by, while ajaxRequest(). Any ideas?

1 Answer, 1 is accepted

Sort by
0
Igniter
Top achievements
Rank 1
answered on 25 Nov 2011, 11:10 AM
var grid = $("#MyGrid").data("tGrid");
var originalUrl = grid.ajax.selectUrl;
grid.ajax.selectUrl = originalUrl + "&filterQuery=" + query;
grid.ajaxRequest();
//grid.ajax.selectUrl = originalUrl;

The working one code (for now).
Tags
Grid
Asked by
Igniter
Top achievements
Rank 1
Answers by
Igniter
Top achievements
Rank 1
Share this question
or