Hi,
I would like to ask this question also, perhaps your answer will be different in 2024!
Is is possible to position the grid's editing dialog somewhere else on the page, not just centred?
Top right for example.
Thanks
Paul
Hi Paul,
Greetings from Syncfusion.
We would like to inform that we can change the position of the rendered dialog by modifying the XValue, YValue property from DialogSettings. Kindly check the below attached code snippet and sample reference for additional information.
By using the below suggestion, you can modify the dialog position as per your requirement.
<div style="position:relative; min-height: 500px;"> <SfGrid DataSource="@Orders" AllowSorting="true" AllowFiltering="true" EnableAdaptiveUI="true" AdaptiveUIMode="AdaptiveMode.Mobile" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update", "Search" })" Height="100%" Width="100%" AllowPaging="true"> <GridFilterSettings Type="@FilterType.Excel"></GridFilterSettings> <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Dialog" Dialog="@dialogParams" ></GridEditSettings> ... </SfGrid> </div>
@code { public List<Order> Orders { get; set; } public DialogSettings dialogParams = new DialogSettings { Width = "500px",ShowCloseIcon = true, XValue="right", YValue="top" };
|
Please let us know if you have further queries.
Regards,
Sarvesh