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

8 posts, 0 answers
  1. saurabh
    saurabh avatar
    2 posts
    Member since:
    Aug 2011

    Posted 27 Aug 2011 Link to this post

    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.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 29 Aug 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Alexandru
    Alexandru avatar
    9 posts
    Member since:
    Sep 2011

    Posted 30 Sep 2011 Link to this post

    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
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 05 Oct 2011 Link to this post

    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 >>

  6. Alexandru
    Alexandru avatar
    9 posts
    Member since:
    Sep 2011

    Posted 06 Oct 2011 Link to this post

    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.
  7. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 06 Oct 2011 Link to this post

    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 >>

  8. Morten Bergman
    Morten Bergman avatar
    3 posts
    Member since:
    May 2010

    Posted 27 Oct 2011 Link to this post

    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




  9. Alexandru
    Alexandru avatar
    9 posts
    Member since:
    Sep 2011

    Posted 28 Oct 2011 Link to this post

    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
Back to Top
DevCraft banner