Newly added details row to be in expand mode

Posted by: muddam.kranthi on 26 April 2021, 8:03 pm EST

    • Post Options:
    • Link

    Posted 26 April 2021, 8:03 pm EST

    Hi Team,

    I have a add button in wijmo toolbar. On click of add will be adding new row to the grid. the newly added row’s wjFlexGridDetail to be in expand mode.

    Thanks,

    Kranthia

  • Posted 27 April 2021, 6:17 pm EST

    Hi Kranthi,

    To show the newly added row in detail you may call the showDetail() method provided by FlexGridDetailProvider.Please refer to the following code snippet:-

    addRow(flex: any, detailView: wjcGridDetail.FlexGridDetailProvider, e: any) {
            let data = /* the new row's data */,
                newRow = flex.rows.push(new wjcGrid.Row(data)),
                addedRow = flex.rows[newRow - 1];
            detailView.showDetail(addedRow, true)
        }
    

    You may also refer to the sample demonstrating the same.

    Regards,

    Ashwin

    row detail.zip

Need extra support?

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

Learn More

Forum Channels