Ticket Q394033
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Add new parameters to the client-side SelectionChanged event

ASPxTreeList - How to handle SelectionChanged event and get selected nodes

created 13 years ago

Dear DevExpress Team
I'm dealing with a treelist and I would like to obtain the following behavior:
- Raise a custom callback handling the client side SelectionChange() method when a user check/uncheck a particular node (with recursive mode).
- do nothing when a user expand without diretly selecting nodes.
Alternatively, when I manage SelectionChanged() method in order to run a custom callback is there the opportunity to check if the treelist selection has changed, for example with a property selectednodes or something of similar?
Many thanks in advance.
Regards
A.

Comments (3)

    Hello,
    At present, the ASPxTreeList control does not provide the functionality to retrieve a node whose checked state has been changed. As a workaround, you can try an approach described in the Q263175 - ASPxTreeList - How to get NodeKey using the SelectionChanged event on the client side report. However, the client-side ASPxClientTreeList.SelectionChanged event is raised every time, so that you can perform a custom callback and process selected nodes on the server side. Take a look at the E2157 - OBSOLETE: How to change the style of a parent node's selection checkbox if some of its child nodes are selected Code Central example, which may be helpful in your scenario.
    We have a corresponding request in our TO-DO list to improve this functionality. Please track the Q217449 - Add new parameters to the client-side SelectionChanged event suggestion to be notified of our progress.
    Thanks,
    Mike
    --------------------
    Check if Search Engine is able to answer questions faster than I do!

    AC AC
    Alessandro Curioni 13 years ago

      Thanks Mike for your answer,
      my regards my need to capture check/uncheck actions only from client-side. I have a following pivot grid that depend on treelist nodes selection and I would like to avoid treelist perform continous callback for expansion/compression of sub-tree.
      Have any usefull suggestion?
      Many regards in advance.
      A.

      DevExpress Support Team 13 years ago

        Hi Alessandro,
        Thank you for your feedback. I believe you can easily accomplish this task with the approach that is described in the ASPxTreeList - How to disable a checkbox for the node selection report.
        Thanks,
        Nikolai

        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.