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

In New build of telerick control, telerik:RadWindow.ResponseButton="Accept" throw object reference exception

7 Answers 133 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
saurabh
Top achievements
Rank 1
saurabh asked on 27 Aug 2011, 12:33 PM
Current version used : 2011.2.815.1040
I implemented the telerik:RadWindow.ResponseButton="Accept" functionality and it was working fine but after taking update it start throwing exception " Object Reference Not set to an instance of an object". when I remove this functionality from button I didn't get this exception but "Enter button key" functionality stop working. If you did any change in new version please let me know. Please suggest. Please find the screen shot of exception.

7 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 29 Aug 2011, 12:27 PM
Hi Saurabh,

We're not aware of such an issue. Could you please send us some sample code which will help us reproduce the problem? Thanks

Greetings,
Yana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Alexandru
Top achievements
Rank 1
answered on 30 Sep 2011, 08:53 AM
Hello everyone,
We have updated our libraries to the latest version(2001.2.920.140 SP1) and have faced the same problem with the buttons taht 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
0
Yana
Telerik team
answered on 05 Oct 2011, 11:13 AM
Hi Alexandru,

I tried to reproduce this issue but to no avail, please check the attached project and give it a try. Am I missing something?

Best wishes,
Yana
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 06 Oct 2011, 08:38 AM
Hello,
Your are not missing anything. Everything is correct. The problem is that the exception is thrown just for some dialogs. I mean that in our application we have a lot of dialogs and for most of them the things works fine, but for a few of them (approx. 2) there is thrown an exception. IFrom the stack trace it seems that the button instance is not created. The problem appeared in the new library release(2011.2.920.1040), with previous versions there was no such a problem.
0
Yana
Telerik team
answered on 06 Oct 2011, 09:23 AM
Hi Alexandru,

I am sorry for the issues you're experiencing with the RadWindow.

We really cannot help much without reproducing the problem at our side. Could you please try to isolate it in a simpler project and send it to us? You should open a support ticket and attach it there. Thanks in advance

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Morten Bergman
Top achievements
Rank 1
answered on 27 Oct 2011, 08:06 PM
Telerik-
We just experienced the same beavior when using RadWindow.ResponseButton="Accept". It happens when the user hit the enter key when focus was set on a TextBox placed on a customized RadWindow. I've only seen this in one of our dialogs. We've removed the ResponseButton property for now.

-Morten




0
Alexandru
Top achievements
Rank 1
answered on 28 Oct 2011, 06:44 AM
Hello Morten Bergman,
At my company we have experienced the same issue, so I created a ticket on their issue tracker and attached a test-project. I was told that the problem will be fixed in the next internal build. So we have just to wait a little.

Best regards,
Alexandru
Tags
Buttons
Asked by
saurabh
Top achievements
Rank 1
Answers by
Yana
Telerik team
Alexandru
Top achievements
Rank 1
Morten Bergman
Top achievements
Rank 1
Share this question
or