jQuery UI Widgets Forums Navigation Expander jqx chart refresh not working in expander

Tagged: , ,

This topic contains 2 replies, has 2 voices, and was last updated by  atomic 6 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • atomic
    Participant

    Hello,

    I have 2 jqx charts and 2 jqx grid on same page. Data are same but I have 2 dataAdapters because they show different views, one set of chart and grid shows one view and the other set shows transposed grid and chart (rows are columns). Grids are editable. After I edit grid, on cellendedit function, on success I do something like this:

    dataAdapter1.dataBind();
    dataAdapter2.dataBind();
    $(‘#jqxChart1’).jqxChart(‘refresh’);
    $(‘#jqxChart2’).jqxChart(‘refresh’);

    to refresh my grids and chart. Everything works fine!

    Then I put 2 jqx extenders on page, each contains one grid and one chart. If the extenders are both opened everything is still OK, but if I close one extender and if I make edit in grid of the opened extender it updates value of grid, refreshes chart in opened exteneder, BUT when I open the closed extender grid is updated and the chart is not. So if the extender is closed the chart is not updated (plotted) with new value.

    Any ideas?

    Thank you

    Best regards


    Peter Stoev
    Keymaster

    Hi atomic,

    It is not possible to re-render a hidden object. Make sure that it is visible when you – re-render it by calling “refresh”.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    atomic
    Participant

    Thanks Peter!
    Now it works. I just make expander visible and than refresh.
    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.