Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #104051
    tanner anz
    Participant

    I’m transitioning to the Grid from the Table. With the table, I’m able to use the “map” property on the column to assign a dataField to a different name. Reason being is that a crucial naming key “group” for my platform is used across all properties and will not render in the Grid or Table without mapping it to a different name i.e “$group”.

    Unfortunately, the Grid does NOT allow this option. Can you please provide a way of doing this that won’t affect any filtering/exporting/etc?

    #104094

    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/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.