1. #31
    Ext User
    Join Date
    Oct 2008
    Posts
    91
    Vote Rating
    0
    Michi_de is on a distinguished road

      0  

    Default


    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

    Code:
    +-CP----+
    | GRID   |
    | Chart  |
    | ....   |
    +-------+
    But a chart in one line with the grid is not possible?

  2. #32
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    It means that you cant use a viewport there...

  3. #33
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by Michi_de View Post
    But a chart in one line with the grid is not possible?
    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.

  4. #34
    Ext User
    Join Date
    Oct 2008
    Posts
    91
    Vote Rating
    0
    Michi_de is on a distinguished road

      0  

    Default


    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:

    +--CP----------+
    | GRID | CHART |
    | GRID | CHART |
    +--------------+
    Is this possible?

    (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...)

  5. #35
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    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.

  6. #36
    Ext User
    Join Date
    Oct 2008
    Posts
    91
    Vote Rating
    0
    Michi_de is on a distinguished road

      0  

    Default


    Something OFCGXT specific:
    There are some things which looks a little bit 'buggy' imo.

    Code:
    buGrid = new Grid<Statistic>(statisticStore, buColumnmodel);   
    
    buChart = new GxtChartWidget<Statistic>();
            buChart.setStore(statisticStore);
    Both widgets are using the same store.
    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?

  7. #37
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by Michi_de View Post
    Something OFCGXT specific:
    There are some things which looks a little bit 'buggy' imo.

    Code:
    buGrid = new Grid<Statistic>(statisticStore, buColumnmodel);   
    
    buChart = new GxtChartWidget<Statistic>();
            buChart.setStore(statisticStore);
    Both widgets are using the same store.
    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.
    Quote Originally Posted by Michi_de View Post
    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)
    Could be - I haven't actually tried that scenario so possibly a bug exists. I'll test this and see what I can find...
    Quote Originally Posted by Michi_de View Post
    And another question: is there an API for the ofcgxt classes?
    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)

    Quote Originally Posted by Michi_de View Post
    And one more 'bug':
    The buChartProvider.getPieChart().setAnimate(false);
    does not set the animation of the piechart disabled.
    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.

  8. #38
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by gslender View Post
    Could be - I haven't actually tried that scenario so possibly a bug exists. I'll test this and see what I can find...
    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,
    Grant

  9. #39
    Ext User
    Join Date
    Oct 2008
    Posts
    91
    Vote Rating
    0
    Michi_de is on a distinguished road

      0  

    Default


    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...

  10. #40
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by Michi_de View Post
    Sorry, but in the link i can't find the source code you mean.
    How hard did you look?

    Line 168 of http://code.google.com/p/ext-ux-ofcg...ient/Demo.java

    Quote Originally Posted by Michi_de View Post
    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?
    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)

    Quote Originally Posted by Michi_de View Post
    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...
    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 bug

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi