Unplanned
Last Updated: 09 Oct 2018 08:20 by Dinko
Tino
Created on: 18 Sep 2018 08:05
Category: Window
Type: Feature Request
3
Predefined dialogs text wrap out of box
Provide out of box text wrapping in predefined dialogs.

All Windows messageboxes from Win95 have this possibility. 
Telerik in 2018 does not have this possibility, except through additional templates and additional code. 

Why to buy 
1 comment
Dinko
Posted on: 09 Oct 2018 08:20
Hi, wei chich,

Your suggestion is meaningful and this feature request is approved. Indeed, such functionality would be a good improvement of the RadWindow predefined dialogs.  A solution which can be used until this feature is implemented is to set a TextBlock framework element to the Content property of the predefined dialogs.  To wrap the text the TextWrapping property and the Width property of the TextBlock need to be set. Check the following code snippet.

RadWindow.Alert(new DialogParameters()
			{
				Content = new TextBlock() { MaxWidth=200, TextWrapping = TextWrapping.Wrap, Text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", }
			});

			RadWindow.Prompt(new DialogParameters()
			{
				Content = new TextBlock() { MaxWidth = 200, TextWrapping = TextWrapping.Wrap, Text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", }
			});

			RadWindow.Confirm(new DialogParameters()
			{
				Content = new TextBlock() { MaxWidth = 200, TextWrapping = TextWrapping.Wrap, Text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", }
			});

Regards,
Dinko Krastev