I am unable to get cell data in favicon

Posted by: bemes9226 on 10 February 2021, 10:09 am EST

  • Posted 10 February 2021, 10:09 am EST

    is it posible to append value in getcelldata and setcell data for favorite icon.

    rest all pdf and excel and html we have added getcell and setcell.

    when i try to getCell it is displaying NAN.

    instead of this

    if (col === “fieldFavorite”) {

    const item = s.rows[e.row].dataItem;

    item.Favorite = !item.Favorite;

    used this

    if (col === “fieldFavorite”) {

    let valuefavicon = s.getCellData(e.row, e.col, false);

    s.setCellData(e.row, “excel”, !valuefavicon );

  • Posted 10 February 2021, 10:10 am EST

    if (col === “fieldFavorite”) {

    let valuefavicon = s.getCellData(e.row, e.col, false);

    s.setCellData(e.row, “favrite”, !valuefavicon );

  • Posted 11 February 2021, 4:28 am EST

    Hi,

    If you need to update the original favorite value using the setCellData method, then you will need to add the favorite column in the grid also but you can hide it using the visible property. Please refer to the sample link below for reference:

    https://stackblitz.com/edit/js-94nz3m

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels