Hi,
I'm experimenting with the following grid and want to know if its possible to change the editor assosiated with the UserInputString column when the Field column value changes.
That is the Field column consists of a drop down list for example containing "Job Number", "Client", "Product" and other items. When the user selects, for example, Job Number the UserInputString editor is to be a TextBox. If Product is selected, the input will be a product auto complete text box, if 'Is Invoiced' is selected it will be a check box etc.
Is this possbile?
@(Html.Kendo().Grid<S3Web.Models.AdvancedSearchModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.AndOrString);
columns.Bound(p => p.StartBracketString);
columns.Bound(p => p.Field).Width(180);
columns.Bound(p => p.OperatorString);
columns.Bound(p => p.UserInputString);
columns.Bound(p => p.EndBrackerString);
columns.Command(command => command.Destroy()).Width(150);
})
.ToolBar(toolBar =>
{
toolBar.Create();
toolBar.Save();
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.ServerOperation(false)
.Events(events => events.Error("error_handler"))
.PageSize(20)
.Read(read => read.Action("AdvancedSearch_Read", "Jobs"))
.Create(create => create.Action("AdvancedSearch_Create", "Jobs"))
.Update(update => update.Action("AdvancedSearch_Update", "Jobs"))
.Model(model =>
{
model.Id(p => p.Field);
})
)
)