示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            RadGrid grid;

            if (BaseMaster.HistoryEnable)
            {
                grid = DynamicColumnsInGrid ? DocumentSeriesRadGrid.NewGrid(GridStructure, StoricoEnabled) : DocumentSeriesRadGrid.NewGrid(null, StoricoEnabled);
            }
            else
            {
                grid = DynamicColumnsInGrid ? DocumentSeriesRadGrid.NewGrid(GridStructure) : DocumentSeriesRadGrid.NewGrid();
            }

            grid.ClientSettings.Scrolling.AllowScroll      = true;
            grid.ClientSettings.Scrolling.UseStaticHeaders = false;

            grid.NeedDataSource += GridNeedDataSource;

            GridPlaceHolder.Controls.Add(grid);
            BaseMaster.AjaxManager.AjaxSettings.AddAjaxSetting(grid, grid, BaseMaster.AjaxLoadingPanel);
            if (!IsPostBack)
            {
                NeedItemCount(grid, e);
            }
        }
示例#2
0
        protected override void OnInit(EventArgs e)
        {
            RadGrid grid;

            if (MyMaster.HistoryEnable)
            {
                grid = DynamicColumnsInPriorityGrid ? DocumentSeriesRadGrid.NewGrid(Structure, MyMaster.StoricoEnabled) : DocumentSeriesRadGrid.NewGrid(null, MyMaster.StoricoEnabled);
            }
            else
            {
                grid = DynamicColumnsInPriorityGrid ? DocumentSeriesRadGrid.NewGrid(Structure) : DocumentSeriesRadGrid.NewGrid();
            }

            grid.ClientSettings.Scrolling.AllowScroll      = true;
            grid.ClientSettings.Scrolling.UseStaticHeaders = false;
            grid.AllowPaging     = ShowAllItems;
            grid.NeedDataSource += GridNeedDataSource;

            GridPlaceHolder.Controls.Add(grid);
            base.OnInit(e);
        }