Hi Doug,
Greetings from Syncfusion support.
Query: “I can't seem to find a way to get the ID of the Grid Component.”
We are glad to announce that our latest Nuget release (17.2.46) has been successfully release and kindly find the latest Nuget package from below
So kindly refer our latest Nuget package from nuget.org instead of private build. We suspect that you need to get the Grid instance using the ID to perform certain actions in Grid. We suggest you to take the Grid instance using @ref property of Grid. Refer the below code example.
<EjsGrid DataSource="@Orders" @ref="@DefaultGrid" @ref:suppressField ID="test" AllowPaging="true">
……………………………………….
</EjsGrid>
@code{
EjsGrid<Order> DefaultGrid { get; set; }
public List<Order> Orders { get; set; }
………………………………..
public void GridLoaded(ActionEventArgs<Order> Args)
{
DefaultGrid.AddRecord(); //DefaultGrid is the instance of the grid. You can call the public method from it.
}
public void GridDataBound()
{
}
………………………………..
} |
If above solution does not resolve your query, please get back to us with more details of your requirement.
Regards,
Vignesh Natarajan.