RadPrompt Textbox maxtextlength

2 posts, 0 answers
  1. Paul
    Paul avatar
    114 posts
    Member since:
    May 2009

    Posted 20 Oct 2010 Link to this post

       Is there a way I can set the MaxTextLength of the textbox on the RadPrompt window?

    Also in the latest silverlight 4 version when using the Windows 7 theme the RadPrompt text box is smaller than on the other themes and when you enter text the textbox keeps growing. All other themes work as expected. This also happen on your Alert,Prompt and confirm demo when you set the theme to windows 7.

  2. Dani
    Dani avatar
    848 posts

    Posted 21 Oct 2010 Link to this post

    Hello Paul,

    The TextBox in the Prompt dialog has a MaxLength property which you can set to a chosen number. In order to do that you need to generate the template for RadWindow and inside the template with a TargetType="telerikNavigation:RadPrompt" add this property to the prompt text box.

    The size of the window containing the prompt dialog is a separate item that can be changed. If you wish to limit the width of the dialog , you should add a ScrollViewer around the following ContentControl inside the same Style (snippet taken from Windows7 theme):

    <ContentControl x:Name="PromptText"
    Content="{TemplateBinding Content}" IsTabStop="False" />

    Feel free to  submit any further concerns. We are ready to help if you need further assistance.

    All the best,
    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
Back to Top