Getting formated values from selectedRows/selectedItems

Posted by: marten.olofsson on 20 November 2017, 11:41 pm EST

    • Post Options:
    • Link

    Posted 20 November 2017, 11:41 pm EST

    I’m trying to get the formated values from the selectedItems in a wijmo grid using the angular 2 wijmo grid module.

    Like this I can get the unformated values from the selectedItems:

    var text = "";
    
             for(let row of this.grid.selectedItems) {
                for(let column of this.columns.items) {
                    var value = row[column.binding];
                     text += value + " ";
                }
            }
    

    But how can i get the text presented in the UI? For example dates and numbers instead of the raw values from the data.

  • Posted 21 November 2017, 3:49 pm EST

    HI Marten,

    You can get formatted data using getCellData method of FlexGrid.

    flex.getCellData(row.index,col.index,true);
    

    ~Manish

  • Posted 22 November 2017, 6:21 pm EST

    Thank you Manish! :slight_smile:

    ~Marten

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels