Edit value - flexgrid - react

Posted by: bmysliwy on 4 January 2022, 12:27 am EST

    • Post Options:
    • Link

    Posted 4 January 2022, 12:27 am EST

    Hello,

    I have a problem with edit value in flexgrid cells. When i double click and set value flexgrid lost focuse.

    The colums is dynamiclly added and removed, value in cell is fill on event formatItem -

    line: 159

     
    else if (e.col > 2 && krzywa.hasOwnProperty("wartosci")) {
                const wartosc = krzywa.wartosci.moc[e.col - 3];
                if (wartosc !== undefined) {
                   e.cell.textContent = wartosc
                      .toFixed(2)
                      .replace(".", ",")
                      .replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1 ");
                }
             }
    
    

    Source:

    [zip filename=“flexGridApp.zip”]https://gccontent.blob.core.windows.net/forum-uploads/file-c1a45c40-cbb1-432e-8eb4-926ae9830e62.zip[/zip,

    Thank you in advance for your help.

    Regards.

  • Posted 4 January 2022, 12:30 am EST

    Source:

    flexGridApp.zip

  • Posted 5 January 2022, 8:05 pm EST

    Hi,

    Since you are setting the FlexGrid data in the FormatItem, the data is set for Cell HTML and it is tempory.

    If you would like to edit and update the data, the data should be set using the setCellData method for FlexGrid initialize or the FlexGrid should be in bound mode.

    Also, it would be better to elaborate your use case if the issue persists.

    Regards,

    Manish Gupta

  • Posted 9 January 2022, 7:53 pm EST

    Thanks for help!

    Regards

Need extra support?

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

Learn More

Forum Channels