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

Costum popup editor can't show

3 Answers 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rooney
Top achievements
Rank 1
rooney asked on 10 Oct 2012, 09:52 AM
i want to make popup editor with additional field, look it :
script grid kendo :
....
editable: { mode: "popup", template: kendo.template($("#popup_editor").html()) },
height: 450, filterable: true, sortable: true, pageable: true,
        toolbar: [{text: "Add data", name: "create"}],
        columns: [
            { field: "name",title: "Name", filterable: true },
            { field: "dtcreate",title: "Date create", filterable: true },
            { command: [{text:"Edit", name:"edit"}, {text:"Delete",name:"destroy"}], title: " ", width: "160px" }
        ]
script form popup :
<script id="popup_editor" type="text/x-kendo-template">
        <div class="k-edit-label"><label for="name">Name</label></div>
    <input type="text" class="k-input k-textbox" name="name" data-bind="value:name">
                 
    <div class="k-edit-label"><label for="publish">Publish</label></div>
    <input type="text" class="k-input k-textbox" name="publish" data-bind="value:publish">
             
    <div class="k-edit-label"><label for="dtcreate">Date Create</label></div>
    <input type="text" name="dtcreate" data-type="date" data-bind="value:dtcreate" data-role="datepicker" />
</script>  

So the problem is popup editor can't showed, why?

Thank,

3 Answers, 1 is accepted

Sort by
0
Ä m o l
Top achievements
Rank 2
answered on 10 Oct 2012, 10:00 AM
editable: { mode: "popup", template: kendo.template($("#popup_editor").html()) }

Instead of this use the following

editable: { mode: "popup", template: $("#popup_editor").html() }
This is working for me.

0
rooney
Top achievements
Rank 1
answered on 10 Oct 2012, 11:17 AM
Hii Armol

Thank, it's a working
0
Ä m o l
Top achievements
Rank 2
answered on 10 Oct 2012, 11:25 AM
you most welcome...
Tags
Grid
Asked by
rooney
Top achievements
Rank 1
Answers by
Ä m o l
Top achievements
Rank 2
rooney
Top achievements
Rank 1
Share this question
or