12 Feb 2013 11:12 AM #1
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,
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.
14 Feb 2013 7:09 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
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 @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
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.
14 Feb 2013 8:47 AM #3
Thanks! I would mark it answered if I knew how.