Posted 14 September 2017, 11:50 am EST
Hello,
I want to delete a row in a FlexGrid, Angular 2 version.
I manage to delete the selected row, but that is not what I want. I want to delete another row and find that row by a value.
I grid is bound to an array called “this.myOrders”, which is a list of orders.
Then I search for a specific item by doing this:
var order = this.myOrders.find(o => o.orderId == orderId);
Then I would like to find that row in the grid containing this order and remove that row.
I tried this: this.ordersFlexGrid.rows.remove(order);
Bu that does not work.
How can I do this?
Thanks in advance!
Regards,
Joachim