If I create the window dialog from the selection method in the grit it doesn't work if I change the window size. However, if I use it from a button the size works perfectly. Please, could you tell me if I am doing something wrong but I do not believe this because it was generated by your code generator.
This code dosn't work
protected async System.Threading.Tasks.Task Grid0RowSelect(Agrosystem.Models.Localhost.Device args)
{
DialogService.Open($"Order 1",
new Dictionary<string, object>() { { "OrderID", 1 } },
new DialogOptions() { Width = "700px", Height = "530px", Left = "calc(50% - 350px)", Top = "calc(50% - 265px)" });
await InvokeAsync(() => { StateHasChanged(); });
}
This code work
<RadzenButton Text=@($"Show OrderID: 1 details") Click="@(args => dialogService.Open($"Order 1",
new Dictionary<string, object>() { { "OrderID", 1} },
new DialogOptions(){ Width = "800px", Height = "530px", Left = "calc(50% - 350px)", Top = "calc(50% - 265px)" }))" />
@Owais_Raza Don't write your custom code within the Radzen generated code.
If adding custom code to a Pages, you write the code on the *.razor.cs page not the *.razor.designer.cs page Radzen doesn't touch the *.razor.cs page
If adding custom code to a model or controller, you create a custom page so for something like ApplicationUser you would create an Application.Custom.cs class and setup a partial class to add your own partial code
Unfortunately I cannot reproduce this problem in my tests. If you have a Radzen Professional or Enterprise subscription you can send us your project to info@radzen.com and we will troubleshoot it further.