Flexsheet: Inserting empty row to flexsheet

Posted by: sattur.sameer on 21 November 2017, 9:07 pm EST

    • Post Options:
    • Link

    Posted 21 November 2017, 9:07 pm EST

    Hi,

    We are using flexsheet in Angular 2.

    We have used the below code which adds an empty row at the end,

    //newItem = flexCollView[i].addNew();

    flexCollView[i].commitNew();

    we tried using this also, but this code had commit issue.

    // let row=new wjcGrid.Row({});

    // flexarray[j].rows.splice(this.selRowIndex+1,0,row);

    flexarray[j].refresh();

    so can you please provide any solution to insert a row at any required index?

    Thanks,

    Sameer

  • Posted 22 November 2017, 8:05 pm EST

    Hi Sameer,

    You may add row at specific index using splice method for FlexSheet.rows or CollectionView.sourceCollection.

    Please refer to attached sample.

    ~Manish

    FlexSheet_addRow_boundSheet_specific_index.zip

Need extra support?

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

Learn More

Forum Channels