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
    62
    Answers
    1
    Vote Rating
    3
      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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •