syncfusion-blazor-toolkit-dialog

Implement Syncfusion Blazor SfDialog modal and modeless windows with buttons, drag, resize, and animations.

19|8|Updated May 12, 2026
One-click install
npx skills add https://github.com/syncfusion/blazor-toolkit --skill syncfusion-blazor-toolkit-dialog-syncfusion
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: syncfusion-blazor-toolkit-dialog
Source: https://github.com/syncfusion/blazor-toolkit/tree/main/.github/skills/syncfusion-blazor-toolkit-popups/dialog
Command: npx skills add https://github.com/syncfusion/blazor-toolkit --skill syncfusion-blazor-toolkit-dialog-syncfusion

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building accessible, correctly-behaving dialogs in Blazor requires handling visibility binding, focus traps, cancelable close events, prerendering pitfalls, and programmatic lifecycle control. This Skill provides the rules, patterns, and API reference needed to implement SfDialog correctly the first time. ## Core Features & Use Cases - Modal and Modeless Dialogs: Configure confirmation modals, alert dialogs, form-in-modal layouts, and settings panels with proper IsModal, @bind-Visible, and ShowCloseIcon settings. - Anti-Pattern Correction: Identifies and fixes common mistakes such as dead callback snippets, calling Show() from OnInitialized, JS interop during prerender, and double-binding visibility. - Advanced Scenarios: Covers drag and resize, positioning, multi-step wizards, nested dialogs, loading states, and cancelable OnClose for unsaved-changes guards. - Use Case: You need a delete-confirmation modal that blocks the background UI, traps focus, and cancels closing when the form is dirty — the Skill provides the exact Razor markup and event wiring. ## Quick Start Ask the AI to create a Syncfusion Blazor confirmation dialog with Yes and No buttons that binds visibility and prevents closing when there are unsaved changes.

Frequently Asked Questions about syncfusion-blazor-toolkit-dialog

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a modal confirmation dialog in Blazor with SfDialog?▼

Bind visibility with @bind-Visible, set IsModal="true" and ShowCloseIcon="true", then declare DialogButtons with one OnClick handler per button. Use AllowPrerender="false" when the body contains interactive content like EditForm or JS interop.

How do I prevent a Blazor dialog from closing on unsaved changes?▼

Handle the cancelable OnClose event and set args.Cancel = true when your dirty-state flag is set. OnClosed is non-cancelable and runs after dismissal, so validation logic belongs in OnClose.

Should I use @bind-Visible or call Show() and Hide() on SfDialog?▼

Pick one mechanism only. Use @bind-Visible for declarative state-driven visibility, or use a @ref with Show()/Hide() for programmatic control. Mixing both causes competing state controllers and visual flicker.

Why does my Blazor dialog break when it contains an EditForm or JS interop?▼

The dialog is prerendering interactive content, causing double-mounting or JS errors on first paint. Set AllowPrerender="false" and move JS interop calls into OnAfterRenderAsync instead of OnInitialized.

When should I use a dialog instead of a tooltip or notification in Blazor?▼

Use SfDialog for interactions requiring user decisions, form input, or blocking the underlying UI. Use a tooltip for brief hover text and notifications or spinners for non-blocking progress indicators.

Can I nest one SfDialog inside another SfDialog?▼

Nesting dialogs causes z-index collisions, render artifacts on overlay clicks, and nested focus traps that can lock the browser. Instead, manage stacked dialogs as siblings with increasing z-index, or replace the outer dialog with sequential steps.