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
270
Check Parent Node's Children Node's within LoadOnDemand Scenario
posted

I have a need to check a parent node's children within a LoadOnDemand scenario. This appeared to be an easy task but I seem
to be running into some issues.

The following post (http://news.infragistics.com/forums/p/4521/21796.aspx#21796) suggested to use the JavaScript from the
the following thread (http://forums.infragistics.com/forums/t/2861.aspx). However, this results in an infinite loop as the NodeChecked event fires over and over again. Futhermore, the code appears to be buggy as the collection and not the iterator
item is referencing the setChecked method:

        for (n in childNodes)
        {
            childNodes.setChecked(bChecked);
        }

I wouldn't mind doing this server-side but the node sent as a parameter to the DemandLoad event is null except for the DataPath property. Therefore, setting the node's Checked property based on the node's Parent doesn't appear to be an option. Also, this should be modified to provide the entire node's data similiar to how it works within the 1st couple of levels. I see no benefit to why this would not be included.