We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Access other cells and other rows on click

Could you give an example of how to change the format of other cells in the same row and other rows when the user clicks on a cell.

The use case is as follows:

In a dating app I would like the administrator to select a match for each partner in the grid.

Each row of the grid contains the following fields, where the partner fields represent the partner that needs to be matched and the "Match" fields represent the best 3 potential matches that the system has identified:

Partner_Id, Partner_Name, Match1_Id, Match1_Name, Match2_Id, Match2_Name, Match3_Id, Match3_Name

When the admin clicks on either the Match_Id or the Match_Name field, I would like both fields to be highlighted and other rows that contain the same match to become greyed out (not disabled, just change background color).

How can I achieve this?


1 Reply

BL Balamurugan Lakshmanan Syncfusion Team January 23, 2023 01:54 AM UTC

Hi Simon,

Based on your query ,we made a sample to resolve your issue.Kindly refer the attachment for your reference.

Please let us know if you have any further queries.

Regards,

Balamurugan L



Attachment: syncfusionBlazor_dd5a7d7d.zip

Loader.
Live Chat Icon For mobile
Up arrow icon