Reputation: 137
I've reviewed the excellent solutions to adding top horizontal scrollbars to a div and adding a top horizontal scrollbar to a jqgrid, but what about an extjs grid?
I saw a suggestion for an extjs version 4.1+ grid but it wasn't fleshed out in an example and the function referenced became available after 3.4 (which is the version I'm using).
Has anyone done this in extjs 3.x? If so, can you provide an example please or at least explain the methodology? Thank you.
Upvotes: 2
Views: 3013
Reputation: 1275
Can you upload a snippet of your code? Try wrapping the Ext.grid.EditorGridPanel with the panel below, then adjust its width to accommodate all columns nicely.
var gridPanel = new Ext.Panel({
width: '100%',
height: '100%',
renderTo: Ext.getBody(),
autoScroll: true });
See this answer for reference.
Upvotes: 3