Pinning a Kendo Knockout Grid Pattern

I want to use template binding as shown below, but not working for me, can you suggest what is wrong?

<div id="gridClientsOutside" data-bind="kendoGrid: { data: FilteredClients, columns: [ { field: 'ClientName', title : 'Client Name' }, { field: 'ClientCode', title: 'Client Code', **template:'<input type='button' value ='#= ClientCode #'></input>**' } ], scrollable: false, sortable: true, pageable: false }">
</div>
+5
source share
2 answers

You would like to avoid your quotes, for example:

<div id="gridClientsOutside" data-bind="kendoGrid: { data: FilteredClients, columns: [ { field: 'ClientName', title : 'Client Name' }, { field: 'ClientCode', title: 'Client Code', template: '<input type=\'button\' value=\'#= ClientCode #\' />' } ], scrollable: false, sortable: true, pageable: false }">
</div>

Example here: http://jsfiddle.net/rniemeyer/zeQMT/

+4
source

I, unfortunately, have 3 representatives from the opportunity to comment on a question, which, perhaps, is the best place for this. Here are my thoughts:

It is not clear what exactly does not work (especially without jsfiddle or something similar to the problem), but these asterisks before and after the template may fail because the bindings do not accept the template parameter **, although they can simply be added for the question.

, , . , , , jsfiddle .

0

All Articles