Posted 5 May 2021, 2:46 am EST
Hi Avinash,
By default whenever your SpreadJS instance creates a sheet it generates an X number of predefined columns and rows.
This number of columns and rows is something that would be really helpful if it could be set via a configuration as the library shouldn’t make the assumption that A-Z columns are enough for a sheet, our use case is:
If we allow the user to add new sheets and permit them to copy/paste a number of columns/rows from a pre-existing sheet which contains twice the amount of columns, the paste operation fails because there are less columns than what the user has in his own “clipboard”.
Since our Application has certain instances with more than 40 columns we need to set a minimum of X columns to guarantee to the user the possibility to paste whatever content without having blocking experiences (as per above).
Setting the number of column after events such as “SheetChanged” is not that clean because you cause a repaint of the canvas just for setting something that should really belong to some sort of “initialisation” options.
I hope that makes sense.