RadPropertyGrid custom style for header

4 posts, 0 answers
  1. richard
    richard avatar
    4 posts
    Member since:
    Oct 2016

    Posted 22 Nov 2016 Link to this post

    Hi,

    i am trying to change the header style of the PropertyGrid (the textbox "searchAsYouTypeTextBox" right and the search ring "Data" left of the textbox). How can i do it? There is no property "Header" to set for the style.

    When i generate style Template for the property grid control i lost my own editor template for my property grid.

    How can i achieve that (only style for property grid header or bind my item into the new generated template for property grid and use another template into?

    Thanks for your help!

    Richard

     

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    587 posts

    Posted 24 Nov 2016 Link to this post

    Hello Richard,

    In order to modify the Header element of the RadPropertyGrid control, you will need to modify its default control template.

    I'm attaching a sample project where I've done this for the Office_Black theme and I've switched the places of the search box and the corresponding buttons. For your convenience, I've also left the default control template (inside the App.xaml file). Still, the custom editor template I've defined remain unchanged.

    Could you please have a look at the attached project and let me know if I've missed something of importance? If I can further assist you in any way, please inform me.

    Regards,
    Dilyan Traykov
    Telerik by Progress
    Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
  3. richard
    richard avatar
    4 posts
    Member since:
    Oct 2016

    Posted 24 Nov 2016 Link to this post

    Hi Dilyan,

    thanks for your tips.

    But it doesn't work like i want...

    When i insert the purposed style the search textbox showed right and es is ok! But all my template inside the RadPropertyGrid.PropertyDefinitions are overrided with your style and the RadPropertyGrid doesn't show any data more!

    her how i set my defined template...

    <telerik:PropertyDefinition.EditorTemplate>
                            <DataTemplate x:Name="dataTypeTemplate" >
                                <Grid>
                                    <StaticResource ResourceKey="comboBoxDataTypes" />
                                </Grid>
                            </DataTemplate>
    </telerik:PropertyDefinition.EditorTemplate>

     

    Without your style it works but the textbox is left...

     

    Thanks and ciao,

    Richard

  4. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    587 posts

    Posted 25 Nov 2016 Link to this post

    Hello Richard,

    Unfortunately, I'm unable to reproduce the aforementioned issue at my end. May I kindly ask you to open a new support ticket and send over a sample project so that I may further investigate and possibly provide you with a solution?

    Thank you in advance for your cooperation and understanding.

    Regards,
    Dilyan Traykov
    Telerik by Progress
    Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
Back to Top