Change the button OK of a RadAlert

2 posts, 0 answers
  1. Diego
    Diego avatar
    1 posts
    Member since:
    Mar 2013

    Posted 21 Mar 2013 Link to this post


    I want to change the button "OK" of a RadAlert for a button with a image.
    and this new button has to redirect to another aspx

    I hope you can help me. Thanks!

  2. Boyan
    Boyan avatar
    758 posts

    Posted 26 Mar 2013 Link to this post

    Hello Diego,

    You can achieve this by using DialogParemeters. Here is a sample code how this can be done:
    var dialogParam = new DialogParameters();
    dialogParam.OkButtonContent = new Rectangle() { Height = 20, Width = 20, Fill = new SolidColorBrush(Colors.Red) };
    dialogParam.Closed+=new EventHandler<WindowClosedEventArgs>(Window1_Closed);

    Note that instead of an image I have used Rectangle for simplicity. Hope this helps.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top