.Alert with long text shows crippled Window

8 posts, 1 answers
  1. Peter Meinl
    Peter Meinl avatar
    35 posts
    Member since:
    Jan 2010

    Posted 02 Mar 2010 Link to this post

    When displaying very long text using RadWindow.Alert(myText), RadWindow displays a window with capped off right part and no Exit Button. One must kill the app to get out.

    See screenshot attached.
  2. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 04 Mar 2010 Link to this post

    Hello Peter,

    Thank you for contacting us.

    To wrap the long text displayed in the Alert window, you will have to change the style of the window. Instead of the default ContentPresenter control you will have to put a TextBlock and set its TextWrapping property to Wrap.
    Attached is a sample project in which that is illustrated.

    If you have further questions please feel free to contact us again.

    Greetings,
    Konstantina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. yonadav
    yonadav avatar
    60 posts
    Member since:
    Oct 2009

    Posted 15 Apr 2010 Link to this post

    Hi Konstantina,

    It appears the sample you have attached solves a different problem. Do you have a sample for the text wrapping issue?

    Thank you,
    yonadav
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 19 Apr 2010 Link to this post

    Hello yonadav,

    Thank you for contacting us.

    It seems that I couldn't get you right. The project illustrates how you can wrap the long text in the Alert Window, so that it won't be cut off. Please find the attached screenshots for reference.

    Could you please explain in more details what exactly you are trying to achieve?

    Looking forward to your reply.

    Greetings,
    Konstantina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. yonadav
    yonadav avatar
    60 posts
    Member since:
    Oct 2009

    Posted 19 Apr 2010 Link to this post

    Hi Konstantina,

    Sorry for the confusion. Your sample completely re-templates the alert which threw us off. Is there a solution without re-templating the entire alert?

    Thanks,
    yonadav
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 21 Apr 2010 Link to this post

    Hello yonadav,

    Yes, there is another way of constraining the length of the text displayed in the Alert. You can set as content of the Alert TextBlock with TextWrapping property set to Wrap:

    RadWindow.Alert(new TextBlock { Text = "Very long long text", Width = 150, TextWrapping = TextWrapping.Wrap });

    Hope this helps.

    If you have any other questions about our controls please feel free to contact us again.

    Greetings,
    Konstantina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. yonadav
    yonadav avatar
    60 posts
    Member since:
    Oct 2009

    Posted 27 Apr 2010 Link to this post

    Hi Konstantina,

    Thank you for this. The solution works well, however we couldn't figure out why the width of 150 was chosen. We've tried 250 and it worked well, too. How should we decide what width to use (this is in Q1 2010)?

    Thanks,
    yonadav
  9. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 29 Apr 2010 Link to this post

    Hello yonadav,

    This width was set just in the sake of the example. You can set whatever width you prefer, which will fit your requirements, there are no limitations.

    If you have any other questions please feel free to contact us again.

    Best wishes,
    Konstantina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for WPF is Visual Studio 2017 Ready