Skip to content

fix(demo): resolve DashboardGridDemo RenderFragment compile errors#294

Open
schalling wants to merge 1 commit intoblazorblueprintui:developfrom
schalling:fix/DashboardGridDemoCompileError
Open

fix(demo): resolve DashboardGridDemo RenderFragment compile errors#294
schalling wants to merge 1 commit intoblazorblueprintui:developfrom
schalling:fix/DashboardGridDemoCompileError

Conversation

@schalling
Copy link
Copy Markdown

Refactor data-driven widget rendering in DashboardGridDemo.razor to use valid RenderFragment helper methods instead of invalid Razor markup inside lambda switch arms. Preserves existing UI behavior while fixing Razor/C# parsing issues and restoring successful build.

Description

This PR fixes compilation errors in DashboardGridDemo.razor caused by invalid Razor markup inside C# lambda switch arms.
Changes made
• Refactored RenderDataDrivenWidgetContent to dispatch to dedicated RenderFragment helper methods:
• RenderBarChartWidget
• RenderAreaChartWidget
• RenderLineChartWidget
• RenderPieChartWidget
• RenderKpiWidget
• RenderTableWidget
• Kept the existing UI/content behavior intact while correcting Razor/C# structure.

Type of Change

  • [x ] Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)

Testing Checklist

  • [x ] Blazor Server
  • Blazor WebAssembly
  • Blazor Hybrid (MAUI)
  • Keyboard navigation / accessibility
  • Dark mode

Related Issues

Refactor data-driven widget rendering in DashboardGridDemo.razor to use valid RenderFragment helper methods instead of invalid Razor markup inside lambda switch arms.
Preserves existing UI behavior while fixing Razor/C# parsing issues and restoring successful build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant