You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
timothyswt edited this page Dec 8, 2012
·
1 revision
####If you have your own custom templates, please add to this!####
###All Cells Editable###
<divdata-bind="foreach: $grid.visibleColumns"><divdata-bind="attr: { 'class': 'kgCell col' + $index() }, kgCell: $data"><!-- Required for proper cell alignment using foreach --><!-- Using the kgCell binding will set the contents to the cellTemplate field on the column Definitions.--></div></div>
Declarative Non-Foreach###
Note: Doing this breaks the hide/show/reorder columns model. Recommended turning off reorderable columns this way
<divdata-bind="foreach: $grid.visibleColumns, style:{ 'background-color' : $data.entity['hasError'] ? 'red' : 'green' }" ><divdata-bind="attr: { 'class': 'kgCell col' + $index() }, kgCell: $data"><!-- Required for proper cell alignment using foreach --><!-- Using the kgCell binding will set the contents to the cellTemplate field on the column Definitions.--></div></div>