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

Customizing RadWindow.Alert display

8 Answers 179 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Deepak Vasudevan
Top achievements
Rank 2
Deepak Vasudevan asked on 03 Nov 2010, 04:59 PM
Dear Telerik Team,

Can you guide me if I can achieve the following with RadWindow.Alert?

  1. Avoiding the scrollbar for lengthy messages?
  2. Instead of scrollbar squeeze in a newline (Environment.NewLine) rather?

8 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 04 Nov 2010, 09:44 AM
Hello Deepak,

Thank you for contacting us.

To remove the ScrollBar on the Alert window you will have to edit its style. Please refer to the following posts for a sample project: http://www.telerik.com/community/forums/silverlight/window/q1-2010-radwindow-alert.aspx#1171322 

Hope this information helps. If you have any other questions about our controls please do not hesitate 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
Deepak Vasudevan
Top achievements
Rank 2
answered on 04 Nov 2010, 03:48 PM
I am getting an exception with DialogParameters. It says TextWrapping is not supported

Error 1 'Telerik.Windows.Controls.DialogParameters' does not contain a definition for 'TextWrapping' D:\ViewStorage\Ganges_Version5\GangesWeb_WorkflowEngine\Ganges 5 Unified Platform\Ganges\Views\CreateProcessView.xaml.cs 83 21 Ganges
Error 3 'Telerik.Windows.Controls.DialogParameters' does not contain a definition for 'TextWrapping' D:\ViewStorage\Ganges_Version5\GangesWeb_WorkflowEngine\Ganges 5 Unified Platform\Ganges\Views\CreateProcessView.xaml.cs 83 21 Ganges
error CS0117: 'Telerik.Windows.Controls.DialogParameters' does not contain a definition for 'TextWrapping'
Error 1 'Telerik.Windows.Controls.DialogParameters' does not contain a definition for 'TextWrapping' D:\ViewStorage\Ganges_Version5\GangesWeb_WorkflowEngine\Ganges 5 Unified Platform\Ganges\Views\CreateProcessView.xaml.cs 83 21 Ganges

Error 3 'Telerik.Windows.Controls.DialogParameters' does not contain a definition for 'TextWrapping' D:\ViewStorage\Ganges_Version5\GangesWeb_WorkflowEngine\Ganges 5 Unified Platform\Ganges\Views\CreateProcessView.xaml.cs 83 21 Ganges

0
Accepted
Konstantina
Telerik team
answered on 05 Nov 2010, 10:49 AM
Hello Deepak,  

The TextWrapping property is a property of the TextBlock which is inserted in the RadAlert as a Content, as follows:

private void Button_Click(object sender, RoutedEventArgs e) 
        
           RadWindow.Alert(new TextBlock { Text = "Humpty Dumpty sat on a wall. Humpty dumpty had a great fall. All the kings horses and all the kings men couldn't put humpty together again. Jack and Jill went up a hill to fetch a pale of water. Jack fell down and broke his crown", Width=150, TextWrapping= TextWrapping.Wrap }); 
        }

If you experience any other difficulties please let us know.

Kind regards,
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
Michael
Top achievements
Rank 1
answered on 17 Sep 2011, 03:02 PM
Hi
Issue on folowing sentence:
RadWindow.Confirm(new DialogParameters() { Content = "Are you sure you want to delete selected item?" }, OnClosed);

Instead of the message it didplays Telerik.WindowsControls.DialogParameters.
Is there anything wrong that I do?
Thanks for your time!
0
Miroslav Nedyalkov
Telerik team
answered on 21 Sep 2011, 10:03 AM
Hello Dan,

 What version of RadControls for Silverlight do you use? This should be working in the latest internal build and should also be fixed in the upcoming service pack.

All the best,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michael
Top achievements
Rank 1
answered on 22 Sep 2011, 08:45 AM
Hi

Actualy is latest build for WPF - 2011.2.912.35.

Thanks for your interest!
0
Miroslav Nedyalkov
Telerik team
answered on 22 Sep 2011, 10:07 AM
Hello Dan,

 I didn't noticed that you used the signature with the two parameters - its first parameter is the message to be displayed, not the dialog parameters. To use dialog parameters you need to use the signature with a single parameter instead. The DialogParameters class has a property for the Closed callback so you could provide the OnClosed method there. Hope this helps.

Greetings,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michael
Top achievements
Rank 1
answered on 22 Sep 2011, 08:57 PM
Thanks Miroslav
Actualy I'm using OnClose parameter because I'm doing someting if there is an afirmative response.
Therefore the proper way to  do it is:
RadWindow.Confirm(new DialogParameters() { Content = "Are you sure you want to delete selected item?", Closed = OnClosed });
instead of 
RadWindow.Confirm(new DialogParameters() { Content = "Are you sure you want to delete selected item?" }, OnClosed);

Thanks again for your quick response! It was very useful!

Tags
General Discussions
Asked by
Deepak Vasudevan
Top achievements
Rank 2
Answers by
Konstantina
Telerik team
Deepak Vasudevan
Top achievements
Rank 2
Michael
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or