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

Modifying a Data Item Does Not Update Multi-Filter Options

1 Answer 169 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 27 Oct 2015, 07:15 PM

I have a grid with one column using the new filterable.multi = true.  Given a certain set of data in the grids data source, I can open the filter and see the multi checkboxes for all values in that column.  If I programmatically change the value in that column of one of the rows using dataSource.at(), the filter menu's options do not update.  For example, if I have a grid with a Name column with three rows: Brad, Mark, John.  I open the filter menu and see options for Brad, Mark and John.  If I then change Mark to David, and open the filter menu I will still see options for Brad, Mark, and John.  However, if I add a new row using dataSource.add() function, it does update the filter options.

 

Is there a way to force the filter options to update after an edit?

 

This DOJO recreates the issue.  First, open the filter menu on Name column, see correct options for original data.  Press update button, and open filter again.  See no change to options.  Then press Add button.  Open filter menu again, observe options have been updated.

http://dojo.telerik.com/@david.ballenger/uZeGI‚Äč

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 29 Oct 2015, 03:50 PM

Hello William,

 

For some reason I am not able to run the provided dojo example. However I prepared a sample http://dojo.telerik.com/OKOme that implements the desired functionality. Please open the filter menu for the ProductName. Then click on the button below and open the menu again. 

 

The approach uses the set method of the model object in order to update its value. 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or