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

Problems with column filters

3 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick Rioux
Top achievements
Rank 1
Patrick Rioux asked on 06 Mar 2012, 06:02 AM
I can add and apply the filter properly but when I click on the 'Clear' button for my column filter, it re fetch the data to the server (good) but keep the previous filters. It works only if I change for another selection.
My odata filter is look like this when I click on clear on the State filter column, the filter remains for that column.
$filter(YearSalesTarget ge 1000 and State eq 'nv')

I have tested with the new 2012.Q1 beta and I can't reproduced with the demo.
Maybe this is caused by the fact that I have overwritten the parameterMap?
How can I refresh the parameterMap properly? Any idea?

parameterMap: function(data,operation) {
                    if (operation == 'read') {
                    // Used default odata parameters
                    return kendo.data.transports["odata"].parameterMap(data,operation)
                    }
...
}

3 Answers, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 1
answered on 22 Jun 2012, 02:40 PM
Did you ever solve this problem? I ran into the same issue. I am using server-side filtering and the "options" variable passed into my parameterMap contains both filters even after clearing one of them.
0
Patrick Rioux
Top achievements
Rank 1
answered on 22 Jun 2012, 09:20 PM
I think this was fixed in the official 2012.1 Q1 release. What version are you using? I would suggest you to install Q2 beta to see if the problem is still there.
0
Steve
Top achievements
Rank 1
answered on 25 Jun 2012, 01:35 PM
Interesting, I'm using 2012.1.322, I'll grab the current beta and see what happens. Thanks.
Tags
Grid
Asked by
Patrick Rioux
Top achievements
Rank 1
Answers by
Steve
Top achievements
Rank 1
Patrick Rioux
Top achievements
Rank 1
Share this question
or