Hi,
I am trying to make specific cells of the treelist editable based on some condition.
Following some websearch and kendo documentation, I figured that grid allows this via closeCell functionality.
I could not find anything similar for treelist. Is there a way to make a cell editable conditionally? i.e. via onEdit or editor: property on the specific field?
Thanks a lot,
Labhesh
4 Answers, 1 is accepted
Kendo Admins - can you please reply to this?
Thanks,
Labhesh
Hello Labhesh,
The TreeList widget doesn't have analogous method as it doesn't support InCell editing as the Grid does.
Regards,
Nikolay Rusev
Telerik
Thanks, so instead of putting something like below in the editor of each column,is there a better way to get "hold of" a particular cell within a treelist widget? i.e. what if I want to control a particular cell for formatting, erase borders, merge cells etc?
function numericEditor(container, options) {
//console.log(options);
if ((options.field === "<<
some
field>>") && (options.model.strategyDisplayName ==="<<
some
other field>>")) {
$('<
label
></
label
>')
.appendTo(container);
}
else {
$('<
input
data-bind
=
"value:' + options.field + '"
/>')
.appendTo(container)
.kendoNumericTextBox({
format: "n4",
decimals: 4
});
}
}//end of numeric editor
Hello Labhesh,
You can still use columns.editor as in the Grid. Am I missing something?
Regards,
Nikolay Rusev
Telerik