Hi Kenneth,
Thanks for using Syncfusion products.
Your requirement of setting column width to specific column
and resizing the grid according to window can be achieved by setting column
width for specific columns and setting the EnableScroll. Please refer to the
code snippet below to achieve this.
[ASPX]
@{Html.Syncfusion().Grid<Order>("SampleGrid")
.Datasource(Model)
.Caption("Orders")
.Column(col =>
{
col.Add(c => c.OrderID).Width(50);
col.Add(c => c.EmployeeID).Width(50);
col.Add(c => c.CustomerID).Width(80);
col.Add(c => c.OrderDate).Width(100);
col.Add(c => c.ShipCountry).CellEditType(CellEditType.DropdownEdit).Width(60);
col.Add(c => c.Freight).Width(50);
})
.EnableScrolling()
.EnablePaging()
Please let us know if you have any concern.
Regards,