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

Remove horizontal scroller & grey block

1 Answer 43 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Maxim
Top achievements
Rank 1
Maxim asked on 24 Apr 2012, 10:14 AM
How to remove horizontal scroller on PropertyGrid?
How to remove grey block left to "SomeString"?

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 24 Apr 2012, 04:02 PM
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 >>

Tags
PropertyGrid
Asked by
Maxim
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or