Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Buttons > RadButton throws exception

Not answered RadButton throws exception

Feed from this thread
  • Alexandru avatar

    Posted on Oct 4, 2011 (permalink)

    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

    Reply

  • Pana Pana admin's avatar

    Posted on Oct 7, 2011 (permalink)

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

    Reply

  • Alexandru avatar

    Posted on Oct 7, 2011 (permalink)

    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

    Reply

  • Alexandru avatar

    Posted on Oct 7, 2011 (permalink)

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

    Reply

  • Pana Pana admin's avatar

    Posted on Oct 12, 2011 (permalink)

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

    Reply

  • Alexandru avatar

    Posted on Oct 12, 2011 (permalink)

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

    Best regards,
    Alexandru

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Buttons > RadButton throws exception