Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
305
dataSourceInitialized event in pivotview
posted

Hello,

how can I attach an event to a pivotgrid inside a pivotview?

i'd like to expand the tuples, but the pivotview does not expose the event as the pivot grid does, and I can't seem to get the event to fire correctly.

thanks...

Parents
No Data
Reply
  • 775
    posted

    Hello Rob,

        The easiest way to do this, is to find the igPivotGrid widget in the igPivotView and use the jQuery's "bind" function. Here is an example:

                $("#pivotview").find('.ui-igpivotgrid').bind("igpivotgriddatasourceinitialized", function (evt, ui) {
                    // Callback function code...
                });

        That way you can bind to each event of the igPivotGrid. The same goes for the igPivotDataSelector - you just need to find the DOM element which contains the widget and use the "bind" function the same way. Hope this helps.

    Thanks,

    Martin Stoev

Children