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

RadDataForm scrolling

3 Answers 214 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 27 Jul 2011, 05:49 PM
Is there a way to disable the RadDataForm's horizontal or vertical scrolling? I've tried this...

<telerik:RadDataForm
            x:Name="PartForm"
            AutoGenerateFields="False"
            CurrentItem="Model"
            EditTemplate="{StaticResource PartFormTemplate}"
            Header="{Binding Model.PartNumber}"
            NewItemTemplate="{StaticResource PartFormTemplate}"
            ReadOnlyTemplate="{StaticResource PartFormTemplate}"
            ScrollViewer.CanContentScroll="False" />

...(note the ScrollViewer.CanContentScroll="False") and it does absolutely nothing. My LoB form has a grid which, among other things, includes two columns - one with a fixed width and the other with a starred width. The starred width column includes a TextBlock where wrapping has been enabled. I need RadDataForm to allow for disabling the horizontal scrolling so that the text actually wraps.

Ideas? Suggestions?

-Greg

3 Answers, 1 is accepted

Sort by
0
Greg
Top achievements
Rank 1
answered on 27 Jul 2011, 06:26 PM
I may very well be exposing my ignorance in the form of the original question (specifically related to the use of ScrollViewer). Let me ask a different way. My question is simply, "How can I get the RadDataForm to simply fill the parent area and disable scrolling?"

-Greg
0
Vanya Pavlova
Telerik team
answered on 28 Jul 2011, 03:03 PM
Hello Greg,



You may predefine the template of RadDataForm and set the scrollbars visibility to Disabled within PART_ItemsScrollViewer. Please find attached sample project that demonstrates how this can be achieved. 


If you need any further assistance let me know.



Best wishes,
Vanya Pavlova
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Mark
Top achievements
Rank 1
answered on 07 Mar 2013, 06:12 PM
Just a note:

I had an issue where text boxes resized when I typed in long text. The RadDataForm scroll bar would appear and allow the resize.

I prevent the resize by setting the MaxWidth in the StackPanel of the DataTemplate
<DataTempate
  <StackPanel MaxWidth="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=ActualWidth }" >



Tags
DataForm
Asked by
Greg
Top achievements
Rank 1
Answers by
Greg
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Mark
Top achievements
Rank 1
Share this question
or