How to set readonly for parent in nestedRow but children still can edit

Tags: #<Tag:0x00007efc72fc8b20>

Like title, how to set readonly for parent while we still can edit it’s children.

Hi @doanak000

Unfortunately we do not support this functionality.

do we have anyway to filter class which will be parent and set it readonly through cell props?

I tried this solution at first but it didn’t work.

i have try and its work, you can refer my code:

  • i convert datasource to a same level array, and add 1 more attribute to each object in array to know who is parent, who is children, then i check in cell function:
    if (!readOnly and prop=“the column we want to readOnly parent” and data[row].parent === true)
    -> cellprop.readOnly=true

Wow, that’s great that you were able to work it out. That’s very useful information, so thank you for that.