public GridDefinition(GridDefaults gridDefaults) : base() { Columns = new List <GridColumn <T1> >(); if (gridDefaults == null) { gridDefaults = new GridDefaults(); } this.PreloadData = gridDefaults.PreloadData; this.QueryOnPageLoad = gridDefaults.QueryOnPageLoad; this.Paging = gridDefaults.Paging; this.ItemsPerPage = gridDefaults.ItemsPerPage; this.Sorting = gridDefaults.Sorting; this.DefaultSortColumn = gridDefaults.DefaultSortColumn; this.NoResultsMessage = gridDefaults.NoResultsMessage; this.ClientSideLoadingMessageFunctionName = gridDefaults.ClientSideLoadingMessageFunctionName; this.ClientSideLoadingCompleteFunctionName = gridDefaults.ClientSideLoadingCompleteFunctionName; this.Filtering = gridDefaults.Filtering; //this.RenderingEngine = gridDefaults.RenderingEngine; this.TemplatingEngine = gridDefaults.TemplatingEngine; this.AdditionalSettings = gridDefaults.AdditionalSettings; this.RenderingMode = gridDefaults.RenderingMode; this.ViewPath = gridDefaults.ViewPath; this.ContainerViewPath = gridDefaults.ContainerViewPath; this.QueryStringPrefix = gridDefaults.QueryStringPrefix; this.ErrorMessageHtml = gridDefaults.ErrorMessageHtml; this.AdditionalQueryOptionNames = gridDefaults.AdditionalQueryOptionNames; this.PageParameterNames = gridDefaults.PageParameterNames; this.AllowChangingPageSize = gridDefaults.AllowChangingPageSize; this.MaxItemsPerPage = gridDefaults.MaxItemsPerPage; this.AuthorizationType = gridDefaults.AuthorizationType; this.BrowserNavigationMode = gridDefaults.BrowserNavigationMode; this.RenderingEngines = gridDefaults.RenderingEngines; this.DefaultRenderingEngineName = gridDefaults.DefaultRenderingEngineName; this.SpinnerEnabled = gridDefaults.SpinnerEnabled; this.SpinnerRadius = gridDefaults.SpinnerRadius; this.EnableRowSelect = gridDefaults.EnableRowSelect; this.ClientSideRowSelectFunctionName = gridDefaults.ClientSideRowSelectFunctionName; this.ClientSideRowSelectProperties = gridDefaults.ClientSideRowSelectProperties; }
public GridDefinition(GridDefaults gridDefaults) : base() { Columns = new List <GridColumn <T1> >(); if (gridDefaults == null) { gridDefaults = new GridDefaults(); } this.PreloadData = gridDefaults.PreloadData; this.QueryOnPageLoad = gridDefaults.QueryOnPageLoad; this.Paging = gridDefaults.Paging; this.ItemsPerPage = gridDefaults.ItemsPerPage; this.Sorting = gridDefaults.Sorting; this.DefaultSortColumn = gridDefaults.DefaultSortColumn; this.NoResultsMessage = gridDefaults.NoResultsMessage; this.NextButtonCaption = gridDefaults.NextButtonCaption; this.PreviousButtonCaption = gridDefaults.PreviousButtonCaption; this.SummaryMessage = gridDefaults.SummaryMessage; this.ProcessingMessage = gridDefaults.ProcessingMessage; this.ClientSideLoadingMessageFunctionName = gridDefaults.ClientSideLoadingMessageFunctionName; this.ClientSideLoadingCompleteFunctionName = gridDefaults.ClientSideLoadingCompleteFunctionName; this.Filtering = gridDefaults.Filtering; this.SelectedRowFunction = gridDefaults.SelectedRowFunction; //this.RenderingEngine = gridDefaults.RenderingEngine; this.TemplatingEngine = gridDefaults.TemplatingEngine; this.AdditionalSettings = gridDefaults.AdditionalSettings; this.RenderingMode = gridDefaults.RenderingMode; this.ViewPath = gridDefaults.ViewPath; this.ContainerViewPath = gridDefaults.ContainerViewPath; this.QueryStringPrefix = gridDefaults.QueryStringPrefix; this.ErrorMessageHtml = gridDefaults.ErrorMessageHtml; this.AdditionalQueryOptionNames = gridDefaults.AdditionalQueryOptionNames; this.PageParameterNames = gridDefaults.PageParameterNames; this.AllowChangingPageSize = gridDefaults.AllowChangingPageSize; this.MaxItemsPerPage = gridDefaults.MaxItemsPerPage; this.AuthorizationType = gridDefaults.AuthorizationType; this.RenderingEngines = gridDefaults.RenderingEngines; this.DefaultRenderingEngineName = gridDefaults.DefaultRenderingEngineName; }
public MVCGridBuilder(GridDefaults gridDefaults, ColumnDefaults columnDefaults) { GridDefinition = new GridDefinition <T1>(gridDefaults); _columnDefaults = columnDefaults; }
public MVCGridBuilder(GridDefaults gridDefaults) : this(gridDefaults, null) { }