Skip to content

Expand only specific rows based on a condition #942

@harikrishnanmurthy

Description

@harikrishnanmurthy

Hi Allen,

Currently, the expand row functionality seems to be all or one. I was wondering if there is a way we can expand only certain rows based on the values returned from the server for those rows? For instance,

    const expandRow = {
        showExpandColumn: true,
        expandByColumnOnly: false,
        renderer: row => (
            <div className="row-attachments">
                <input type="checkbox" name={row.attachments} />
            </div>
        ),
    };

I would like to set either the "showExpandColumn" attribute to "false" if row.attachments.length==0 or be able to check if(row.attachments.length==0) within the renderer:row

How do I do this? Any advise would be of great help. Thanks a lot in advance for your time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions