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

[Solved] Filterable Multi updating data

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 18 Mar 2015, 05:49 PM
I had posted this question here:
http://www.telerik.com/forums/grid-multi-select-feature

With this example:
http://dojo.telerik.com/aSepe

Which I've updated to the latest version here:
http://dojo.telerik.com/osOyi

Now that the beta is released I think maybe I need to ask the question again.

I am not seeing the behavior I expected.  When I open the grid, click on the filter, I see 8 things, then I add 8 more things and then filter, and the list has not changed.

Any help is appreciated...

Thanks

1 Answer, 1 is accepted

Sort by
0
Brett
Top achievements
Rank 1
answered on 19 Mar 2015, 12:55 PM
I've kind of figured this out myself.

Previously I was doing this:

grid.dataSource.data(newData);
grid.refresh();

That was not giving me the results I desired.  After some trial and error I attempted this and it is working:

grid.dataSource.data().length = 0;
grid.dataSource.data().filter([]);
grid.dataSource.data().push.apply(grid.dataSource.data(), newData);
grid.refresh();




Tags
Grid
Asked by
Brett
Top achievements
Rank 1
Answers by
Brett
Top achievements
Rank 1
Share this question
or