Is it possible to inherit from Text cell for custom cell without cell overflow?

Posted by: randy.nichols on 29 April 2019, 12:28 pm EST

  • Posted 29 April 2019, 12:28 pm EST - Updated 3 October 2022, 10:53 am EST

    I have inherited from GC.Spread.Sheets.CellTypes.Text to create a custom field that displays vertical text as referenced by https://www.grapecity.com/blogs/rotating-text-in-spreadjs-cells.

    If option ‘sheet.options.allowCellOverflow = true’, the cell will continue to paint a horizontal text when the column size is reduced.

    Is it possible to inherit from Text and define the custom cell to avoid overflow?

  • Posted 30 April 2019, 1:32 am EST

    Hi,

    We are sorry but we are unable to replicate the issue. Please refer to the attached sample that we used for testing purposes. If the issue persists for you, please share a sample replicating the issue so that we could further investigate the issue.

    Regards

    RotateText_JS.zip

  • Posted 30 April 2019, 1:01 pm EST

    Thank you for such a prompt reply.

    Your example runs fine for me as a standalone html file. Using the definition for custom cell type within the application still resulted in overflow showing.

    I was able to stop overflow into next cells with:

    
        function RotateTextCellType() {
            this.allowOverflow = false;
        }
    
    
  • Posted 1 May 2019, 12:33 am EST

    Hi,

    We are glad to hear that you were able to resolve the issue. Thanks for sharing your approach, it would be helpful for other developers who might come across the same issue.

    Regards

Need extra support?

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

Learn More

Forum Channels