Hi,
I have a standard page that I open with the dialog service.
await DialogService.OpenAsync($"Caption text",
new Dictionary<string, object> { { "Tid", Model.Tid() } },
new DialogOptions() { Width = "850px", Resizable = true, Draggable = true });
await ProductsGrid.Reload();
Inside the OnInitializedAsync() method in dialogpage I load the data
protected override async Task OnInitializedAsync()
{
Snippet
var result = await Client.GetFromJsonAsync($"api/Product/GetByTid/{Tid}");
if(result.Success)
{
Model = result.Item;
StateHasChanged();
}
However, after correct loading, the data is not shown in the UI elements of the dialog. What am I doing wrong?
Thanks