RadDataForm scrolling

4 posts, 0 answers
  1. Greg
    Greg avatar
    13 posts
    Member since:
    Jun 2011

    Posted 27 Jul 2011 Link to this post

    Is there a way to disable the RadDataForm's horizontal or vertical scrolling? I've tried this...

                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?

  2. Greg
    Greg avatar
    13 posts
    Member since:
    Jun 2011

    Posted 27 Jul 2011 Link to this post

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

  3. Vanya Pavlova
    Vanya Pavlova avatar
    2019 posts

    Posted 28 Jul 2011 Link to this post

    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!

  4. Mark
    Mark avatar
    12 posts
    Member since:
    Jan 2013

    Posted 07 Mar 2013 Link to this post

    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
      <StackPanel MaxWidth="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=ActualWidth }" >

Back to Top