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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

EjsGrid does not have a property matching the name '@ref:suppressField'

Thread ID:





149725 Dec 6,2019 01:45 PM UTC Dec 9,2019 09:09 AM UTC Blazor 1
Tags: Grid
Asked On December 6, 2019 01:45 PM UTC

Using Syncfusion.EJ2.Blazor and .NET Core 3.1.100, when I create an EjsGrid and want access to it in the code-behind, I am using the following that I found in this forum from a sample solution.

<EjsGrid DataSource="@MyData" @ref="@MyGrid" @ref:suppressField> ... </EjsGrid>

With this I get the error: EjsGrid ... does not have a property matching the name '@ref:suppressField'.

Is there another way to be able to access the EjsGrid from the code-behind?


Vignesh Natarajan [Syncfusion]
Replied On December 9, 2019 09:09 AM UTC

Hi David,  

Greetings from Syncfusion support.  

Query: “With this I get the error: EjsGrid ... does not have a property matching the name '@ref:suppressField'. 
We understand that you are facing issue while using @ref:suppressField property in the EjsGrid. From .Net Core 3.0 Preview 9 release, Microsoft has suggested to remove the backing field property from component (refer below link). So kindly remove the @ref:suppressField property from EjsGrid to resolve the issue. 

To take the instance of EjsGrid in Code Behind, kindly define only @ref property alone.  Refer the below code example  

<EjsGrid @ref="DefaultGrid" ID="Grid" DataSource="@GridData"> 
. . . . . . . . .. . . .  
    EjsGrid<OrdersDetails> DefaultGrid; 
. . . . . . . . . . 
    public class OrdersDetails 
        public int? OrderID { get; set; } 
. . . . . . . 

Please get back to us if you have further queries.   

Vignesh Natarajan. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon