[Users] GeoExt popup

zeferino saugene zeferino.saugene at gmail.com
Sat Nov 28 20:42:16 CET 2009


Hi Andreas,

I think i was not happy on my explanation.
I only need to have a chart in a popup window. I sent the code with
HTML part just to explain that when i leave the code with HTML it
works BUT when i replace that with chat panel it does not work (it
does not show the popup window).
I am still trying the different option in order to make it work.

Regards,
Zeferino

On Sat, Nov 28, 2009 at 3:42 PM, Andreas Hocevar <ahocevar at opengeo.org> wrote:
> Hi,
>
> now I see what your problem is:
>
> you cannot have both html and items in a panel. If you want that, you need
> to wrap the html in a separate panel:
>
> popup = new GeoExt.Popup({
>                       title: 'My Popup',
>                       feature: feature,
>                        width: 200,
>                       height: 200,
>                           items:[{
>                                xtype: 'columnchart',
>                                store: getStore(),
>                                yField: 'hits',
>                                xField: 'month',
>                                xAxis: new Ext.chart.CategoryAxis({
>                                        title: 'Month'
>                                }),
>                                yAxis: new Ext.chart.NumericAxis({
>                                        title: 'Hits'
>                                }),
>                                extraStyle: {
>                                   xAxis: {
>                                                labelRotation: -90
>                                        }
>                                }
>                            }, {html: getInfo()}],
>                        layout: 'fit',
>           collapsible: true
>       });
>
>
> Regards,
> Andreas.
>
> zeferino saugene wrote:
>>
>> Thank you for the support.
>>
>> --
>> Zeferino
>>
>>
>> On Fri, Nov 27, 2009 at 8:57 AM, Andreas Hocevar <ahocevar at opengeo.org>
>> wrote:
>>
>>>
>>> Eric Lemoine wrote:
>>>
>>>>
>>>> On Thursday, November 26, 2009, Andreas Hocevar
>>>> <andreas.hocevar at gmail.com> wrote:
>>>>
>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I am not familiar with Ext charting, but items is an array.
>>>>>
>>>>>
>>>>
>>>> IIRC it is possible to give "items" a single item.
>>>>
>>>>
>>>
>>> So it looks like the OP's problem is how to configure the chart.
>>>
>>> zeferino, Can you verify that the chart works in a different container
>>> and
>>> then try again to add it as an item? In terms of items, the Popup is
>>> nothing
>>> different than a Panel or a Window in Ext JS.
>>>
>>> Regards,
>>> Andreas.
>>>
>>>
>>>>
>>>> cheers,
>>>>
>>>>
>>>>
>>>
>>> --
>>> Andreas Hocevar
>>> OpenGeo - http://opengeo.org/
>>> Expert service straight from the developers.
>>>
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>>
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>


More information about the Users mailing list