diff --git a/e2e/Sandbox/Sandbox.csproj b/e2e/Sandbox/Sandbox.csproj index ee5a18d..f976790 100644 --- a/e2e/Sandbox/Sandbox.csproj +++ b/e2e/Sandbox/Sandbox.csproj @@ -8,24 +8,24 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/src/Reveal.Sdk.Dom/Visualizations/Extensions/Visualizations/GridVisualizationExtensions.cs b/src/Reveal.Sdk.Dom/Visualizations/Extensions/Visualizations/GridVisualizationExtensions.cs new file mode 100644 index 0000000..3465080 --- /dev/null +++ b/src/Reveal.Sdk.Dom/Visualizations/Extensions/Visualizations/GridVisualizationExtensions.cs @@ -0,0 +1,13 @@ +using Reveal.Sdk.Dom.Visualizations.Settings; +using System; + +namespace Reveal.Sdk.Dom.Visualizations +{ + public static class GridVisualizationExtensions + { + public static GridVisualization ConfigureSettings(this GridVisualization visualization, Action settings) + { + return visualization.ConfigureSettings(settings); + } + } +} \ No newline at end of file diff --git a/src/Reveal.Sdk.Dom/Visualizations/Settings/GridVisualizationSettings.cs b/src/Reveal.Sdk.Dom/Visualizations/Settings/GridVisualizationSettings.cs index 1acd6f8..c1a4bc2 100644 --- a/src/Reveal.Sdk.Dom/Visualizations/Settings/GridVisualizationSettings.cs +++ b/src/Reveal.Sdk.Dom/Visualizations/Settings/GridVisualizationSettings.cs @@ -11,11 +11,25 @@ public GridVisualizationSettings() VisualizationType = VisualizationTypes.GRID; } + /// + /// Gets or sets whether the grid should have paging enabled. + /// Paging is supported only when ProcessDataOnServer is set to true and is not compatible with Data Blending. + /// Supported data sources include: Athena, BigQuery, MySQL, Oracle, PostgreSQL, SQL Server, and SyBase. + /// + [JsonProperty("PagedRows")] + public bool IsPagingEnabled { get; set; } = true; + + /// + /// Gets or sets the number of rows to display per page. + /// + [JsonProperty("PagedRowsSize")] + public int PageSize { get; set; } = 50; + /// /// Gets or sets whether the first column in the grid is fixed. /// [JsonIgnore()] - public bool FixFirstColumn + public bool IsFirstColumnFixed { get { return Style.FixedLeftColumns; } set { Style.FixedLeftColumns = value; }