I'd like to show a MessageBox with just two buttons with a short description, something like the one in your sample app. I'm facing with a strange behaviour: the two buttons are shown side-by-side (picture no. 1) instead of top-down (see picture no. 2, photoshopped). How can I force the vertical alignment of the buttons?
TIA, ciao
--
Pino
9 Answers, 1 is accepted
Thanks for writing.
This behavior is hardcoded in RadMessageBox. When three or more buttons are to be displayed, they are arranged in a column. If only two buttons are to be displayed, they are arranged in a row.
If you need a custom dialog, I suggest implementing on using RadModalWindow.
Please write again if you have other questions.
Victor
the Telerik team

thanks for answering.
I think MessageBox is derived from RadModalWindow, isn't it? Can you please give me a template or something else to mimic the MessageBox in the sample app?
TIA, ciao
--
Pino
Thanks for the question.
The message box uses RadModalWindow internally, they are not in a class hierarchy. You can see a sample message box template in this help article.
Victor
the Telerik team

--
Pino

Will now look at RadModalWindow.

http://feedback.telerik.com/Project/112/Feedback/Details/123534-radmessagebox-with-2-buttons-text-of-the-2nd-one-is-truncated
Indeed, currently providing your own template is the way to go for this task -- this is shown in the help article, pointed by Victor. We will fix the problem with buttons being resized in a vertical stack panel, so that you can get larger buttons.
Best regards,
Ves
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Yes, I tried using custom template, with a stack panel, but unfortunately, the buttons don't take all the screen width. If you will have a fix for it soon, it is a good news ! ;)
Best regards,
Florent
Q2 2014 is already out and it includes the fix. Please, download it and give it a try.
Best regards,
Ves
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.