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

Get row data from SfGrid using a RowTemplate

Hello all,

I am currently developing a web app using SyncFusion's Blazor-based grid. I have found that using the RowTemplate and defining my own table elements has led to much higher performance... I need to load many hundreds of rows and columns without paging, so I have no choice but to use the RowTemplate as the performance is too slow when just using the GridColumn component. My problem is that when I use a right-click context menu, I am unable to get the data from the row I right clicked on. I'll upload a file which contains my example code.

Any guidance would be much appreciated. Thanks! Marc

2 Replies

MA Marc Andre Gingras February 13, 2023 08:01 PM UTC

Here's the file:

Attachment: Example_31a4ef1c.zip

NP Naveen Palanivel Syncfusion Team February 14, 2023 05:49 PM UTC

Hi Marc,

Greetings from Syncfusion support.

We understand that you are facing an issue in retrieving the rowdata value from the contextmenu EventArgs while using RowTemplate in the grid. We have checked and found that it is not possible to retrieve the rowdata value in such a scenario. However, we do have a column template feature that allows you to get the rowdata value from the contextmenu EventArgs. We suggest you refer to the Column template documentation link below for further guidance.

Reference : https://blazor.syncfusion.com/documentation/datagrid/column-template

Please let us know if you have any concerns.


Naveen Palanivel

Live Chat Icon For mobile
Up arrow icon