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

RadPropertyGrid custom style for header

3 Answers 267 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
richard
Top achievements
Rank 1
richard asked on 22 Nov 2016, 11:22 AM

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

 

3 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 24 Nov 2016, 02:50 PM
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.
0
richard
Top achievements
Rank 1
answered on 24 Nov 2016, 04:40 PM

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

0
Dilyan Traykov
Telerik team
answered on 25 Nov 2016, 12:29 PM
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.
Tags
PropertyGrid
Asked by
richard
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
richard
Top achievements
Rank 1
Share this question
or