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?
Can you guide me if I can achieve the following with RadWindow.Alert?
- Avoiding the scrollbar for lengthy messages?
- Instead of scrollbar squeeze in a newline (Environment.NewLine) rather?
8 Answers, 1 is accepted
0
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
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
Hello Deepak,
The TextWrapping property is a property of the TextBlock which is inserted in the RadAlert as a Content, as follows:
If you experience any other difficulties please let us know.
Kind regards,
Konstantina
the Telerik team
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:
Instead of the message it didplays Telerik.WindowsControls.DialogParameters.
Is there anything wrong that I do?
Thanks for your time!
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
Hello Dan,
Miroslav Nedyalkov
the Telerik team
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!
Actualy is latest build for WPF - 2011.2.912.35.
Thanks for your interest!
0
Hello Dan,
Miroslav Nedyalkov
the Telerik team
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:
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 ofRadWindow.Confirm(new DialogParameters() { Content = "Are you sure you want to delete selected item?" }, OnClosed);
Thanks again for your quick response! It was very useful!