Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #109622
    matdjon
    Participant

    Good day,

    let’s say I want to merge the columns margin and profit together in this table. Then I can use updateRow to update the individual row. But so far I tried, u need to assign the same datafield for smart adapter and smart table column, as in 'margin: number' in the smart adapter and label: 'Margin', dataField: 'margin', dataType: 'number', templateElement: '<span>{{value}}%</span>' in the smart table column.

    Can I put two values in the datafield, like label: 'Margin and Profit', dataField: ['margin','profit], dataType: 'number', templateElement: '<span>Margin:{{value}}%</span>'<span>Profit: ${{value}}</span>

    #109623
    Markov
    Keymaster

    Hi matdjon,

    No, this is not possible. A column may have only 1 data field.

    Regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

    #109624
    matdjon
    Participant

    Understood. Thanks for the quick reply Markov.

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