-
15 Jan 2009 4:47 AM #31
Which means, its impossible to put charts and grids together in just one content panel? Except by just adding one widget after each other with the result of
But a chart in one line with the grid is not possible?Code:+-CP----+ | GRID | | Chart | | .... | +-------+
-
15 Jan 2009 4:48 AM #32
It means that you cant use a viewport there...
-
15 Jan 2009 5:13 AM #33
Michi_de, read a little of the docs first before posting...

I gave you the answer - use a ContentPanel with a RowLayout set to HORIZONTAL.
Viewport is for the intial panel added to an application that other containers are added to - this is in the docs, in the wiki and all the sample apps.GXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender
-
15 Jan 2009 6:01 AM #34
Oh, sorry... to keep the drawing simple i had only one horizontal line... my bad, sorry, i should have made my problem more clear.
Now, that i can put widgets one after each other in just one line. How can i go to the next line? So i can create a matrix?
Like this:
Is this possible?+--CP----------+
| GRID | CHART |
| GRID | CHART |
+--------------+
(i know there is a TableLayout and TableData, but they both only contain .setColspan() , but no .setRows() or sthg.. so i don't know how to use this kind of layout...)
-
15 Jan 2009 1:02 PM #35
Read the docs, wiki and all the sample apps. Pls post further questions in the help forum and don't just keep reposting on an unrelated thread.
GXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender
-
19 Jan 2009 5:17 AM #36
Something OFCGXT specific:
There are some things which looks a little bit 'buggy' imo.
Both widgets are using the same store.Code:buGrid = new Grid<Statistic>(statisticStore, buColumnmodel); buChart = new GxtChartWidget<Statistic>(); buChart.setStore(statisticStore);
Now i add some new model into the database, then reload the store to get the latest data from database.
The grids data gets refreshed. The Charts data gets outdated.
Is this a bug? Or i need to reload the chart somehow? (haven't found anything in the api)
And another question: is there an API for the ofcgxt classes?
And one more 'bug':
The
buChartProvider.getPieChart().setAnimate(false);
does not set the animation of the piechart disabled. Why? Did i missunderstood the meaning of this method?
-
19 Jan 2009 11:51 AM #37
There is nothing wrong with that - if you want both Grid and Chart to display the same data than this is how you would do that.
Could be - I haven't actually tried that scenario so possibly a bug exists. I'll test this and see what I can find...
I've not generated Javadocs from the source, so other than using Eclipse's auto comments, there is no seperate API. Though, the source is documented (see http://code.google.com/p/ext-ux-ofcg...tProvider.java)
It does, just unfortunately not the animation you wanted - if you set it to true, it will spiral from the 1st slice outwards. False turns this off.GXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender
-
19 Jan 2009 2:03 PM #38
No bug - works as expected. I've updated the on-line demo to showcase this (adding a row updates both grid and chart) and the Demo.java in the test package shows how I did this.
See http://code.google.com/p/ext-ux-ofcgxt/
If its not working for you, please post a new thread in the help forum and I'll help you with this.
Cheers,
GrantGXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender
-
19 Jan 2009 11:53 PM #39
Sorry, but in the link i can't find the source code you mean. Anyway i guess you tried to just add data into the store, right?
My approach was to reload the loader. This uses an RPC Proxy to load data from my servlet.
Could the error be resulting from this?
Sorry, but i don't know why i should open up a new thread for this ...
If you want, just delete this post.
But as this is 100% ofcgxt related only, i posted it just here...
-
20 Jan 2009 12:03 AM #40
How hard did you look?
Line 168 of http://code.google.com/p/ext-ux-ofcg...ient/Demo.java
Reload the loader? So you mean you added a new item to the server data list and then called loader.load - is that right?
Come to think of it, I don't think I listen for load reload events, so yes that is probably why. I'll look into this and let you know (pls post a new thread re below)
I just don't want heaps of posts added to the bottom of this thread for help/support. Its already at 30+ and if everybody posted help questions on the end, it will quickly get out of control.
Perhaps think about posting to the discussion group on Google associated with this project.... http://groups.google.com/group/ofcgwt
...or the issues list if its a bugGXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender


Reply With Quote