This is my function userNameEditor
function userNameEditor(container, options) {
$('<input required data-bind="value:' + options.field + '"/>')
.appendTo(container)
.kendoComboBox({
dataTextField: "UserName",
dataValueField: "UserId",
filter: "contains",
minLength: 3,
//_readMethod: '../Warehouse/SearchUser',
dataSource: new kendo.data.DataSource({
transport: {
contentType: "application/json; charset=utf-8",
serverFiltering: true,
read: {
url: "../Warehouse/SearchUser",
//data: { //?????????//
// q: function () {
// return $("#autoComplete").data("kendoAutoComplete").value();
// },
// maxRows: 10,
// username: "demo"
//}
},
},
}),
})
}
I want to catch kendoComboBox
value go controller and come back with user name contains value just give me way to take value PLEASE!!!!
This is my grid column area
grid._columns.push(grid.GridColumn('Id', null, '200px', null, null, null, null, null, null, null, true));
grid._columns.push(grid.GridColumn('User', 'User', '200px', null, "#=User.UserName#", null, null, null, null, null, null, null, null, null, userNameEditor));
grid._columns.push(grid.GridColumn(null, ' ', '200px', { style: 'text-align:right' }, null, null, null, null, null, null, null, null, null, ['edit', 'destroy']));