Posted 14 September 2017, 12:02 pm EST
We’re working on the importing of excel file into flexgrid and I have 2 questions:
-
Is there a way to load a specific sheet into flexgrid? I’ve tried to specify sheetName like below but it doesn’t work. it only loads the first sheet.
loadAsync(this.flexGrid, fileInput.files[0], { includeColumnHeaders: this.includeColumnHeader, sheetName: ‘Sheet3’ }); -
Can i specify mapping of columns from the excel sheet to the binded columns already specified for the grid? For example
<wj-flex-grid-column [header]=“‘Category’” [binding]=“‘category’”></wj-flex-grid-column> but on my excelsheet, it’s named “CAT”.
We have a lot of preexisting excel files and the import helps to ease the transition. it’s very time consuming to go back and rename the sheet to match the bindings on the flexgrid. Also the excel files are being used by another process so renaming will break that process.
Even when i tried to edit the sheet i wanted to be the first one with columns matching the grid binding but out of order, says column “CAT” is first one on the grid, but in the sheet, it’s column number 2, seems like it completely destroys the old grid binding and create a new grid same order as the sheet.
Thanks
