-
5 Sep 2012 11:44 AM #1
problem with mark invalid cell in grid
problem with mark invalid cell in grid
Hi All.
How can i mark invalid cell in grid?
I have some code:
but, cls style does not restore after store.sync() or when i filtere grid.Code:cell.addCls('invalidClsStyle');
Thanks in advance!
-
5 Sep 2012 1:16 PM #2
Here is a great article on coloring grid cells:
http://skirtlesden.com/articles/styl...tjs-grid-cells
Scott.
-
6 Sep 2012 9:27 AM #3
Thanks for the article
as a solution my problem, i set tdCls in the renderer function.
At first, When Ajax validation finished i dynamically added new property to the model (_value), and save validation information at the dynamically added properties (_value ).
then i force render by means of grid.getView().refresh().
at the render function i have something like that:
Any criticism is welcome.Code:renderer: function(value, metadata, record) { if (record._value) metadata.tdCls += 'clsStyle'; return value; } },


Reply With Quote