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. (Last updated on: June 24, 2019).
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:

Created:

Updated:

Platform:

Replies:

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

Using Syncfusion.EJ2.Blazor 17.3.0.29-beta 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?

Thanks.


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> 
 
@code{ 
    EjsGrid<OrdersDetails> DefaultGrid; 
. . . . . . . . . . 
    public class OrdersDetails 
    { 
        public int? OrderID { get; set; } 
. . . . . . . 
    } 
} 

Please get back to us if you have further queries.   

Regards, 
Vignesh Natarajan. 


CONFIRMATION

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