Results 1 to 3 of 3

Thread: Changing tree node text programmatically removes x-grid-row-selected x-grid-row-focus

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2013
    Posts
    54
    Answers
    1
    Vote Rating
    2
      0  

    Default Answered: Changing tree node text programmatically removes x-grid-row-selected x-grid-row-focus

    Hello! Please help, if you can. I normally change node text property by Ext.getCmp('mytree').getSelectionModel().getLastSelected().set('text',txt) command. But not only it changes the text, it also removes overlapping classes x-grid-row-selected and x-grid-row-focus. But I want my node stay highlighted. Who knows how to prevent this behaviour?
    Thanks in advance,
    Viktor.

  2. This is a known bug when a single row is updated. You can fix it by refreshing the view with the refresh method on the tree view.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    This is a known bug when a single row is updated. You can fix it by refreshing the view with the refresh method on the tree view.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Apr 2011
    Location
    Russia
    Posts
    72
    Answers
    7
    Vote Rating
    1
      0  

    Default ...

    Thanks! I would mark it answered if I knew how.

Posting Permissions

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