Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149725 | Dec 6,2019 01:45 PM UTC | Dec 9,2019 09:09 AM UTC | Blazor | 1 |
![]() |
Tags: Grid |
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.
<EjsGrid @ref="DefaultGrid" ID="Grid" DataSource="@GridData">
. . . . . . . . .. . . .
</EjsGrid>
@code{
EjsGrid<OrdersDetails> DefaultGrid;
. . . . . . . . . .
public class OrdersDetails
{
public int? OrderID { get; set; }
. . . . . . .
}
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.