-
20 May 2010 10:19 PM #1
problem with grid rendering and scrollbar
problem with grid rendering and scrollbar
got a problem with grid.
When I add tbar and bbar to grid, then vertical scrollbar is going below the page. It is because viewport is not recalculated after I add tbar and bbar, so viewport of the grid is well below the bbar.
How to adjust the grid viewport even after I add tbar and bbar?
Thanks in advance for helping.
-
21 May 2010 6:20 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 29
So you're adding tbar and bbar after the component is rendered?! why?
What type of layout are you using for the grid's parent container?
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
23 May 2010 9:57 PM #3
Hello Jesus,
Thanks for replying..
I am using this code to generate that grid.
Code:var grid = new Ext.grid.GridPanel({ store: ds, layout:'anchor', loadMask: lm, height: 435, sm: new Ext.grid.RowSelectionModel({ singleSelect: false }), plugins: [editor ], cm: new Ext.grid.DynamicColumnModel(ds), viewConfig: { forceFit: true }, sortInfo:false, sortable:false, frame: true, columnLines: true, stripeRows: true, title: 'Release Dashboard', collapsible: true, tbar: [{ text: 'Add', iconCls: 'icon-user-add', handler: onAdd, hidden: eval(tbarAdd) }, {xtype: 'tbfill'}, { text: 'CSR Reports', iconCls: 'icon-user-add', handler: csrReport }], bbar: new Ext.PagingToolbar({ pageSize: 50, store: ds, displayInfo: true, displayMsg: 'Displaying Release {0} - {1} of {2}', emptyMsg: 'No Releases to display' }) });
What changes should I make to effect the changes.
Similar Threads
-
Scrollbar problem in grid
By Nithya in forum Ext 3.x: Help & DiscussionReplies: 10Last Post: 4 Dec 2009, 4:21 AM -
Problem rendering scrollbar in treepanel
By Nithya in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 24 Nov 2009, 10:41 PM -
Problem with Grid and Scrollbar
By jippeh in forum Ext GWT: Help & Discussion (1.x)Replies: 1Last Post: 15 Dec 2008, 5:20 AM -
Scrollbar problem with Grid in LayoutDialog
By para in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 8 Oct 2007, 1:01 PM


Reply With Quote