|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Hi,
We have Grid with paging tool bar in the footer. Height of the grid changes based on the pageSize(i.e 20 in our case). Without decreasing the pageSize, Is there a way to set the height of the grid, so that user can use a scroll bar to view the complete results. Looking for any attribute or any option available on grid to set height? Sample Code: this.gridPagingToolbar = new Ext.PagingToolbar({ pageSize: 20, store: this.store, displayInfo: true, displayMsg: 'Displaying {0} - {1} of {2}', emptyMsg: "No search to display" }); AOMA.SearchAllGrid.superclass.constructor.call(this, { style: 'padding:0px 0px 5px 0px;', autoHeight: true, loadMask: { msg: 'Loading search data...' }, sm: new Ext.grid.RowSelectionModel({ singleSelect: true }), viewConfig: { forceFit: true, emptyText: 'No search data found matching with the criteria.' }, bbar: this.gridPagingToolbar, }); Please suggest! Thanks, Brajesh |
|
#2
|
||||
|
||||
|
You should remove autoHeight:true and give the grid a fixed width and height.
You can do this by either: 1. Specifying a width and height. 2. Adding the grid to a container with a layout that manages the width and height. 3. Rendering to an element with a set height and using the FitToParent plugin.
__________________
Condor
|
![]() |
| Thread Tools | |
|
|