Ejemplo n.º 1
0
        protected virtual async Task OnPagerChanged()
        {
            PagerEventArgs args     = new PagerEventArgs();
            PagerDTO       pagerDTO = new PagerDTO(Grid.EnablePaging, Grid.Pager.PageSize, Grid.Pager.CurrentPage,
                                                   Grid.Pager.ItemsCount);

            args.Pager = pagerDTO;

            if (PagerChanged != null)
            {
                await PagerChanged.Invoke(this, args);
            }
        }
 protected void PagerButtonClicked(int page)
 {
     PagerChanged?.Invoke(page);
 }