Remove horizontal scroller & grey block

2 posts, 0 answers
  1. Maxim
    Maxim avatar
    12 posts
    Member since:
    Mar 2012

    Posted 24 Apr 2012 Link to this post

    How to remove horizontal scroller on PropertyGrid?
    How to remove grey block left to "SomeString"?
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 24 Apr 2012 Link to this post

    Hello Maxim,

    You can edit the template of PropertyGridField and modify it in the way you want. In you case you need to remove the corresponding border - ControlInnerBorder.
    As for the other requirement, you can try setting Width and TextWrapping of the editing element.

    <telerik:PropertyDefinition Binding="{Binding LastName}" DisplayName="Last Name">
                    <telerik:PropertyDefinition.EditorTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding LastName, Mode=TwoWay}" Width="100" TextWrapping="Wrap" />
                        </DataTemplate>
                    </telerik:PropertyDefinition.EditorTemplate>
     
     
                </telerik:PropertyDefinition>


    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top