PDA

View Full Version : GridPanel problem



joske87
13 Nov 2009, 3:04 AM
http://www.extjs.com/forum/images/icons/icon5.gif GridPanel problem
I have a problem with GridPanel.

When I create a GridPanel within the Panel, i getting a two Panels and GridPanels.
I don't know what the prblem.
Please help!!!
Sory for bad English.

13 Nov 2009, 3:38 AM
Please refrain from posting in triplicate about your problem!

VinylFox
13 Nov 2009, 7:22 AM
...I don't know what the prblem...

And we don't know the answer, unless you take the time to explain your problem properly.

Read this: http://www.extjs.com/learn/Ext_Forum_Help

joske87
13 Nov 2009, 8:29 AM
And we don't know the answer, unless you take the time to explain your problem properly.

Read this: http://www.extjs.com/learn/Ext_Forum_Help

this is part of the code of my application:

var gridV = new Ext.grid.GridPanel({
columns: [{header: 'doc'},
{header: 'Title'},
{ header: 'Rating'},
{header: 'Date'}]
});

var viewP = new Ext.Panel({
id: 'grid-panel',
renderTo:Ext.getBody(),
width: 525,
height: 300,
title:'Documents',
items:[gridV]
});

In the atachment is a picture of the results. Result is two Panels and within them one gridPanel. If you put a GridPanel inside any of the components, these components are duplicated.

Thanks!!!

VinylFox
13 Nov 2009, 8:51 AM
Your double panel problem is happening elsewhere in your code.

If your calling viewP.render() at some point, or gridV.render() get rid of those lines.

joske87
16 Nov 2009, 4:50 AM
Tnx my friend, but i have not solved the problem :( :((. Problem is maybe in the "lib" folder.
I removed all code from the project, except a standard "lib,share,images and src" folders and part of the code for GridPanel and Panel that you see. I also removed the "script" from HTML that don't need for Grid. Now, I have one ".js" file, one HTML file and standards folders. The problem is the same.

VinylFox
16 Nov 2009, 2:06 PM
Post the html page and the js file that you created and well take another look.