Results 1 to 3 of 3

Thread: How to disable tree panel while data loading

  1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    216
    Answers
    4

    Default How to disable tree panel while data loading

    Hello,

    I've got a tree panel and a grid. When I tick a checkbox, data are loading into the grid.

    I want to prevent the user to tick another check box until data are loaded.

    I've tried to disable my tree component while loading, the component is in grey but you still can tick another box even if it is in grey.

    Anyone has an idea how I could avoid that?

    Thanks,

    Regards,

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    What if you mask the treepanel's el?
    http://docs.sencha.com/extjs/4.2.1/#...nt-method-mask

    Code:
    treepanel.getEl().mask(); // unmask() to remove the mask once the load operation is complete.

  3. #3
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    216
    Answers
    4

    Default

    Hi,

    Thanks for your answer, unfortunately it does the same behaviour, I still can click on another checkbox while the component is grey.

    I've finally found a workaround, I do a setVisible(true) of the treepanel and a setDisabled(true) of his main component. Now I'm sure the user won't click on anything.

Posting Permissions

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