This is a migrated thread and some comments may be shown as answers.

toolbutton focus

6 Answers 89 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
avner
Top achievements
Rank 1
avner asked on 25 Feb 2008, 10:49 PM
Hi again,

I have cut copy and paste toolbar buttons on my toolbar - whenever I click one, the focus on the active control is lost so I can't send a clipboard command to the control. Any ideas on how to achieve this?

reagrds,

Avner

6 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 26 Feb 2008, 08:13 AM
Hello Avner,

Have you tried to subscribe to the LostFocus event of the control? In the event handler you can set the focus back  by calling the Focus method.

Kind regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
avner
Top achievements
Rank 1
answered on 26 Feb 2008, 10:21 PM
Thank you for your suggestion, but wiring up the lostfocus event doesn't sound like a good solution. For a start you would have to conditionally refocus the control only if the control that gets the focus is the toolbar. Its further complicated when you have user controls and an MDI application.

The way I got around the problem was by remembering the last active control in my main form and applying clipboard operations to that control.

I feel the correct solution is for the Telerik toolbar not steal the focus. Even the windows forms toolstrip has this capability.

regards,

Avner
0
Boyko Markov
Telerik team
answered on 27 Feb 2008, 04:50 PM
Hello avner,

Thank you for contacting me.

I agree with you that the toolBar shouldn't be able to get the focus. We will investigate this issue and correct it. The solution that remembers the last active control is a good workaround with the current implementation.

Do not hesitate and write me back if you have more questions about RadToolStrip.

All the best,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
MikeB
Top achievements
Rank 1
answered on 04 Aug 2009, 05:59 PM
Hi,

Is this still an issue with version 2009 Q2 SP1?
I am having the same problem after replacing an existing ToolStrip with RadToolStrip.

Thanks,

Mike
0
Aaron
Top achievements
Rank 2
answered on 06 Aug 2009, 06:44 PM
MikeB,

This issue appears to still exist in SP1. I think going with avner's workaround is probably the best idea for now.

- Aaron
0
Boyko Markov
Telerik team
answered on 07 Aug 2009, 10:35 AM
Hello Aaron,

I confirm that this issue still exists in Q2 SP1 version. We will do our best to fix this issue for the next version of our suite. Thank you for your feedback.
 
Greetings,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
avner
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
avner
Top achievements
Rank 1
MikeB
Top achievements
Rank 1
Aaron
Top achievements
Rank 2
Share this question
or