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

Problem where to attach keydown event

2 Answers 106 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Niklas
Top achievements
Rank 1
Niklas asked on 25 Sep 2014, 07:24 AM
Where should i attach the event to make it work properly?

Now i attach it to a RadPane, but it only works aslong as some objeckt inside the RadPane is focused. If i have the "frame" of the RadPane focused, say after i reposition it, the KeyDown will not fire. 

I have tried to attach the event to almost every object above the RadPane in the hierarchy but no luck so far...

Pseudu:

Grid
  RadDocking
    RadSplitContainer
      RadPaneGroup   <-- Inside here we dynamically add RadPanes
    /RadSplitContainer
  /RadDocking
/Grid



2 Answers, 1 is accepted

Sort by
0
Niklas
Top achievements
Rank 1
answered on 25 Sep 2014, 12:01 PM
On further investigation the problem seems to be OS related, since the problem only occures in Windows 8, not in Windows 7.
0
Alek
Telerik team
answered on 29 Sep 2014, 10:48 AM
Hello Niklas,

Basically, the RadPane is only the tab which is visualized when you have more than one RadPane placed in a RadPaneGroup. The area where the objects are visible is ContentControl which is not placed in the RadPane. This is the reason the event to be fired only if you have an object defined in the RadPane as the event of the object is send up in the visual tree.

Testing the case in different OS (Windows 7 and Windows 8.1) on our side we receive the same results - the event is not triggered if there are not controls defined in the RadPane. 

We would like to have more details about the behavior you're trying to achieve. In most cases hooking to the event of the control defined in the RadPane is helping is to resolve the case.

Regards,
Alek
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Docking
Asked by
Niklas
Top achievements
Rank 1
Answers by
Niklas
Top achievements
Rank 1
Alek
Telerik team
Share this question
or