ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: Akaize on February 06, 2016, 12:55:33 am

Title: Remote refresh with local pagging
Post by: Akaize on February 06, 2016, 12:55:33 am
Well, I have a problem with this situation.

A grid with pre-filters that are used to load the json data by a MVC action.
A local filter and pagging with the paramgrid.

I need a remote grid refresh command.

Anyone can make a little snippet?

Thank you guys.
Title: Re: Remote refresh with local pagging
Post by: paramvir on February 08, 2016, 10:35:55 am
For remote data use dataModel: { location: 'remote' }

For local filtering use filterModel: { type: 'local' }

For local paging use pageModel: { type: 'local' }

Hope it helps.
Title: Re: Remote refresh with local pagging
Post by: Akaize on February 10, 2016, 03:38:16 pm
Thanks for the advice.

In my case, what I needed was put a querystring with the values of the pre-filter.

Do you know a better way to pass texbox and checkbox values to an action?
Title: Re: Remote refresh with local pagging
Post by: paramvir on February 12, 2016, 06:53:35 pm
use postDataOnce or postData when you want to send additional fields to the server.

http://paramquery.com/api#option-dataModel-postData