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

6 posts, 1 answers
  1. Jitin
    Jitin avatar
    9 posts
    Member since:
    Jun 2009

    Posted 29 Sep 2009 Link to this post

    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
  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 29 Sep 2009 Link to this post

    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.
  3. DevCraft banner
  4. Jitin
    Jitin avatar
    9 posts
    Member since:
    Jun 2009

    Posted 29 Sep 2009 Link to this post

    << 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
  5. Jitin
    Jitin avatar
    9 posts
    Member since:
    Jun 2009

    Posted 30 Sep 2009 Link to this post

    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.
  6. Answer
    Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 30 Sep 2009 Link to this post

    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.
  7. Jitin
    Jitin avatar
    9 posts
    Member since:
    Jun 2009

    Posted 02 Oct 2009 Link to this post

    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
Back to Top
DevCraft banner