Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Here is a copy of my template i am using for a pop up in a grid;
<
script
id
=
"popup_editor"
type
"text/x-kendo-template"
>
div
class
"k-edit-label"
label
for
"ItemID"
>Item</
</
input
name
data-bind
"value:ItemID"
data-value-field
data-text-field
"ItemName"
data-source
"itemListDataSource"
data-role
"dropdownlist"
data-auto-bind
"false"
/>
In the Edit event on the grid get the dropdownlist and bind to the change event.
$("#divid").kendoGrid({
toolbar: [{ name: "create"}],
dataSource: someDataSource,
pageable: false,
scrollable: false,
editable: {
mode: "popup",
template: $("#popup_editor").html()
},
edit: function (e) {
$("#editor").kendoEditor();
if (e.model.id == "") {
$('.k-window').find('.k-window-title').html("Add New");
}
else {
$('.k-window').find('.k-window-title').html("Edit");
var itemDropListContol = $(e.container).find("input[name='ItemID']");
itemDropListContol.data("kendoDropDownList").bind("change", function (f) {
// do stuff
});