jQWidgets Forums

jQuery UI Widgets Forums Grid Update status bar data

This topic contains 3 replies, has 3 voices, and was last updated by  ivailo 9 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Update status bar data #73335

    PCadilhe
    Participant

    I have a grid with a customized status bar with data calculated from grid data fields. Everything works fine on the grids first load, but when I change the grid source, the grid show the new data but the status bar data doesn’t update accordingly.
    What I should do to correct this issue?

    Update status bar data #73346

    ivailo
    Participant

    Hi PCadilhe,

    Look at the jsEditor. In this demo the refreshing is OK.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Update status bar data #79201

    cbolaurent
    Participant

    Sorry, but I have the same question : how to update the statusbar, for example to reflect the number of lines in the grid when user is applying a filter.
    The initial state displays fine.
    But the status bar is not refreshed when the filter changes.
    The demo is not solving this, or I miss something ?

    Thanks in advance.

    Update status bar data #79269

    ivailo
    Participant

    Hi cbolaurent,

    You can try the same javascript grid demo with filterable:true.
    The result in statusbar is produced from this function:

    function (aggregatedValue, currentValue, column, record) {
                                    var total = currentValue * parseInt(record['quantity']);
                                    return aggregatedValue + total;
                                }

    So it works correct.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.