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
140
Webdatatree CheckBoxSelectionChanged
posted

Hi,

CheckBoxSelectionChanged event can only track the node that has been checked, but it could not track the node that has been unchecked. Is there any way to get the node on when it is uncheck on the CheckBoxSelectionChanged event ?

 

 

  • 12679
    Suggested Answer
    posted

    Hello Astrata,

    I’ve made a small test with WebDataTree. I tested the CheckBoxSelectionChanged event and it’s get fired every time when I check either uncheck checkbox.

    The code that I’m using is :

    <ig:WebDataTree ID="WebDataTree1" runat="server" Height="300px" Width="200px" 
            onselectionchanged="WebDataTree1_SelectionChanged" CheckBoxMode="BiState" 
            oncheckboxselectionchanged="WebDataTree1_CheckBoxSelectionChanged"
            AutoPostBackFlags-CheckBoxSelectionChanged="On">
                <Nodes>
                    <ig:DataTreeNode Text="Root Node">
                        <Nodes>
                            <ig:DataTreeNode Text="Child Node">
                            </ig:DataTreeNode>
                            <ig:DataTreeNode Text="Child Node">
                            </ig:DataTreeNode>
                        </Nodes>
                    </ig:DataTreeNode>
                    <ig:DataTreeNode Text="Root Node">
                    </ig:DataTreeNode>
                </Nodes>
            </ig:WebDataTree>

     

    Server side:

    protected void WebDataTree1_CheckBoxSelectionChanged(object sender, 
    Infragistics.Web.UI.NavigationControls.DataTreeCheckBoxSelectionEventArgs e)
        {

        }

     

    Can you tell me what is your version?  I made the test with 10.3 RTM

    Thanks.