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

RadButton throws exception

5 Answers 56 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Alexandru
Top achievements
Rank 1
Alexandru asked on 04 Oct 2011, 08:30 AM
Hello everyone,
We have updated our libraries to the latest version(2001.2.920.1040 SP1) and have faced the same problem with the buttons that have set telerik:RadWindow.ResponseButton="Accept" or telerik:RadWindow.ResponseButton="Cancel". Here is the exception and the stack trace we get:
Exception message: "Object reference not set to an instance of an object."
Stack Trace: "   at Telerik.Windows.Controls.RadWindow.InvokeButton(Button button)
                           at Telerik.Windows.Controls.RadWindow.OnKeyDown(KeyEventArgs e)
at System.Windows.Controls.Control.OnKeyDown(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)"

It seems that the Button object is not instantiated.

Best regards,
Alexandru

5 Answers, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 07 Oct 2011, 07:48 AM
Hello,

Please check the attached project. It works with the dlls from the release. Are you sure you have not put the attached property on a Button instead of RadButton?

Regards,
Pana
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Alexandru
Top achievements
Rank 1
answered on 07 Oct 2011, 08:07 AM
Hello,
Thank you for rply. No we do not use Button controls in our application, we use only RadButton controls and the property is set toa RadButton control as need.

Best regards,
Alexandru
0
Alexandru
Top achievements
Rank 1
answered on 07 Oct 2011, 08:11 AM
Here is the markup we use:
<telerik:RadButton Content="Save" IsEnabled="{Binding CanSave}"
     telerik:RadWindow.ResponseButton="Accept"
     Micro:Message.Attach="SaveData()"
     Visibility="{Binding CanSave, Converter={StaticResource VisibleIfTrue}}"/>
0
Pana
Telerik team
answered on 12 Oct 2011, 10:43 AM
Hi,

This is a bug in the RadWindow our developers are working on. I believe it would be fixed soon. Thank you for your feedback.

Greetings,
Pana
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Alexandru
Top achievements
Rank 1
answered on 12 Oct 2011, 10:49 AM
Hi,
Thank you for your reply. Hope the problem will be fixed soon.

Best regards,
Alexandru
Tags
Buttons
Asked by
Alexandru
Top achievements
Rank 1
Answers by
Pana
Telerik team
Alexandru
Top achievements
Rank 1
Share this question
or