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

Confirm dialog box with three button options - like Yes, No, Cancel?

5 Answers 772 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jitin
Top achievements
Rank 1
Jitin asked on 29 Sep 2009, 03:31 PM
Hi,
I was just wondering if it is possible to use RadWindow.Confirm() method to show a dialog box with three options - something like - Yes, No, Cancel buttons? IMO, this is pretty standard in the industry.
If not, how can I make my own RadWindow view which resembles closely to other Confirm messages?

Thanks,
Jitin

5 Answers, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 29 Sep 2009, 03:57 PM
Hi Jitin,

The Confirm window cannot have three button states since the WindowClosedEventArgs exposes DialogResult property which doesn't have three states. In future, we may consider extending our modal dialogs to support more difficult scenarios out of the box, but for now we will keep our current implementation. One of the reason for this is the easiness by which you can define your own modal dialog that resembles the confirm button and introduce new code-behind logic. It is pretty straight-forward how to create a modal dialog and write the Confirm logic yourself.

If you have any other questions or difficulties resolving this one, please don't hesitate to contact us again.

Kind regards,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jitin
Top achievements
Rank 1
answered on 29 Sep 2009, 07:02 PM
<< It is pretty straight-forward how to create a modal dialog and write the Confirm logic yourself.  >>
Can you please provide an example which does exactly that? Also, where can I get the image for "?" that shows on the left side of dialog?

Thank you so much,
Jitin
0
Jitin
Top achievements
Rank 1
answered on 30 Sep 2009, 07:02 PM
Can you please provide an example on how can I extend the functionality of RadAlert or RadConfirm? Do I have to extend a class from RadConfirm and follow some pre-defined steps?

Thanks.
0
Accepted
Hristo Borisov
Telerik team
answered on 30 Sep 2009, 10:39 PM
Hello Jitin,

I am attaching an example that demonstrates how to create a confirm RadWindow using a user control. I agree that the RadConfirm, RadAlert and RadPrompt controls are not flexible for extending but we will improve this functionality in future. Concerning your second questions, there is no way by which you can get the question mark xaml from our current themes. This is another short-coming that we should get around in our future releases. If you want to have the default question mark and all other xaml files get back to us, I will arrange a xaml file that contains all these extracted. Thank you  for contacting us and excuse us for any inconvenience caused.

All the best,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jitin
Top achievements
Rank 1
answered on 02 Oct 2009, 02:56 PM
Thank you so much Hristo.

This will work for now, but I guess eventually we will need a solution as you described. The reason is the consistency throughout the application for alert/confirm messages.

You guys are have put forth such an excellent product, I am sure this will be a piece of cake for you.
Looking forward to that whenever it is available.

Thanks again,
Jitin
Tags
Window
Asked by
Jitin
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Jitin
Top achievements
Rank 1
Share this question
or