Dear Support team,
We found an error that multi checkbox filter panel is not refreshing after changing data source in mvvm style. More is shown in attached dojo and screencast:
http://dojo.telerik.com/opURA
http://screencast.com/t/F4nzqodS
We created workaround about this error:
kendo.ui.FilterMultiCheck.prototype.refresh =
function
(e) {
var
forceUnique =
this
.options.forceUnique;
var
dataSource =
this
.dataSource;
var
filters =
this
.getFilterArray();
if
(
this
._link) {
this
._link.toggleClass(
"k-state-active"
, filters.length !== 0);
}
if
(
this
.form) {
if
(e && forceUnique && e.sender === dataSource && !dataSource.options.serverPaging)
// (e.action == "itemchange" || e.action == "add" || e.action == "remove"))
{
this
.checkSource.data(distinct(
this
.dataSource.data(),
this
.field));
this
.container.empty();
}
if
(
this
.container.is(
":empty"
)) {
this
.createCheckBoxes();
}
this
.checkValues(filters);
this
.trigger(
'refresh'
);
}
}
Problem was lack of field action in event parameter when change is done from mvvm. When we removed this condition application started working properly.
Marcin (Szwagier) Bębenek