Author Topic: Filter  (Read 2486 times)

robgell

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 3
    • View Profile
Filter
« on: April 19, 2014, 04:38:06 pm »
I have the filter working nicely for what I need except for one issue.

If I filter down, and the resulting record set returns no rows from my remote source, and then 'open out' the filters again, no records are displayed.

There are no error or warning messages in the console. What have I missed? Do I need to do something to 'reset' the grid.

I have tried using: $('#grid_json').refreshDataAndView();

Yes, that is the ID of the containing DIV for my grid. I get the following error message:

Uncaught TypeError: undefined is not a function

Any pointers would be most useful please.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6297
    • View Profile
Re: Filter
« Reply #1 on: April 21, 2014, 09:08:59 am »
Could you please specify how do you mean by filter down and 'open out' the filters again.

if it merely means that you enter something in filter box which doesn't match anything (no records) and next time you enter some matching text then you don't need to reset or do anything else. Example:

http://paramquery.com/pro/demos/filter_header

Just monitor and check the data returned in dataModel.getaData when such condition occurs.