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
2048
igHierarchicalGrid Parent vs Children
posted

Hi,

I've just started using igHierarchicalGrid...I have different problems, but some of them are all related to one thing: discriminate parent grid from child grid.
I can explain it better with a sample. I put igUpdating, with RowEditTemplate, on both grids, parent and child. How can I separate the 2 different things? If I intercept, from javascript code, the iggridupdatingroweditdialogcontentsrendered event, I am only able to define it in the following way:

    $("#parent_grid").live('iggridupdatingroweditdialogcontentsrendered', function (event, ui) {
    ...
    });

But I am not able to define, for example:

    $("#child_grid").live('iggridupdatingroweditdialogcontentsrendered', function (event, ui) {
    ...
    });

Or something like:

    $("#child_grid").live('ighierarchicalgridupdatingroweditdialogcontentsrendered', function (event, ui) {
    ...
    });

Even if I defined on the child grid the child_grid ID.

Of course this is not only related to RowEditTemplate. For example I have to manage also hiding feature. A stupid sample could be: "pressing a button I would like to show a hidden column of the child grid". I do it in the following way:

    function buttonClicked() {
        $("#child_grid").igGridHiding("showColumn", "Description");
    }

But nothing happened, even if console does not give me any kind of error...

So, my question is simple: how to determine if an event happened on the parent grid or on the child grid (first sample)? Or, same thing, how to specify function only for the child grid and not for the parent grid (second sample)?

Thanks

Flavio