When I add a new record to my grid with InLine editing enabled, the boolean columns that I have bound and are rendered as checkboxes are always checked by default. How can I make them unchecked by default when adding a new record?
And accessing the client-side object of the checkbox. Here are some hints:
.Events(events => events.Edit("onEdit"))
JavaScript:
Copy Code
Copy Code
function onEdit(args) {
if (args.model.isNew() == false) {
// textbox
$("#ShipName").attr("readonly", true);
// dropdownlist
var kendoDdl = $("#ShipCountry").data("kendoDropDownList");
kendoDdl.readonly(true);
}
}
I hope this will prove helpful.
Regards,
Eyup
Telerik by Progress
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items