Closed ajitanil closed 3 weeks ago
Please add reproduction code we can run. Add a project (zip file) or link to a GitHub repository. We can not reproduce with the example you posted and we don't have capacity to just go and try to get your issue to appear.
Help us to help you.
PS will take a bit of time due to vacation period.
Also, we only support our latest released packages. So try upgrading to that version first.
Thank you for your response @vnbaaij As suggested will upgrade to the latest version and share the code in a zip file / Git repo link
Please find the Git repo link for the code https://github.com/ajitanil/fluentui.git
Also, please check the screenshots for a better understanding of the issue. /users page is in client project
User Index Page on Load
Click - Invite User Button -> Opens panel
On Cancel/Save -> Index page still shows Loading..
@vnbaaij Please let me know if you are able to access the git repo https://github.com/ajitanil/fluentui.git
This is not an issue in the library but in your code. You need to remove the Loading="true"
part. See https://www.fluentui-blazor.net/DataGrid#intermittentloading for an example on how to add a loading indicator intermittently
🐛 Bug Report
Issue: On PageLoad- Users are getting loaded. But after opening the popup - on Save/Cancel -> User Grid not loading users again.
💻 Repro or Code Sample
//Fluent Data Grid <FluentDataGrid Loading="true" ItemsProvider="usersProvider" Virtualize="true" ItemSize="46" GenerateHeader="GenerateHeaderOption.Sticky" GridTemplateColumns="1fr 1fr 1fr 1fr" TGridItem="OrganizationUsersOutputAPIModel">
//On Page Load - Load Users private async Task LoadUsers() { PageMetadata pagemetadata = new PageMetadata(); usersProvider = async req => {
}
//For opening the panel private async void OpenPanelRight() { userModel = new(); _dialog = await DialogService.ShowPanelAsync(userModel, new DialogParameters()
{
Content = userModel,
Alignment = HorizontalAlignment.Right,
Title = $"Invite User",
PrimaryAction = string.Empty,
SecondaryAction = string.Empty
}
//Handle Function private async void HandlePanel(DialogResult result) { await LoadUsers(); if (result.Cancelled) { Console.WriteLine($"Panel cancelled"); return; }
}
🤔 Expected Behavior
😯 Current Behavior
💁 Possible Solution
🔦 Context
🌍 Your Environment
OS: WINDOWS BROWSER: CHROME,EDGE FLUENT UI VERSION 4.6.1 .NET 8