Author Topic: Remote refresh with local pagging  (Read 3136 times)

Akaize

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 6
    • View Profile
Remote refresh with local pagging
« 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Remote refresh with local pagging
« Reply #1 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.

Akaize

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Remote refresh with local pagging
« Reply #2 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?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Remote refresh with local pagging
« Reply #3 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