Results 1 to 4 of 4

Thread: Setting a ExtJS Tree Panel checkbox to be read-only

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    10

    Default Setting a ExtJS Tree Panel checkbox to be read-only

    Hi all,

    I was just wondering if there was a way to make a checkbox that is part of a ExtJS Tree Panel read-only?

    What I mean by that is that the user can't check/uncheck the checkbox and only by double clicking on a tree node item can the relevant checkbox be checked.

    Thanks,
    Dev One

  2. #2
    Sencha User
    Join Date
    Sep 2011
    Posts
    10

    Default

    Anyone?

  3. #3
    Sencha User
    Join Date
    Jan 2009
    Location
    Paris
    Posts
    2

    Default

    Need to use the event checkchange

    Code:
    myTreePanel.on('checkchange',myRejectChangesFunction);
    
    myRejectChangesFunction : function(node){
    { 
             node.reject( );
    }
    simple as that =)

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    10

    Default

    Thanks for the reply.

    How can I make it so that once a checkbox is checked, it is completely read only?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •