FlexGrid Custom Editor

Posted by: ramirezcleandro on 16 September 2020, 3:01 am EST

  • Posted 16 September 2020, 3:01 am EST

    Hello dear Support.

    I would like to change the behavior of the row depends on my data, Let me explain how should it working. In my data, I have an item, with the value "canEdit", If this value is true, this row, must be editable, but if the canEdit is false, the user must not be able to edit that row, Is it possible to do that. This is my example.

    https://jsfiddle.net/betbest/9h8q1jo7/32/
  • Marked as Answer

    Replied 16 September 2020, 4:30 pm EST

    Hi,

    You can use the isReadOnly property of the Row class. In the loadedRows event of the FlexGrid, iterate over each of the rows and set the isReadOnly property according to the canEdit value. Please refer to the updated sample link below:

    https://jsfiddle.net/xoary0jh/1/

    Regards,
    Ashwin
  • Replied 16 September 2020, 11:17 pm EST

    Thank you so match.
Need extra support?

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

Learn More

Forum Channels