1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    6
    Vote Rating
    0
    venkatadineshp is on a distinguished road

      0  

    Default Unanswered: Showing Disclosure indicator for only selected rows in list

    Unanswered: Showing Disclosure indicator for only selected rows in list


    Hi,

    I just stared learning sencha touch. I am trying to displays disclosure indicator only for few cell which has child data. Can any one please tell me if this possible?

    Any help be appreciated

    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Answers
    3447
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You can add a CSS rule to the disclosure icon element to hide it. And then add another to use the seelcted class on the list to show it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    6
    Vote Rating
    0
    venkatadineshp is on a distinguished road

      0  

    Default


    Thanks for responding. I am new to css and js would you mind elaborating the answer.

  4. #4
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    93
    Answers
    1
    Vote Rating
    3
    adammascherin is on a distinguished road

      0  

    Default


    Hi Mitchell. Whats the point of the disclosureProperty config on Ext.List? Isn't it used to tell the List which items have a disclosure? So lets say you set disclosureProperty: 'disclosure', add a 'disclosure' field in the model, then add a disclosure field in the data, specifying certain records as disclosure: false and certain to true.

    To me, it seems logical that if disclosure is false, this should act as a flag to hide the disclosure arrow, but maybe I'm misunderstanding the use of disclosureProprty

    disclosureProperty : String2
    A property to check on each record to display the disclosure on a per record basis. This property must be false to prevent the disclosure from being displayed on the item.

  5. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Answers
    3447
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This thread is a couple months old and now we do have the disclosure functionality.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  6. #6
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    93
    Answers
    1
    Vote Rating
    3
    adammascherin is on a distinguished road

      0  

    Default


    ah, ok, I wasn't sure because I'm using the disclosureProperty and it doesn't seem to work. As I explained in my last post, I added the disclosureProperty to the list config, I added the field to the model and data and I still see all the disclosure arrows regardless of setting certain records disclosure field to false

    EDIT: AUGH, sorry, I had a typo in my model field. Sorry for the stupid post.