RadMessageBox Text Length Problem

10 posts, 1 answers
  1. Fadi
    Fadi avatar
    20 posts
    Member since:
    Oct 2012

    Posted 20 Apr 2013 Link to this post

    When i have a medium length text to display in a MessageBox, the end of the text is being truncated. 
    Such in the attached image file...

    how to solve it, and how to give a theme into this messagebox?
    Thanks in advance
  2. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 08 May 2013 Link to this post

    Hello Fadi,

    The theming of the messagebox can be achieved by setting a default theme for the entire application, please take a look at the online help page.

    For the  text issues, I've never encountered before, could you provide a sample?

    Best Regards,
    Emanuel Varga
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jason Parrish
    Jason Parrish avatar
    87 posts
    Member since:
    Sep 2009

    Posted 22 Jul 2013 Link to this post

    I noticed this happens when the radmessagebox is called back to back with different length messages.  Very odd...might open a ticket.

    RadMessageBox.Show("Do you wish to save your changes to this expression?", "Save", MessageBoxButtons.YesNo, RadMessageIcon.Question)
     
    RadMessageBox.Show("Are you sure?", "Save", MessageBoxButtons.YesNo, RadMessageIcon.Question)
                    
    RadMessageBox.Show("I do not think that is what you want to do.  Can you see this?", "Save", MessageBoxButtons.YesNo, RadMessageIcon.Question)
  5. Fadi
    Fadi avatar
    20 posts
    Member since:
    Oct 2012

    Posted 23 Jul 2013 Link to this post

    Exactly, as Jason Parrish mentioned below.
  6. Jason Parrish
    Jason Parrish avatar
    87 posts
    Member since:
    Sep 2009

    Posted 23 Jul 2013 Link to this post

    just tested with Q2 2013 release and the bug appears to have been fixed.  It does occur in Q1 2013.
  7. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 25 Jul 2013 Link to this post

    Hello,

    I can confirm that in Q1 2013 SP1 we have introduced a fix for the issue. Afterwards we have received reports that some cases are not handled and in Q2 2013 we addressed them too, so in the latest release everything should be working just fine.
     
    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. Paul
    Paul avatar
    2 posts
    Member since:
    Jul 2014

    Posted 21 Apr 2015 in reply to Stefan Link to this post

    HI Stefan, just so you know, this is still a problem in Q1 2015. My text gets truncated after only 37 characters.
  9. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 22 Apr 2015 Link to this post

    Hello Paul,

    Thank you for writing.

    It seems that you use the TelerikMetroTouch theme. However, when showing a RadMessageBox with a long text, the text is displayed correctly on my end with the specified version 2015.1.225. Please refer to the attached screenshot. I have attached my sample project. Could you please have a look into it and describe how it differs from your real setup? It would be greatly appreciated if you specify the exact steps how to reproduce the problem with the attached sample project. Thus, we would be able to investigate the precise case and assist you further. Thank you in advance.

    I am looking forward to your reply.

    Regards,
    Dess
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  10. Paul
    Paul avatar
    2 posts
    Member since:
    Jul 2014

    Posted 22 Apr 2015 in reply to Dess Link to this post

    Hi Dess,

    Thank you your sample code. I found the difference: you have the telerikMetroTouchTheme1 control placed on the form at design time. So when I did this, the message box displayed as expected! Yeay!

    I was not doing this originally and was only calling ThemeResolutionService.ApplicationThemeName = "TelerikMetroTouch" after the form's InitializeComponent() function call.

    So thank you for you help, Dess. :)

    P.S. sorry for the duplicate tickets. We had multiple people searching for a solution.

  11. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 27 Apr 2015 Link to this post

    Hello Paul,

    Thank you for writing back.

    I am glad that the problem you were facing is now resolved.

    You can apply a theme to the entire application by setting the ThemeResolutionService.ApplicationThemeName property to the desired theme. However, before that have to drop the theme component on the form (e.g. TelerikMetroTouchTheme) or create an instance of the desired theme programmatically. In both cases, the RadMessageBox is appears as expected.

    If you have any additional questions, please let me know.

    Regards,
    Dess
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready