Ticket Q219516
Visible to All Users

OnSelectionChanged - how do I no which node changed

created 15 years ago

I am handling the OnSelectionChanged event for the aspxtreelist control. How do I determine the key of the node that changed? This handler only accepts a very basic EventArgs parameter which pretty much contains nothing.
Also, I notice that this handler gets called 2 times on the server. Can you explain this behavior? I want to understand.
I have the following settings:
     <Settings ShowColumnHeaders="false" />
                                                  <SettingsBehavior ExpandCollapseAction="NodeDblClick" AutoExpandAllNodes="true" AllowSort="false" />
                                                  <SettingsSelection Enabled="True" Recursive="true" />
                                                  <SettingsPager Mode="ShowAllNodes" />

Comments (3)
DevExpress Support Team 15 years ago

    Hello Jim,
    The SelectionChanged event doesn't give you information about which nodes have been selected or deselected. Most likely, you should use the FocusedNodeChanged event instead. Please refer to the event description in the online documentation.
    Thanks,
    Nick
    --------------------
    Check if Search Engine is able to answer questions faster than I do!

    ?
    Unknown 15 years ago

      Purhaps I worded my question incorrectly. I need to know which "checkbox" changed when callback occurs against the server. Whether or not a node is focused makes no different to me. I have the control setup to callback when the checkbox changes from checked to unchecked or vice versa.
      thanks

      DevExpress Support Team 15 years ago

        Hello Jim,
        We have the following suggestion that relates to your question:
        When a node's focused or selected state changes, provide arguments of related server and client events with the information about the processed node
        You can track it to be informed when this functionality is implemented.
        Thanks,
        Andrew

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.