Completed
Last Updated: 24 Mar 2014 11:25 by ADMIN
ADMIN
Georgi I. Georgiev
Created on: 19 Dec 2013 10:05
Category: Buttons
Type: Bug Report
1
RadButton - RadButtonAccessibleObject DoDefault action does not perform click
To reproduce: Create a form with RadButton and do some action on the Click event. Use the following Tool to click the button using the DoDefaultAction option http://msdn.microsoft.com/en-us/library/windows/desktop/dd318521(v=vs.85).aspx . You will notice that the click action will not be executed 

Workaround: public class MyButton : RadButton { protected override AccessibleObject CreateAccessibilityInstance() { return new MyAccessibilityInstance(this); } } public class MyAccessibilityInstance : RadButtonAccessibleObject { public MyAccessibilityInstance(Control owner) : base(owner) { } public override void DoDefaultAction() { ((RadButton)base.Owner).PerformClick(); } } 
0 comments