I have a custom-command button on my grid which takes some action, and then ought to update a column in the grid, which is a boolean, per the schema. My DataSource is built from a local array.
It seems the .set() method that I use to update the dataItem will cause updates on string columns very nicely, but boolean columns won't bind reliably (the column is not updated with a call to
myDataItem.set('col', true);
...for example. So I have to do something like
$('#grid').data('kendoGrid').refresh();
...to get the grid to update reliably.
Is this expected behavior? I've seen posts that refer to .sync(), the autoSync property, and possibly setting a 'save()' function on the grid definition. But I have't had consistent success with any of these.
Thanks.
It seems the .set() method that I use to update the dataItem will cause updates on string columns very nicely, but boolean columns won't bind reliably (the column is not updated with a call to
myDataItem.set('col', true);
...for example. So I have to do something like
$('#grid').data('kendoGrid').refresh();
...to get the grid to update reliably.
Is this expected behavior? I've seen posts that refer to .sync(), the autoSync property, and possibly setting a 'save()' function on the grid definition. But I have't had consistent success with any of these.
Thanks.