Hi ,
I am using the Filter row in my grid, it works fine if there are no client template. but if there are any client template it gives error.
@(Html.Kendo().Grid<Document>()
.SetDefaults()
.Name("gridDocuments")
.Groupable()
.Editable(editable => editable.Mode(GridEditMode.InLine))
.Events(x => x.DataBinding("OnDataBound").Edit("EditGrid"))
.Columns(columns =>
{
columns.Bound(x=>x.CategoryCode).Filterable(false).ClientTemplate(#=data.CategoryDescription#").EditorTemplateName("CategoryTypeMultiselect");
columns.Bound(x => x.AssetTag).Filterable(ftb => ftb.Cell(cell => cell.Operator("contains").SuggestionOperator(FilterType.Contains)));
columns.Command(command =>
{
command.Edit().Text(" ").CancelText(" ").UpdateText(" ");
command.Custom("Del").Text("<span class='k-icon k-i-delete'></span>").Click("PageGridDelClicked");
}).Width("3%").HtmlAttributes(new { style = "text-align:center;background:#=RowColor#" });
})
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Multiple).Type(GridSelectionType.Cell))
.Navigatable()
.Filterable(ftb => ftb.Mode(GridFilterMode.Row))
.DataSource(dataSource => dataSource
.SetDefaults()
.PageSize(20)
.Model(model =>
{
model.Id(p => p.Id);
model.Field(p => p.AssetTag).Editable(false);
model.Field(p => p.CategoryType).Editable(true);
})
.Read(x => x.Action("GetSelectedData", "Assets", new { CacheKey = PageUID }).Data("getAssetId"))
.Update(x => x.Action("UpdateDocuments", "Assets", new { CacheKey = PageUID }).Data("getAssetId"))))
if i enable filter for Categorycode i am getting error.
Please suggest me how to use the Filter row when we have ClientTemplate in the column.