PDA

View Full Version : [CLOSED] Filter From Ajax Proxy



speedstepmem4
Oct 30, 2013, 11:47 AM
Please guide us how to get filter value using ajax proxy in handlers

Daniil
Oct 30, 2013, 1:46 PM
Hi @speedstepmem4,

Please look a this example.
http://examples2.ext.net/#/GridPanel/Paging_and_Sorting/Handler/


public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "application/json";

StoreRequestParameters prms = new StoreRequestParameters(context);
...
}

The StoreRequestParameters class has the GridFilters and Filter properties. It is probably what you need.

speedstepmem4
Oct 31, 2013, 4:24 AM
Hi @speedstepmem4,

Please look a this example.
http://examples2.ext.net/#/GridPanel/Paging_and_Sorting/Handler/


public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "application/json";

StoreRequestParameters prms = new StoreRequestParameters(context);
...
}

The StoreRequestParameters class has the GridFilters and Filter properties. It is probably what you need.


In the given example in handler page,


Paging<Plant> plants = Plant.PlantsPaging(prms.Start, prms.Limit, prms.Sort[0].Property, prms.Sort[0].Direction.ToString(), string.Empty);

Last parameter is string.empty

Instead of that how to pass the filter condition.

Daniil
Oct 31, 2013, 4:55 AM
Well, you should use

prms.Filter
or

prms.GridFilters