I have a column with html code. i.e. <div style='color: green'> Active</div>
and I have the filterable operator set to "Contains" but the filter result is alway not found.
@(Html.Kendo().Grid(Model.Transaction)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.DisplayLeaseStatus).Title("Transaction
Status").HtmlAttributes(new { style = "text-align:center" }).Filterable(ftb => ftb.Multi(true).BindTo(new[]{
new { DisplayLeaseStatus = Active },
new { DisplayLeaseStatus = Expired },
new { DisplayLeaseStatus = Terminated }
};));
})
.Scrollable(scrollable => scrollable.Height("auto"))
.Filterable(filterable => filterable
.Extra(false)
.Operators(operators => operators
.ForString(str => str.Clear()
.Contains("Contains")
)
)
.Events(e => e.DataBound("dataBoundHandler"))
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
.PageSize(50)
.Events(e => e.Error("onError").RequestEnd("onRequestEnd")))
.Resizable(resize => resize.Columns(true))
.Reorderable(reorder => reorder.Columns(true))
)
and the column data contents i.e. <div style='color : greed'> Active </div>
</
div
>
Any advice how i can filter this?