Author Topic: Copy Row  (Read 2081 times)

jeeva

  • Newbie
  • *
  • Posts: 29
    • View Profile
Copy Row
« on: April 12, 2017, 06:00:55 pm »
Hi,

Thank you for support

Would like to understand, if there is any api/method to copy a row and insert in to Grid as new Row.

We have tried the below steps
1. Use getRowData method to get data for a particular Row
2. Add the received data to grid using addRow method.

This is working fine incase if the row is editable. But if the row is non editable, then unable to insert the copied row.

If edit mode is the reason, then could you please let us know, how to make a row editable during run time.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Copy Row
« Reply #1 on: April 13, 2017, 04:15:14 pm »
Copying a row has nothing to do with editability of row.

rowData returned by getRowData is by reference.
So copy the fields from rowData instead of inserting rowData at new location.