SitePen / dgrid

A lightweight, mobile-ready, data-driven, modular grid widget designed for use with dstore
http://dgrid.io/
Other
628 stars 295 forks source link

Is there a way to prevent the column header from getting wider than the parent container? #1287

Closed kvenkataMathworks closed 8 years ago

kvenkataMathworks commented 8 years ago

In dgrid laboratory, I can resize the column to go longer than the parent which results in a horizontal scroll bar. Is there a way to disable this from happening i.e. disallowing the table to exceed it's parent width and hence not showing a horizontal scroll bar? For e.g. div.dgrid-header-row has width 100px But th.dgrid-column-First_Name can have width 120px which results in a horizontal scroll bar because the total width of the table is longer than the parent div.

Is there a way to limit the total header width to a maximum value?

msssk commented 8 years ago

There is no built-in support for this behavior, but the dgrid-columnresize event is cancelable.

Please keep support-related questions in the appropriate channels: