-
14 Nov 2012 6:33 AM #1
Unanswered: set emptyrow true
Unanswered: set emptyrow true
My asked
the grid has a height of 300 pixels
my data from the db fill only half of the grid.
Now I want the rest of the amount is made up of the grid
with empty lines like that?
-
16 Nov 2012 9:53 AM #2
-
17 Nov 2012 6:02 AM #3Sencha - Sales Team
- Join Date
- Mar 2007
- Location
- Melbourne, Australia (aka GMT+10)
- Posts
- 738
- Vote Rating
- 6
- Answers
- 10
set layout to 'fit' for the parent container of the grid view.
Check out SenchaWorld.com for articles, screencasts, conference videos and more.
Sencha Technical Training : Asia Pacific Region
Code Validation : JSLint | JSONLint | JSONPLint
-
23 Nov 2012 3:24 AM #4
-
23 Nov 2012 3:59 AM #5
for the container of the grid, use the following:
and then use flex:1 config for the grid. this will stretch the grid to the remaining space in the container panel.Code:layout: { type: 'vbox', align: 'stretch' // allows stretching the grid (with flex:1) to occupy the whole height of this container }
-
23 Nov 2012 5:28 AM #6
hi Farish,
thanks for you answer.
my problem is i have two controls of one container.
better is I use two container in the window?
sorry for my english....
-
23 Nov 2012 5:30 AM #7
Can you post your code or create an example on jsfiddle.net?
-
23 Nov 2012 5:32 AM #8
yes i post code..... one moment
-
23 Nov 2012 5:44 AM #9
so farish,
i hope your can my code read..
-
23 Nov 2012 6:01 AM #10
do you want to place the grid below the panel containing the textfields or to the right side?


Reply With Quote



