RadButton throws exception

6 posts, 0 answers
  1. Alexandru
    Alexandru avatar
    9 posts
    Member since:
    Sep 2011

    Posted 04 Oct 2011 Link to this post

    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

  2. Pana
    Admin
    Pana avatar
    736 posts
    Member since:
    Dec 2014

    Posted 07 Oct 2011 Link to this post

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

  3. Download a free trial of UI for WPF
  4. Alexandru
    Alexandru avatar
    9 posts
    Member since:
    Sep 2011

    Posted 07 Oct 2011 Link to this post

    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

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

    Posted 07 Oct 2011 Link to this post

    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}}"/>

  6. Pana
    Admin
    Pana avatar
    736 posts
    Member since:
    Dec 2014

    Posted 12 Oct 2011 Link to this post

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

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

    Posted 12 Oct 2011 Link to this post

    Hi,
    Thank you for your reply. Hope the problem will be fixed soon.

    Best regards,
    Alexandru

Back to Top
Download a free trial of UI for WPF