BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
columns: [
{ field: "OrderID", headerText: "Order ID", isPrimaryKey: true, width: 75, textAlign: ej.TextAlign.Right },
{ headerText: "Display time", template: true, templateID: "#template", width: 80 },
{ headerText: "Display year", template: true, templateID: "#template1", width: 80 },
{ headerText: "Display date", template: true, templateID: "#template2", width: 80 },
{ field: "Freight", width: 75, format: "{0:N2}", textAlign: ej.TextAlign.Right },
{ field: "OrderDate", headerText: "Order Date", width: 80, format: "{0:MM/dd/yyyy}", textAlign: ej.TextAlign.Right },
{ field: "ShipCity", headerText: "Ship City", width: 110 }
]
Hi Irvin,
Thanks for using Syncfusion products.
Essential JS Grid uses fixed table layout to render the grid content and hence the columns are adjusted to occupy the grid content. We would like to let you know that this is the default behavior. And from the attached sample and the query, we understood that you want to occupy only the place need for grid in the container based on column width property in such cases we can control the width of the grid using the width property of the grid.
$("#Grid").ejGrid({ . . . . . . width: 500 }); |
Now the column`s width will be adjusted to fill the grid content within 500px.
Please let us know if you have any queries.
Regards,
Madhu Sudhanan. P
Hi Irvin,
Thanks for the information. We considered this requirement “Render grid based on columns width instead of auto filling offsetParent“ as feature and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Madhu Sudhanan. P