Skip to content

Commit

Permalink
Merge pull request #85 from RevealBi/grid-paging
Browse files Browse the repository at this point in the history
added grid paging to grid visualization
  • Loading branch information
brianlagunas authored Nov 18, 2024
2 parents 30fd98d + 9abae49 commit ef90d2a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 19 deletions.
36 changes: 18 additions & 18 deletions e2e/Sandbox/Sandbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Reveal.Sdk.Data.Amazon.Athena" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Amazon.Redshift" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Amazon.S3" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Box" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Dropbox" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Google.Analytics4" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Google.BigQuery" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Google.Drive" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Microsoft.AnalysisServices" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Microsoft.OneDrive" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Microsoft.SqlServer" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Microsoft.SynapseAnalytics" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.MongoDB" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.MySql" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Oracle" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.PostgreSQL" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Snowflake" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Wpf" Version="1.6.7" />
<PackageReference Include="Reveal.Sdk.Data.Amazon.Athena" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Amazon.Redshift" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Amazon.S3" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Box" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Dropbox" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Google.Analytics4" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Google.BigQuery" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Google.Drive" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Microsoft.AnalysisServices" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Microsoft.OneDrive" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Microsoft.SqlServer" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Microsoft.SynapseAnalytics" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.MongoDB" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.MySql" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Oracle" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.PostgreSQL" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Data.Snowflake" Version="1.7.1" />
<PackageReference Include="Reveal.Sdk.Wpf" Version="1.7.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -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<GridVisualizationSettings> settings)
{
return visualization.ConfigureSettings<GridVisualization, GridVisualizationSettings>(settings);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,25 @@ public GridVisualizationSettings()
VisualizationType = VisualizationTypes.GRID;
}

/// <summary>
/// Gets or sets whether the grid should have paging enabled.
/// Paging is supported only when <c>ProcessDataOnServer</c> is set to <c>true</c> and is not compatible with Data Blending.
/// Supported data sources include: Athena, BigQuery, MySQL, Oracle, PostgreSQL, SQL Server, and SyBase.
/// </summary>
[JsonProperty("PagedRows")]
public bool IsPagingEnabled { get; set; } = true;

/// <summary>
/// Gets or sets the number of rows to display per page.
/// </summary>
[JsonProperty("PagedRowsSize")]
public int PageSize { get; set; } = 50;

/// <summary>
/// Gets or sets whether the first column in the grid is fixed.
/// </summary>
[JsonIgnore()]
public bool FixFirstColumn
public bool IsFirstColumnFixed
{
get { return Style.FixedLeftColumns; }
set { Style.FixedLeftColumns = value; }
Expand Down

0 comments on commit ef90d2a

Please sign in to comment.