I'm using UltraDockManager to manage several dockable panes that are inside one parent container. The issue I'm having is that when the user is in one of the panes on a form and is tabbing through the controls on the form, when the user gets to the last control on the form the tabbing order doesn't start over with the first control. Instead, the tabbing moves to the next pane in my parent container and starts tabbing through the controls in that pane. How can I keep the tabbing from going between panes? The ideal behavior I would like is to have the tabbing stay within the pane and on the same form the user is tabbing through.
Thanks,
Steve
Hello Steve,
You can cotrol the tabbing inside the form with two properties. The first is TabIndex property which is show the index of that control when tabbing and the second one is TabStop property which allows this control to take the focus when press Tab, or if you can set this property to false, you will be not able to activate this control when tabbing.
Please let me know if you need any further assistance
Sincerely,
Danko Valkov
Developer Support Engineer
Infragistics, Inc.
Hi Danko,
Thank you for the quick response ... I am using the Tab Index and Tab Stop properies on my forms and they are working as desired. The issue is that when I'm tabbing on a form and I get to the end of that form, the tabbing doesn't start over on that form. Instead the tabbing goes to the next pane and starts tabbing there. For example, in my app I have 3 panes inside a parent control. Two of the panes contain grids, and the third contains a form with textbox controls. When I'm in the pane with the form and I'm tabbing through each textbox, I want the tabbing to re-start with the first textbox control when I get to the end of the form. Right now, what happens is that when I reach the last textbox and hit tab I go to the next pane, which contains a grid, and starts tabbing through the grid. How do I keep the tabbing from going to the next pane and instead keep it within the pane or form I'm currently on? I did a bunch of research on the forums hear and on the web and couldn't really find an answer. Any further help will be very much appreciated.
Thank you!
I think that you can do that in the PaneActivate event of your UltraDockManager. Because you are able to activate the pane without mouse click. In most cases it depends on your custom scenario.
Please let me know if you need further assistance.
Any thoughts or suggestions regarding my last post (i.e. what handler/method to put the snippet of code you provided) ...
Thanks for the code snippet. I think that will work well for my app. Just one additional question, what method/event do you recommend this code be placed? My thought is that it would need to execute each time a tab or pane is clicked on. Is that correct?
What about setting the focus back tot he first control in the form on the leave event of the last control? I know... not the best solution, but I thought I mention it anyway.
Hello Steve,If I understand correctly your scenario you have a DockAreaPane which contains few DockableControlPanes. So you want to keep the focus only in the active DockableControlPane when you are tabbing.So you could try following code snippet that should allow you to tabbing only in the active DockableControlPane foreach (DockableControlPane dcp in ultraDockManager1.DockAreas["DesiredDockAreaPane"].Panes) { if(!dcp.IsActive) { dcp.Control.TabStop = false; } }Please let me know if you have any further question on this matter and I will be glad to help.