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

Can you use data-bind in a KendoGrid template?

0 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 08 Nov 2012, 09:54 PM
Basically, I have a kendo Grid (created via .kendoGrid({ .. }) and wondering if there is a way to use data-bind attribute within the template.  Or am I limited to using # and $?

Ex:
$('#grid').kendoGrid({
dataSource:myDataSource, // array of observables
rowTemplate: '<tr><td>Test</td><td><span data-bind="visible: isFooVisible, html: foo"></span></td></tr>'
...etc, etc
}

I know that I can equally create the grid via MVVM bind, but there seem to be a lot of unknown 'data-' attributes I'd have to add to the view to configure it properly.  

No answers yet. Maybe you can help?

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