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

MessageBox with two buttons

9 Answers 277 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Giuseppe
Top achievements
Rank 1
Giuseppe asked on 04 Feb 2013, 10:35 PM
Hi,
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

Sort by
0
Victor
Telerik team
answered on 05 Feb 2013, 08:58 AM
Hi Giuseppe,

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.

Greetings,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Giuseppe
Top achievements
Rank 1
answered on 06 Feb 2013, 12:14 PM
Hi Victor,
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

0
Accepted
Victor
Telerik team
answered on 08 Feb 2013, 12:06 PM
Hi Giuseppe,

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.

Greetings,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Giuseppe
Top achievements
Rank 1
answered on 08 Feb 2013, 01:13 PM
Thank you.

--
Pino
0
Andrey
Top achievements
Rank 1
answered on 11 Feb 2013, 04:30 AM
Hey, I'm currently doing a trial integration of WP8 controls for my client, and I basically want to +1 this request. You could at least support it for custom control templates. I've added an idea here: http://feedback.telerik.com/Project/112/Feedback/Details/40637-messagebox

Will now look at RadModalWindow.
0
Florent
Top achievements
Rank 1
answered on 11 Jun 2014, 03:30 PM
+1, I faced the same problem and posted it too in the feedback section ! ;)

http://feedback.telerik.com/Project/112/Feedback/Details/123534-radmessagebox-with-2-buttons-text-of-the-2nd-one-is-truncated
0
Ves
Telerik team
answered on 16 Jun 2014, 01:41 PM
Hi and thanks for the feedback.

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.

 
0
Florent
Top achievements
Rank 1
answered on 16 Jun 2014, 02:02 PM
Hi,

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
0
Ves
Telerik team
answered on 19 Jun 2014, 07:53 AM
Hi 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.

 
Tags
MessageBox
Asked by
Giuseppe
Top achievements
Rank 1
Answers by
Victor
Telerik team
Giuseppe
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Florent
Top achievements
Rank 1
Ves
Telerik team
Share this question
or