Hello,
I have a grid with 3 columns. In the grid options, I indicated that columnMenu is true. I also specified a columnMenuInit, in order to customize the column menu. What I want to do is to add an input bound to the header of the column, allowing me to change it there.
I tried something like this:
function columnMenuInit(e) {
var menu = e.container.find(".k-menu").data("kendoMenu");
var field = e.field;
menu.append({ text: "Input name: <input data-bind='value: "+ field +"'>", encoded: false });
}
but it does not seem to bind to anything (the input is empty when I show the column menu).
Would you have any advice?
Thanks in advance,
Marc.
I have a grid with 3 columns. In the grid options, I indicated that columnMenu is true. I also specified a columnMenuInit, in order to customize the column menu. What I want to do is to add an input bound to the header of the column, allowing me to change it there.
I tried something like this:
function columnMenuInit(e) {
var menu = e.container.find(".k-menu").data("kendoMenu");
var field = e.field;
menu.append({ text: "Input name: <input data-bind='value: "+ field +"'>", encoded: false });
}
but it does not seem to bind to anything (the input is empty when I show the column menu).
Would you have any advice?
Thanks in advance,
Marc.