RadMessageBox large text height problem

14 posts, 0 answers
  1. DGPunkt
    DGPunkt avatar
    20 posts
    Member since:
    Apr 2007

    Posted 17 Dec 2009 Link to this post

    Hello everybody,

    we´re (still) updating to RadControls Q3SP1 an we still experience problems with RadMessageBox and large text, like 4000 characters.

    In the program we collect multiple messages and append them to a StringBuilder using AppendLine. If this text exceeded 4000 characters, it is cut (StringBuilder.Length = 4000) and a "text-was-cut-message" is appended, so the resulting string has about 4100 charaters and is passed to the RadMessageBoxes Show method.
    The resulting MessageBox shows the whole text in the upper portion of the control and is that big (rest (half) of the messagebox is empty), you can´t click "Ok-Button", because it´s located just under the bottom of my monitor.

    So, if text is that big - we have to use MS MessageBox.

    What I found out while making the screenshot is, that this behaviour depends on the text. I tried to make an example where I put a space after every 50 or 100 characters and a newline after every 500 characters and the text was almost shown as expected.


    Greetings,
    Daniel
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 18 Dec 2009 Link to this post

    Hello DGPunkt,

    Thank you for writing. You have run across a known issue with the TextPrimitive that has been used in RadMessageBox object. We are going to address this in the next release (it is possible to include a fix in the next internal builds as well). Currently, you can place the <html> tag before your string. If this does not help, you can try to manually format the text in a couple of rows by including new lines in your string. 

    Greetings, Martin Vasilev
    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. UI for WinForms is Visual Studio 2017 Ready
  4. moftol
    moftol avatar
    17 posts
    Member since:
    Feb 2008

    Posted 24 Mar 2013 Link to this post

    Dears,

    I have a problem i am using Telerik windows form rad message box and display arabic text in the rad message box, but the problem is  that text wrap to second line(although the message is very short and no need to go in second line) and is not visible, the same text is working fine when i use .NET Core MessageBox.

    Some times rad messagebox shows a very big message in one or two lines and that is visible.
    i dont understand the exact problem, whether  some characters are creating the problem or what ??, i have matched the character in different message but find no clue :(

    any suggestions.

    Thank you.
  5. moftol
    moftol avatar
    17 posts
    Member since:
    Feb 2008

    Posted 26 Mar 2013 Link to this post

    a reply is needed by the good as well as by the bad people if some one face this issue or may have some clue.

    Thanks.
  6. moftol
    moftol avatar
    17 posts
    Member since:
    Feb 2008

    Posted 26 Mar 2013 Link to this post


    Please find the attached images for more clarification.
    • Arabic text problem in Rad Message Box
    • same text is showing perfect in Windows Message Box.


    Thanks.


  7. Anton
    Admin
    Anton avatar
    167 posts

    Posted 27 Mar 2013 Link to this post

    Hello Farooq,

    Thank you writing.

    In version Q1 2013(2013.1.220) we had an issue with RadMassageBox that may lead to the undesired behavior in your case. I am glad to inform you that this issue is already resolved in our latest release Q1 2013 SP1 (2013.1.320). So my advice is to upgrade to latest version and if you continue to experience the issue to provide code snippets that demonstrate your case so I can investigate it and provide you with adequate assistance.

    I hope this helps. I am looking forward to your reply.

    Greetings,
    Anton
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  8. moftol
    moftol avatar
    17 posts
    Member since:
    Feb 2008

    Posted 02 Apr 2013 Link to this post


    Thank you Anton.

    We are looking to upgrade the telerik controls and if issues arise again, we will put a support ticket.


    Thanks.
  9. moftol
    moftol avatar
    17 posts
    Member since:
    Feb 2008

    Posted 02 Apr 2013 Link to this post

    Hi Anton,

    can we manipulate Telerik Rad MessageBox functionality through reflection.

    Thanks.
  10. Anton
    Admin
    Anton avatar
    167 posts

    Posted 02 Apr 2013 Link to this post

    Hi Farooq,

    Thank you for writing back.

    Yes, you can manipulate the functionality through reflection. There are cases when we are providing  workarounds with reflection due implementation of members that are not public and cannot be accessed without reflection. But to be able to assist you I need more information about your case and what you are trying to accomplish. So please open support ticket where you can attache project and steps how to reproduce the issue and I will be glad to help further.

    I am looking forward to your reply.

    Greetings,
    Anton
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  11. Francisco
    Francisco avatar
    4 posts
    Member since:
    Apr 2012

    Posted 27 Feb 2014 in reply to Martin Vasilev Link to this post

    Example:

    RadMessageBox.Show("<html>One Line<br/>Second Line</html>", ":: Notice ::", MessageBoxButtons.OK, RadMessageIcon.Info);

    Kind Regards.
  12. George
    Admin
    George avatar
    500 posts

    Posted 04 Mar 2014 Link to this post

    Hi Francsco,

    Thank you for replying.

    Can you please elaborate your latest post? I find it hard to understand what you are trying to accomplish or what your goal is. I tested the provided code with the latest version (2014.1 226) and it seems to work as expected.

    Looking forward to your response.

    Regards,
    George
    Telerik
  13. Francisco
    Francisco avatar
    4 posts
    Member since:
    Apr 2012

    Posted 04 Mar 2014 in reply to George Link to this post

    This Example, is to create diffence sections when you have a big text that you want to show on RadMessage, the first step is set the tags <html>Message</html>, with this tags you can enable html mode on RadMessage, and you will be setting differents secctions with the tag <br/> with this you can create a big text on RadMessage.

    RadMessageBox.Show("<html>One Line<br/>Second
    Line</html>", ":: Notice ::", MessageBoxButtons.OK,
    RadMessageIcon.Info);

    Kind Regards.
  14. George
    Admin
    George avatar
    500 posts

    Posted 07 Mar 2014 Link to this post

    Hello Francisco,

    Thank you for your reply.

    I tested with a few lines and the behavior still seems OK on my end. Can you please share your concerns, what behavior you are expecting etc. ? Moreover I am attaching a screenshot of the shown RadMessageBox for reference.

    Looking forward to your reply.

    Regards,
    George
    Telerik

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

  15. Francisco
    Francisco avatar
    4 posts
    Member since:
    Apr 2012

    Posted 12 Mar 2014 in reply to George Link to this post

    I have realized other example:

    RadMessageBox.Show("<html><b><span style=\"color:#f26609; font-size:18pt\">Title:</span></b><br/><br/><span style=\"color:blue; font-size:16pt\">Error on Save..!!</span><br/><span style=\"color:gray; font-size:12pt\">Check with your Administrator.</span></html>", ":: Notice ::", MessageBoxButtons.OK, RadMessageIcon.Exclamation);

    You can see the image attached.

    I hope to answer your questions.

    Kind Regards.
Back to Top
UI for WinForms is Visual Studio 2017 Ready