<div style="width: 100%; height: 100%> <EjsGrid id="Grid" Width="100%" Height="100%"> <GridColumns> <GridColumn HeaderText="Order ID" TextAlign="TextAlign.Right" Width="120"></GridColumn> <GridColumn HeaderText="Customer Name" Width="150"></GridColumn> <GridColumn HeaderText="Order Date" Format="yMd" Type="date" Width="130"></GridColumn> <GridColumn HeaderText="Freight" Format="C2" Width="120"></GridColumn> <GridColumn HeaderText="Ship Country" Width="150"></GridColumn> </GridColumns> </EjsGrid> </div> |
The behavior changes came that now the generated DOM is :
<div class>
<div id="Grid" class="e-control e-grid ....
The "<div class" is new in the rendering and breaks the meaning of size for grid, I see the same issue for EjsTabItems.
Regards,
Brice
...
@{
Syncfusion.EJ2.Blazor.EjsBase.EnablePlaceholder(false); //set EnablePlaceholder to property as false to avoid this problem in entire application.
}
<div style="width: 100%; height: 100%">
<EjsGrid DataSource="@gridData" Width="100%" Height="100%" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })">
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="@EditMode.Normal"></GridEditSettings>
<GridColumns>
...
</EjsGrid>
</div>
@functions{
public List<OrdersDetails>
gridData { get; set; }
protected override void OnInit()
{
gridData = OrdersDetails.GetAllRecords();
}
}
|