Spreadjs designer catch events on view tab

Posted by: baloghbencefacebook on 7 November 2021, 11:05 pm EST

    • Post Options:
    • Link

    Posted 7 November 2021, 11:05 pm EST

    Hi!

    I am using the react 14.2.2 version of spreadjs. There are some buttons on the view tab that does not trigger any events, like show gridlines or show row headers.

    How can I catch their value change?

  • Posted 9 November 2021, 4:32 pm EST

    Hi,

    Forthis you may need to add applistner to the commandManager. Please refer to the following code snippet and attached sample that explains the same.

    
          spread = designer.getWorkbook();
            spread.commandManager().addListener('appListener', function (cmd) {
                console.log(cmd);
                if(cmd.command.cmd === "Designer.showHideVGridLine"){
                    console.log("Designer.showHideVGridLine")
                    console.log(cmd.command)
                }
            });
    
    

    sample: https://jscodemine.grapecity.com/share/R_Ii_eKVkkyv_WrNorN02A/

    Regards

    Avinash

Need extra support?

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

Learn More

Forum Channels