<EjsButton OnClick="Change">Increase Data</EjsButton>
<EjsGrid TValue="Order" ID="Grid" AllowSorting="true" Query=@GridQuery AllowFiltering="true" AllowPaging="true">
<EjsDataManager AdaptorInstance="@typeof(CustomAdaptor)" Adaptor="Adaptors.CustomAdaptor"></EjsDataManager>
<GridPageSettings PageSize="8"></GridPageSettings>
. . . . . .. . . . .
</EjsGrid>
@code{
public int ParamValue = 2;
public void Change()
{
ParamValue = ParamValue + 2;
GridQuery = new Query().AddParams("ej2grid", ParamValue);
}
public static List<Order> Orders { get; set; }
public Query GridQuery { get; set; }
protected override void OnInitialized()
{
GridQuery = new Query().AddParams("ej2grid", ParamValue);
. . . . . . . . . .. . . .
} |