Posted 4 August 2018, 3:24 am EST
Hi Team,
I am trying to add a row to my flexsheet using custom ‘add’ code as follows:
active_sheet.insertRows(selectedRow);
var newrow = //A custom row with some default values
active_sheet.itemsSource.splice(selectedRow - 1, 1, newrow);
Which works well.But after Sorting the default values disappear.
I tried with one of your samples where you are adding the new row to the items collection of itemsSource like -
active_sheet.itemsSource.items.splice(selectedRow - 1, 1, newrow); This gives me error as I don`t see items property in itemsSource.
In my case I am creating Flexsheet object using
new wjmo.grid.sheet.Flexsheet(#Id); and adding a bound sheet with observable array
as data soruce.
Can you please help me with this.
Thanks,
Raznin