<EjsGrid @ref="grid" TValue="Order" Toolbar="@(new List<string> { "Search"})" Height="315">
<GridFilterSettings Columns="@FilterCols"></GridFilterSettings>
<GridSearchSettings Fields="@Cols"></GridSearchSettings>
<EjsDataManager AdaptorInstance="@typeof(CustomAdaptor)" Adaptor="Adaptors.CustomAdaptor"></EjsDataManager>
<GridColumns>
. . . . . . . . . . .
</GridColumns>
</EjsGrid>
@code{
EjsGrid<Order> grid { get; set; }
public List<GridFilterColumn> FilterCols = new List<GridFilterColumn>();
public static List<Order> Orders { get; set; }
public string[] Cols = new string[] { "OrderID", "OrderDate", "Freight" }; // define the columns here excluding the foreignkey column |