Customizing RadWindow.Alert display

9 posts, 1 answers
  1. Deepak Vasudevan
    Deepak Vasudevan avatar
    82 posts
    Member since:
    May 2010

    Posted 03 Nov 2010 Link to this post

    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?
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 04 Nov 2010 Link to this post

    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
  3. DevCraft banner
  4. Deepak Vasudevan
    Deepak Vasudevan avatar
    82 posts
    Member since:
    May 2010

    Posted 04 Nov 2010 Link to this post

    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

  5. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 05 Nov 2010 Link to this post

    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
  6. Dan
    Dan avatar
    70 posts
    Member since:
    Mar 2007

    Posted 17 Sep 2011 Link to this post

    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!
  7. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Sep 2011 Link to this post

    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 >>

  8. Dan
    Dan avatar
    70 posts
    Member since:
    Mar 2007

    Posted 22 Sep 2011 Link to this post

    Hi

    Actualy is latest build for WPF - 2011.2.912.35.

    Thanks for your interest!
  9. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Sep 2011 Link to this post

    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 >>

  10. Dan
    Dan avatar
    70 posts
    Member since:
    Mar 2007

    Posted 22 Sep 2011 Link to this post

    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!

Back to Top
DevCraft banner