Example #1
0
        public DataGrid()
        {
            newItemCreator = new Lazy <Func <TItem> >(() => FunctionCompiler.CreateNewItem <TItem>());

            paginationTemplates = new PaginationTemplates <TItem>();
            paginationContext   = new PaginationContext <TItem>(this);

            paginationContext.SubscribeOnPageSizeChanged(pageSize => InvokeAsync(() => StateHasChanged()));
        }
Example #2
0
 public BaseDataGrid()
 {
     newItemCreator = new Lazy <Func <TItem> >(() => FunctionCompiler.CreateNewItem <TItem>());
 }