Hi,
I have a dialog component targeted in my data grid. When I try to resize the dialog component, it shrinks down a lot and is not able to expand past a certain height.
I updated Syncfusion from 19.1.0.69 to 19.2.0.49 and received this problem.
Hi,
I found out the problem occurs when there is a GridForeignColumn in the Datagrid. When a GridForeignColumn exists, the dialog component targeted in the datagrid is not able to resize correctly in SF 19.2.0.49.
I have attached the modified sample project
|
<style>
#datagrid {
min-height: 500px;
} </style> |
|
<style>
#datagrid {
min-height: 500px;
} </style> |
Hi,
Sure the fixed min-height will allow the dialog to resize correctly. However, if I use the search bar to minimize the amount of records on the table, there is a gap of white space below the table.
Is there a way to make the table height responsive while allowing the dialog to resize correctly within the datagrid?
I have demonstrated the issue in the attached video with the modified sample project.
Thank you
Attachment: FixedSizedBug_183eb992.zip
|
<SfGrid DataSource="@Orders" AllowFiltering="true" AllowPaging="true" ID="datagrid" Toolbar="@(new List<Object>() { "Search" })">
<GridEvents DataBound="OnOpen" OnActionComplete="ActionCompletedHandler" TValue="Order"></GridEvents>
<GridFilterSettings Type="FilterType.CheckBox"></GridFilterSettings>
<GridColumns>
<GridColumn Field=@nameof(Order.OrderID) HeaderText="Order ID" TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridForeignColumn Field=@nameof(Order.EmployeeID) ForeignKeyField=@nameof(EmployeeData.EmployeeID) ForeignKeyValue=@nameof(EmployeeData.FirstName) ForeignDataSource="@Employees" HeaderText="ID" TextAlign="TextAlign.Center" Width="120"></GridForeignColumn>
<GridColumn Field=@nameof(Order.OrderDate) HeaderText="Order Date" Format="d" Type="ColumnType.Date" TextAlign="TextAlign.Right" Width="130"></GridColumn>
<GridColumn Field=@nameof(Order.Freight) HeaderText="Freight" Format="C2" TextAlign="TextAlign.Right" Width="120"></GridColumn>
</GridColumns>
</SfGrid> @if (isShow) {
<SfDialog @ref="dialogObj" Target="#datagrid" Width="900px" ShowCloseIcon="true" IsModal="true" CloseOnEscape="true" AllowDragging="true" EnableResize="true">
<DialogTemplates>
<Header> About SYNCFUSION succinctly series </Header>
<Content>
<p>
In the Succinctly series, Syncfusion created a robust, free library of more than 130 technical e - books formatted for PDF, Kindle, and EPUB.<br> <br>
The Succinctly series was born in 2012 out of a desire to provide concise technical e-books for software developers. Each title in the Succinctly series
is written by a carefully chosen expert and provides essential content in about 100 pages.
</p>
</Content>
</DialogTemplates>
</SfDialog>
} @code{
public async Task OnOpen()
{
this.isShow = true; } |