Hello,
I've got an ExplorerBar setup as ListBar with ControlContainers as content. The ControlContainers contain different controls (grid, texteditor).
I want the first editable control in a group to automatically get focus when the group is folded open. So when the user clicks a group which contains a texteditor control; the group should open and the text editor should immediately have focus so the user can start typing at once.
I tried almost every event the ExplorerBar offers, but none will do the trick. I tried Select / Focus in the ActiveGroupChanged event on both the container as the control in the container, but without luck unfortunately.
Try SelectedGroupChanged
Tried this:
private void finishUltraExplorerBar_SelectedGroupChanged(object sender, Infragistics.Win.UltraWinExplorerBar.GroupEventArgs e){ if (e.Group.Container.Controls[0] is UltraTextEditor) { UltraTextEditor textEditor = (UltraTextEditor)e.Group.Container.Controls[0]; textEditor.Focus(); textEditor.SelectAll(); }}
Doesn't seem to work, it's the proper control but theres no focus or selection after the group change.