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

.Alert with long text shows crippled Window

7 Answers 152 Views
Window
This is a migrated thread and some comments may be shown as answers.
Peter Meinl
Top achievements
Rank 1
Peter Meinl asked on 02 Mar 2010, 02:50 PM
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.

7 Answers, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 04 Mar 2010, 04:53 PM
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.
0
yonadav
Top achievements
Rank 1
answered on 15 Apr 2010, 11:01 AM
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
0
Konstantina
Telerik team
answered on 19 Apr 2010, 08:50 AM
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.
0
yonadav
Top achievements
Rank 1
answered on 19 Apr 2010, 12:32 PM
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
0
Konstantina
Telerik team
answered on 21 Apr 2010, 12:35 PM
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.
0
yonadav
Top achievements
Rank 1
answered on 27 Apr 2010, 09:56 AM
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
0
Konstantina
Telerik team
answered on 29 Apr 2010, 04:58 PM
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.
Tags
Window
Asked by
Peter Meinl
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
yonadav
Top achievements
Rank 1
Share this question
or