JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › Column dataField Mapping › Reply To: Column dataField Mapping
Hi,
Our Smart.DataAdapter’s dataField supports map property that you can set.
For example your data can have a property group and set the dataField this way:
dataSource: new Smart.DataAdapter(
{
dataSource: Data,
dataFields: [
{name: ‘$group’, dataType: ‘string’, map: ‘group’},
{name: ‘lastName’, dataType: ‘string’},
{name: ‘productName’, dataType: ‘string’},
{name: ‘available’, dataType: ‘bool’},
{name: ‘quantity’, dataType: ‘number’},
{name: ‘price’, dataType: ‘number’},
{name: ‘total’, dataType: ‘number’}
]
})
You can also see this example: https://codepen.io/svetoslavb04/pen/zYaXrBL
Best Regards,
Svetoslav Borislavov
Smart UI Team
https://www.htmlelements.com/