Why focusing?

Feb 12, 2014 at 6:29 AM
Hi, I needed to turn the focusing off (by uncommenting the FocusHelper calls), since I faced problems when working with a search box.
This searchbox (TextBox) executes a search in the TreeViewEx when I hit a key. The matching TreeItems are then selected. With focusing ON the searchbox obviously loses its focus when something is selected.
What is the use case for the focus feature? I think that I didn't realize it so far :-)
Is there a better way to turn it off, than uncommenting?

Regards, Matthias
Coordinator
Feb 18, 2014 at 7:35 AM
Hi,

focusing is setting the keyboard focus, too. Therefor it is needed, if a user selects an item. It should probably not happen, if sth is selected over the api. I will have a look at this.

Regards, Torsten
Coordinator
Feb 18, 2014 at 7:46 AM
Hmm, I was trying to reproduce that. I put a button in the simple sample and calling tree.SelectedItems.Add(<some node>). Clicking the button does not result in a call to the Focushelper and the button is still selected after the click.

So it seems I need more information, to reproduce the described behavior.