Results 1 to 3 of 3

Thread: Disable Record in a tree

  1. #1
    Sencha User
    Join Date
    Apr 2014
    Posts
    107
    Answers
    10

    Default Disable Record in a tree

    Hey,

    I have a tree where the user can select records.
    I have a list of records i want to set disabled so the user can not select them...
    Also the selected lines sholud be orange (no problem) but the disabled ones should be gray...

    Is there a option for the record from the store like oRecord.set("disabled", true) ?

    Thanks for your help!

  2. #2
    Sencha Premium User
    Join Date
    Mar 2011
    Posts
    287
    Answers
    35

    Default

    You could listen to the beforeselect event and return false if the item is to not be selected.

    http://docs.sencha.com/extjs/5.1/5.1...t-beforeselect

    Hope this helps.

  3. #3
    Sencha User
    Join Date
    Apr 2014
    Posts
    107
    Answers
    10

    Default

    Thats a create idea...

    Do you also know how I can mark them in another color?

Similar Threads

  1. Sencha Touch 2.x List record disable
    By vishal_sencha in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 27 Mar 2012, 5:22 AM
  2. Disable record wrapping in RestProxy
    By oe.elvik in forum Ext: Discussion
    Replies: 4
    Last Post: 7 Jul 2011, 9:32 AM
  3. Grid: Disable scroll/focus on record.set()
    By sureaintme in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 Nov 2008, 3:28 PM
  4. Replies: 5
    Last Post: 10 Jan 2008, 12:57 PM

Tags for this Thread

Posting Permissions

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