wyuenho/backgrid — pull request #472 by cryo28 (2014-03-11 19:43:48+00:00)
Title: Toggle editable, sortable and renderable classes on each render

Backgrid supports specifying a function to dynamically calculate editable, sortable and renderable state of a cell. However, the way Backgrid.Cell is initialized and rendered does not allow to update associated css classes in case of field value change.

Let's say, if initialt column.editable(model) returns true, then value of the model field is changed, column.editable(model) returns false, Backgrid.Cell received change:column_name event and calls this.render(). At this moment, we have non-editable cell with ".editable" css class.

This PR tries to update editable, sortable and renderable css class right after cell is re-rendered