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

How to change server side filtering configuration dynamically?

1 Answer 66 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Numan
Top achievements
Rank 1
Numan asked on 02 Aug 2012, 06:34 PM
I know you can set server sider filtering to true or false during configuration but I would like to change this at runtime.

The reason being, if my data set is small enough i want to be able to do filtering client side (as an optimization). If its too large I would like to set it to server side filtering.

Is it possible to change this flag at runtime?

1 Answer, 1 is accepted

Sort by
0
Adrian
Top achievements
Rank 1
answered on 29 Aug 2012, 06:48 PM
I'm not positive, but I think if you change the flag, then call .read() or .sync() on the dataSource, it should refresh the whole configuration of it. Like I said, though, I really don't know.

You would change the flag by accessing the options, either directly from the dataSource, or through the Grid's (or whatever widget's) .data() method.

I'm too lazy to write out sample code for you this second, but if what I said doesn't make sense, let me know and I will.
Tags
Data Source
Asked by
Numan
Top achievements
Rank 1
Answers by
Adrian
Top achievements
Rank 1
Share this question
or