[PR #1309] [CLOSED] Added tab change validation parameter to RadzenTabs #2658

Open
opened 2026-01-29 18:19:52 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1309
Author: @BoudewijnPopkema
Created: 1/5/2024
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 4e76c7f added validation function parameter to validate the change and enable preventing the tab from changing

📊 Changes

1 file changed (+21 additions, -2 deletions)

View changed files

📝 Radzen.Blazor/RadzenTabs.razor.cs (+21 -2)

📄 Description

I've added a Func<int,bool> parameter to RadzenTabs in order to enable the developer to validate certain conditions or run code before allowing the Tab to change.

This allows for things like asking the user to confirm and unsaved changes before changing the tab (and disposing of the current tab / component) and grants the developer more control over how the Tabs component behaves.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/1309 **Author:** [@BoudewijnPopkema](https://github.com/BoudewijnPopkema) **Created:** 1/5/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`4e76c7f`](https://github.com/radzenhq/radzen-blazor/commit/4e76c7f8b57af24270667877e78ef24ee29fa125) added validation function parameter to validate the change and enable preventing the tab from changing ### 📊 Changes **1 file changed** (+21 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenTabs.razor.cs` (+21 -2) </details> ### 📄 Description I've added a Func<int,bool> parameter to RadzenTabs in order to enable the developer to validate certain conditions or run code before allowing the Tab to change. This allows for things like asking the user to confirm and unsaved changes before changing the tab (and disposing of the current tab / component) and grants the developer more control over how the Tabs component behaves. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:19:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2658