Hello,
We have some DDL with more then 10 items and also with less than 10 items we use a EditorTemplate where the filter setting is: .Filter("contains")
but it makes no sense to habe a filter if there are only a few rows - in the DataBound event I wanted to disable/enable the filter like this but it doesn't work:
function
FilterSetting(e) {
var
ds =
this
.dataSource.data();
if
(ds.length > 10) {
this
.options.filter =
"contains"
;
}
else
{
this
.options.filter =
"none"
;
}
}
How can I display the filter depending on how many rows are available?
robert