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
435
Event not firing
posted

Hello Expert,

I have a HierarchicalGrid that created on demand(LoadOnDemand). The number of depth is unknown. I would like to attach the event 'ighierarchicalgridrowexpanding' to the grid. However, I only able to get the event to fire at the Top table, the children table doesn't fired any events.

Please help, I need this ASAP to complete the requirement.

Thank you

  • 15320
    Offline posted

    Hi Phong,

    Did you manage to resolve your issue? If I can provide you with further assistance, please let me know.

    Regards,

    Tsanna

  • 15320
    Offline posted

    Hello Phong,

    I tested similar behavior and the 'rowExpanding' event fires properly on my side for all grid levels. If you copied the event definition from our online API: http://help.infragistics.com/jQuery/2015.1/ui.ighierarchicalgrid#events:rowExpanding you should note that jQuery 'live' method for attaching an event handler is deprecated since jQuery v1.7. Instead you can use jQuery 'delegate' method, for instance:

     

    $(document).delegate("#grid1", "ighierarchicalgridrowexpanding", function (evt, ui) {

    });

    I'm attaching the sample that I used to test this event for your reference. Please take a look at it and if it does not demonstrate correctly your scenario feel free to modify it and send it back to me.

    If I can provide you with further assistance, please let me know.

    Regards,

    Tsanna

    hieararchicalGridLoadOnDemand.zip