MessageBox with two buttons

10 posts, 1 answers
  1. Giuseppe
    Giuseppe avatar
    8 posts
    Member since:
    Feb 2012

    Posted 04 Feb 2013 Link to this post

    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
     
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 05 Feb 2013 Link to this post

    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.
  3. DevCraft banner
  4. Giuseppe
    Giuseppe avatar
    8 posts
    Member since:
    Feb 2012

    Posted 06 Feb 2013 Link to this post

    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

  5. Answer
    Victor
    Admin
    Victor avatar
    1351 posts

    Posted 08 Feb 2013 Link to this post

    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.
  6. Giuseppe
    Giuseppe avatar
    8 posts
    Member since:
    Feb 2012

    Posted 08 Feb 2013 Link to this post

    Thank you.

    --
    Pino
  7. Andrey
    Andrey avatar
    1 posts
    Member since:
    Feb 2013

    Posted 10 Feb 2013 Link to this post

    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.
  8. Florent
    Florent avatar
    9 posts
    Member since:
    May 2013

    Posted 11 Jun 2014 Link to this post

    +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
  9. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 16 Jun 2014 Link to this post

    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.

     
  10. Florent
    Florent avatar
    9 posts
    Member since:
    May 2013

    Posted 16 Jun 2014 Link to this post

    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
  11. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 19 Jun 2014 Link to this post

    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.

     
Back to Top
DevCraft banner