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
Forums Home / Wijmo / General Discussion
Posted by: muddam.kranthi on 26 April 2021, 8:03 pm EST
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