Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

Scrollbars for multiline RadMaskedTextInput

$
0
0
Hi Chad,

You can use the following implicit style to enable vertical scrollbar in RadMaskedTextInput for example:

<telerik:RadMaskedTextInput Mask="" Width="150" MaxHeight="100">
                      <telerik:RadMaskedTextInput.TextBoxStyle>
                          <Style TargetType="telerikMaskedInput:PreviewInputTextBox" BasedOn="{StaticResource MaskedInputTextBoxStyle}">
                              <Setter Property="TextWrapping" Value="Wrap" />
                              <Setter Property="Width" Value="100" />
                              <Setter Property="AcceptsReturn" Value="False" />
                              <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Visible"/>
                          </Style>
                      </telerik:RadMaskedTextInput.TextBoxStyle>
                  </telerik:RadMaskedTextInput>


This requires that you are using NoXAML binaries and our implicit styles theming mechanism so that yo can inherit the MaskedInputTextBoxStyefrom our themes (by using the BasedOn property). You can find more information about the mentioned approach here.

Regards,
Evgenia
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.

Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>