Default readonly editortemplate

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    23 posts
    Member since:
    May 2009

    Posted 16 Jan 2013 Link to this post


    Can I override default editortemplate for properties?

    I would like to use TextBox instead of TextBlock on properties, that are readonly (like in VS2012
    I'm using autogenerated scenarios.

    I guess setting editortemplate explicitly in propertydefinition will override editortemplateselector logic as well, which is not desired behaviour
  2. Daniel
    Daniel avatar
    23 posts
    Member since:
    May 2009

    Posted 27 Feb 2013 Link to this post

    You can consider this a a Feature Request.

    There should be a DataTemplate in Telerik.Windows.Controls.Data.xaml for default editor template used by RadPropertyGrid.

    We want to customize the default editor.

    for example replacing the default textbox with following xaml would solve frequented problems with long texts and horizontal scrollbar inside propertygrid:
    <Grid x:Name="editor_root">
     <TextBox Width="{Binding ActualWidth, Source={x:Reference editor_root}}" />

    Setting ScrollViewer.HorizontalScrollbarVisibility="Disabled"  inside RadPropertyGrid controltemplate is bad practice, because it can cause clipping content if there is not enough space.

Back to Top