Hello.
I've created a grid and bound to an observable via MVVM, all went fine.
Now I'm trying to implement a custom popup template for the grid with the following:
I believe the line:
is incorrect though as I'm getting an invalid template error.
Would some kindly point me in the right direction please?
Many thanks.
I've created a grid and bound to an observable via MVVM, all went fine.
Now I'm trying to implement a custom popup template for the grid with the following:
<
div
data-role
=
"grid"
data-sortable
=
"true"
data-editable
=
'{"mode": "popup", "template": "kendo.template($(/"#popup/").html())"}'
data-columns
=
'[{"field": "CustomerAddressType_Name", "title": "Type", "width": "70px"}, {"field": "CustomerAddress_Line1", "title": "Line 1"}, {"field": "CustomerAddress_Postcode", "title": "Postcode"}, {"field": "Country_Name", "title": "Country"}, {"command": [ "edit", "destroy" ], "filterable": false, "sortable": false, "width:": "240px"}]'
data-bind
=
"source: addresses()"
></
div
>
I believe the line:
data-editable
=
'{"mode": "popup", "template": "kendo.template($(/"#popup/").html())"}'
cois incorrect though as I'm getting an invalid template error.
Would some kindly point me in the right direction please?
Many thanks.