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

Change the button OK of a RadAlert

1 Answer 43 Views
Window
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 21 Mar 2013, 04:12 PM
Hi!

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!

Diego.

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 26 Mar 2013, 03:33 PM
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);
RadWindow.Alert(dialogParam);

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

All the best,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Window
Asked by
Diego
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or