Next
Update
Prev

You can define Code that is the actual value (e.g. GMC-1 Release1) and Label that is to be displayed in the cell (e.g. GMC-1 R1) using the itemRendererDataProvider property. This example demonstrates how to set the itemRendererDataProvider property of the Subject column for displaying field values instead of field codes.

...
    <DataGridColumn dataField="Subject" ... itemRenderer="DataProviderItem" itemRendererLabelField="label" itemRendererDataField="code" itemRendererDataProvider="[{'label':'GMC-1 R1','code':'GMC-1 Release1'},{'label':'GMC-1 R2','code':'GMC-1 Release2'}, {'label':'GMC-1 R3','code':'GMC-1 Release3'}, {'label':'GMC-1 R4','code':'GMC-1 Release4'}, {'label':'GMC-1 R5','code':'GMC-1 Release5'}, {'label':'GMC-1 R6','code':'GMC-1 Release6'}]" />
...
itemRenderer The value must be DataProviderItem.
itemRendererLabelField This property is to set the name of the field that contains value, which is defined in the value of the itemRendererDataProvider property.
itemRendererDataField This property is to set the name of the field that contains code, which is defined in the value of the itemRendererDataProvider property.
itemRendererDataProvider This property is to set the values for codes and values.

© 2017 KoolChart. All rights reserved.