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

Grid selection highlight stops working when adding Grid Event handler


My SfGrid component has AllowSelection set to true. When clicking on the records/ rows within it they will be selected and highlighted grey as expected.

Within the SfGrid if I add a tag and then add either OnRecordClick, OnRowSelected or OnRowSelecting to the rows will no longer become highlighed when selected which is not what I want.

It's as if adding an event is doing the equivalent of setting AllowSelection to false.

How can I fix this so that I can have an event handler and still click the rows to highlight them as selected?

3 Replies 1 reply marked as answer

NP Naveen Palanivel Syncfusion Team January 16, 2023 05:38 PM UTC

Hi Ben,

Greetings from Syncfusion support.

From your query, Grid selection highlight stops working when adding Grid Event handler. We prepared sample but unfortunately reported issue does not occurs at latest version ( We also attached the screenshot and sample in this ticket.

Please let us know if you have any concerns.


Naveen Palanivel

Attachment: Selection_9c1cab91.zip

Marked as answer

BW Ben Willan January 16, 2023 05:51 PM UTC

Thanks Naveen, I've found an alternative solution as well.

PS Prathap Senthil Syncfusion Team January 17, 2023 12:52 PM UTC

Thanks for the update.

We are glad to hear that the problem has been resolved on your end. If you have any additional questions or concerns, please do not hesitate to reach out to us. We are always here to help.

Live Chat Icon For mobile
Up arrow icon