Ticket T349425
Visible to All Users
Duplicate

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

How to disable selection checkboxes in the ASPxTreeList

ASPxTreeList - How to disable selection check boxes instead of hiding them

created 9 years ago

I want to disable some of the node's check-box based on some condition in ASPxTreelist. Is it possible to achieve now ?
I am using 15.1.7 version.

https://www.devexpress.com/Support/Center/Example/Details/E2011

This solution doesn't work for me I mean after applying this solution the checkbox looks like disabled but functioning same as before .

Please note: I don't want to hide the checkbox i want to disable so that user can't change the selection.

Thank You in advance.

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

Updated
Hello,
The approach implemented in the E2011 example has no effect starting with v.11.1, since the Three-state checkbox feature was introduced. We created a report about this limitation T327780: ASPxTreeList - It is impossible to disable a selection check box and currently, it's possible to achieve this task using the undocumented API.
I've attached a sample demonstrating the approach suggested in the T326091: How to disable selection checkboxes in the ASPxTreeList thread.

    Show previous comments (1)
    SC SC
    Sanjay Choudhary 1 9 years ago

      snapshot.

      Nastya (DevExpress Support) 9 years ago

        Hello,
        It seems that the issue may occur because the collection of nodes to be disabled contains invisible nodes. I've modified the client-side code, so that it also checks whether a node to be disable is visible on a page. Please review the attached sample and let me know if the issue persists.

        SC SC
        Sanjay Choudhary 1 9 years ago

          Perfect :)

          Thanks a lot for your time and help.

          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.