How to change server side filtering configuration dynamically?

2 posts, 0 answers
  1. Numan
    Numan avatar
    11 posts
    Member since:
    Jan 2012

    Posted 02 Aug 2012 Link to this post

    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?
  2. Adrian
    Adrian avatar
    24 posts
    Member since:
    Jul 2012

    Posted 29 Aug 2012 Link to this post

    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.
Back to Top