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

Data binding in filter menu item template

1 Answer 171 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 20 Jan 2016, 03:11 AM

We are using the filter menu in the grid in each column and have a situation where we can switch the data in the column between the description or the code. We would like to be able to do this for the values displayed in the filter menu for each column. 

We are using a custom item template for the multi-select check boxes, and are using #= xxxx # notation to set the text to be displayed.

It seems that this notation is a one time replacement, rather than a binding? (We're new to kendo, and have a background in angular)

Is it possible to bind values to the items returned from the filterable datasource and have them update if we change them in code?

I just tried adding a span with data-bind, instead of the #= xxx # notation but that didn't work, so I assume that there is some other magic that needs doing?

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 22 Jan 2016, 07:30 AM
Hi Matt,

I'm not sure that I understand you correctly, however if you need to modify options of the Grid (or it's nested options) after it's initialization you can use the Grid "setOptions" method

Regards,
Vladimir Iliev
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
Matt
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or