PDA

View Full Version : Best practice for Grid inside TabPanel



corey.gilmore
4 Dec 2006, 5:19 PM
What's the recommended method for putting a Grid inside of a TabPanel? I read in one post that the issue with tabs having a style of display:none would be changed so that you could have fixed width/height grids, but that doesn't seem to be the case.

Should I be using a Layout or GridPanel/ContentPanel inside of the TabPanel?

tryanDLS
4 Dec 2006, 5:30 PM
It depends what you want to do:

If you want a fixed sized grid that doesn't fill the entire panel, you can use a grid in a TabPanel. You can fix the width/height and put other stuff in the panel.

If you want a grid to fill a panel and resize as the panel resizes, use a GridPanel.

corey.gilmore
5 Dec 2006, 9:01 AM
Ah, I found the problem. Jack did fix the issue with grids overflow not being scrollable, but I still had

.tab-content{display:none;} in my style sheet. I removed that and everything works perfectly!

AngelCid
2 Feb 2010, 9:46 AM
Hello, I still cant find any solution to display a grid from markup inside a tab panel when page loads, i Can make it with the example code (by clicking a button), does anyone has found how to make this happen?

Thanks