I believe that you can specify the number of rows and column when you create a spreadsheet control, but can you alter the number of of rows/columns AFTER the spreadsheet is created and rendered?
I do not want any rows or column visible beyond the "used range". For example, I want to display a 8 row by 8 column spreadsheet, without the user being able to navigate outside of that range. Then, I may want to programmatically increase or decrease the rol/col count (e.g. expand to 10 x 10).
Can you please show me the proper javascript to create a 8x8 blank spreadsheet and the code to change the col/row count afterwards?
//Initialize Spreadsheet component.
var spreadsheet = new ej.spreadsheet.Spreadsheet({
height: 800,
sheets: [{
name: "MySheet",
rowCount: 10, //doesn't work now, it worked earlier, I thought
colCount: 10 }]
});
//Render initialized Spreadsheet component.
spreadsheet.appendTo('#spreadsheet');
function setColumnCount(n) {
spreadsheet.sheets[0].colCount = n; //doesn't work
};
JS2 - Javascript - 19.2.0.44