Hi Michael,
Greeting from Syncfusion.
Query: What would be the best way to expand the grid to see the messages should they appear?
By default, we have applied height as auto for the Grid so that it display vertical scrollbar while perform adding and editing with single data in Grid. If you don’t want scrollbar then we suggest you to use the below way to achieve your requirement.
In the below code example, we have checked grid dataSource and based on that we applied height for the Grid. Please refer the below code example for more information.
<div id="ControlRegion">
<ejs-grid id="Grid" dataBound="dataBound" toolbar="@(new List<string>() { "Add","Edit", "Update", "Cancel" })" allowPaging="true">
<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Normal"></e-grid-editSettings>
<e-grid-pagesettings pageCount="5"></e-grid-pagesettings>
<e-grid-columns>
<e-grid-column field="OrderID" headerText="Order ID" isPrimaryKey="true" validationRules="@(new { required=true})" textAlign="Right" width="120"></e-grid-column>
<e-grid-column field="CustomerID" headerText="Customer Name" validationRules="@(new { required=true})"></e-grid-column>
. . . .
</e-grid-columns>
</ejs-grid>
</div>
<script>
function dataBound() {
this.height = (this.dataSource.length <= 1) ? "80px" : "auto";
}
</script> |
Regards,
Madhu Sudhanan P