[PR #1165] [CLOSED] access to SelectedTab #2550

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

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1165
Author: @bikotoru
Created: 9/25/2023
Status: Closed

Base: masterHead: master


📝 Commits (1)

📊 Changes

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

View changed files

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

📄 Description

Access is given to the selected Tab so that logic can be applied, for example

async Task ChangeTab()
{

  if (TabsOT is null) return;
 
  if (TabsOT.SelectedTab.Text.Equals("Actividades"))
  {
      

      if (listadoSolInsumos is null)
      {
          await SolicitudInsumosLoadData();
      }
      if (planesMantencionList is null || planesMantencionList.Count().Equals(0))
      {
          planesMantencionList = await comgesotdbService.GetPlanDeMantencion(new Query
          {
              Filter = "x=>x.versionid == @0",
              FilterParameters = new object[] { ot.Vehiculo.VersionAuto.id },
              Expand = "VersionAuto.ModeloAuto.MarcaVehiculo",
          });
      }

  }

}

Currently it can be done by obtaining the index at the change of each Tab, but if there are dynamic Tabs, it does not work correctly


🔄 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/1165 **Author:** [@bikotoru](https://github.com/bikotoru) **Created:** 9/25/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`7ec80a4`](https://github.com/radzenhq/radzen-blazor/commit/7ec80a46edfe936efde78c7b4b6f20d425ea1dd0) access to SelectedTab ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenTabs.razor.cs` (+1 -1) </details> ### 📄 Description Access is given to the selected Tab so that logic can be applied, for example async Task ChangeTab() { if (TabsOT is null) return; if (TabsOT.SelectedTab.Text.Equals("Actividades")) { if (listadoSolInsumos is null) { await SolicitudInsumosLoadData(); } if (planesMantencionList is null || planesMantencionList.Count().Equals(0)) { planesMantencionList = await comgesotdbService.GetPlanDeMantencion(new Query { Filter = "x=>x.versionid == @0", FilterParameters = new object[] { ot.Vehiculo.VersionAuto.id }, Expand = "VersionAuto.ModeloAuto.MarcaVehiculo", }); } } } Currently it can be done by obtaining the index at the change of each Tab, but if there are dynamic Tabs, it does not work correctly --- <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:22 +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#2550