Disable formula on FlexSheet Cell

Posted by: parmarav on 20 November 2017, 7:59 pm EST

    • Post Options:
    • Link

    Posted 20 November 2017, 7:59 pm EST

    Hi Team,

    I want to disable formula evaluation on FlexSheet Cell. At the moment, when i enter “=” string in the cell with column Data Type = ‘Number’, a list of formula opens up. I do not want that. As the cell is with DataType = Number, “=” should not be allowed.

    Thanks

    Anshul Parmar

  • Posted 21 November 2017, 3:42 pm EST

    Hi Anshul,

    You may hide function opened formula list using hideFunctionList() method. You may prevent entering “=” by handling keydown event for FlexSheet.

    flex.hostElement.addEventListener("keydown",(e)=>{
    	// condition
    		e.preventDefault();
    		e.stopPropagation();
    },true);
    

    Hope it helps!

    ~Manish

  • Posted 21 November 2017, 4:47 pm EST

    Thanks Manish

Need extra support?

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

Learn More

Forum Channels