jQWidgets Forums

jQuery UI Widgets Forums Grid Event that fires after Grid Re-render

This topic contains 4 replies, has 2 voices, and was last updated by  cwiese@gmail.com 11 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Event that fires after Grid Re-render #27719

    I am adding a Button the the columngroup header on the “initialized” event. However, the table gets re-rendered after the data is re-loaded.

    What event should I use to ensure I add this every time the ColumnGroupHeader is re-renderered (I tried “bindingcomplete”) no luck.

    Chuck

    $(‘#datatable-th-summary’).bind(‘initialized’, function () {
    $(‘#datatable-th-summary’).find(“.jqx-grid-columngroup-header div”).eq(0)
    .prepend(

    ‘ +
    ” +
    ‘ +

    ‘)
    .find(‘button’).on(‘click’, function (event) {
    //var checked = event.args.checked;
    if (debugging) console.log(“>> CLICK HEADER!!!!!!!”,event.target);
    event.preventDefault();
    event.stopImmediatePropagation();
    var org = {};
    org.orgName = $(event.target).closest(“button”).attr(“data-name”);
    org.orgLevelInd = $(event.target).closest(“button”).attr(“data-level”);
    $.publish(“org.select”, org);
    })
    .parent()
    .find(“span”)
    .css(“display”,”inline-block”);

    }
    );

    Event that fires after Grid Re-render #27720

    Peter Stoev
    Keymaster

    Hi cwiese,

    We do not support custom content in the Column Groups. Such content will be removed when the Grid is re-rendered, because the column groups will be re-rendered, too.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Event that fires after Grid Re-render #27725

    Okay ….but can you at least tell me an event that is fired AFTER the Grid is re-rendered?

    Event that fires after Grid Re-render #27726

    Peter Stoev
    Keymaster

    Hi cwiese,

    jqxGrid has a callback function called rendered. It is called when the Grid is rendered or re-rendered.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Event that fires after Grid Re-render #27780

    This worked perfect thanks….I do hope you add renderer/ed to the columngroup header (or release a treegrid with pivot and drill on columns 🙂 …Thanks!

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

You must be logged in to reply to this topic.