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

RadPrompt Textbox maxtextlength

1 Answer 95 Views
Window
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 20 Oct 2010, 09:03 PM
Hi
   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.

Thanks

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 21 Oct 2010, 06:26 AM
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,
Dani
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
Tags
Window
Asked by
Paul
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or