1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    8
    Vote Rating
    0
    giggle16 is on a distinguished road

      0  

    Default Unanswered: problem of displaying chart

    Unanswered: problem of displaying chart


    i made a chart in ContentPanel following with showcase and added it on TabPanel.
    but when it click the treenode to active the tab in centerPanel, the chart did not display. However,when it click the eastPanel collapsed button,collapsed the eastPanel,the chart display. like the pic:
    1.chart did not display when i click the treenode
    1.jpg
    2.collapsed eastPanel,chart displayed

    2.jpg

  2. #2
    Sencha User
    Join Date
    Nov 2012
    Posts
    8
    Vote Rating
    0
    giggle16 is on a distinguished road

      0  

    Default


    i found the same problem in ext
    http://www.sencha.com/forum/showthre...el-dynamically

    and how to fix in gxt? thanks!

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Ext JS and Sencha GXT are totally different libraries, with completely different code. While we sometimes borrow good ideas back and forth, the code isn't usually similar enough to directly compare.

    Can you offer some more information about your problem, like a runnable EntryPoint or some screenshots that describe the whole issue (and aren't quite as cropped)? Can you reproduce this issue using any of the samples at sencha.com/examples or by modifying any of them slightly? The code for each is available when you view the example as a standalone entrypoint.

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    8
    Vote Rating
    0
    giggle16 is on a distinguished road

      0  

    Default


    thanks for reply!
    just like the showcase bluechart code which return a panel, i click the treenode to active this to display in tabPanel .like the code :

    Code:
    SimpleSafeHtmlCell<String> cell = new SimpleSafeHtmlCell<String>(
        SimpleSafeHtmlRenderer.getInstance(), "click") {
        @Override
        public void onBrowserEvent(Context context, Element parent,
        final String value, NativeEvent event,
        ValueUpdater<String> valueUpdater) {
        super.onBrowserEvent(context, parent, value, event,valueUpdater);
            final TabItemConfig config = new TabItemConfig(value);
        config.setIcon(Resources.IMAGES.table());
        config.setClosable(true);
                 if (value.equals("XX")) {
                     ClientBlueChart clientBlueChart = new ClientBlueChart();
             clientBlueChart.asWidget().setVisible(true);
             panel.add(clientBlueChart.asWidget(), config);
             panel.setAnimScroll(true);
             panel.setTabScroll(true);
             panel.setCloseContextMenu(true);
             panel.isRendered();                    
            }
    
    tree.setCell(cell);
    PS:panel is the tabPanel.ClientBlueChart is the showcase bluechart which return a panel.

  5. #5
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    I'm a little confused - how is that code supposed to be used with http://www.sencha.com/examples/#ExamplePlace:bluechart ? Can you take the entrypoint there, modify it, and share it here so that we can be sure we're all working from the same sample code?

Thread Participants: 1

Tags for this Thread