Hi Greg Clouston,
Thanks for evaluating Syncfusion Products. The response for this query has been updated in the incident 73089 also.
We have categorized the size attributes under scrolling and therefore to specify the basic size attributes in View, please refer to the below mentioned code snippet.
<%=Html.Grid
("Grid1")
.Datasource(Model)
. . . . . . . .
. . . . . . . .
//Setting the size attributes of grid and width
.Scrolling(size =>
{
size
.Height(210)
.Width(1200);
})
.EnablePaging()
.EnableSorting()
.AutoFormat(Skins.Sandune)
%>
We will provide explicit support for specifying the size attributes in Grid builder in our volume1 2011 release.
For more details about setting the size attributes through builder, please refer our online documentation in the below link.
http://help.syncfusion.com/ug_83/User%20Interface/ASP.NET%20MVC/Grid/default.htm?turl=Documents%2Fthroughgridbuilder15.htm
To Control the size attributes from the controller, you can directly set the width and height of GridPropertiesModel as below.
GridPropertiesModel model = new GridPropertiesModel
{
DataSource = new NorthwindDataContext().Orders.Take(100).ToList(),
AutoFormat = Syncfusion.Mvc.Shared.Skins.Sandune
};
//Setting height and width of grid. This will apply only if you set AllowScrolling to true.
model.Height = 210;
model.Width = 1200;
model.AllowScrolling = true;
For more details about setting the size attributes through controller, please refer our online documentation in the below link.
http://help.syncfusion.com/ug_83/User%20Interface/ASP.NET%20MVC/Grid/default.htm?turl=Documents%2Fthroughgridpropertiesmodel15.htm
Please let us know if you have any queries.
Regards,
Krishnaraj D