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

Adding a Button control in the PropertyGrid

3 Answers 365 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Dodd
Top achievements
Rank 1
Dodd asked on 13 Aug 2013, 04:53 AM
Hi,
I'm using dynamically generated data for PropertyGrid, bound to property definitions.
What I want to do is to manually add a button control in the PropertyGrid.
How can I manually add a control in code-behind?

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 13 Aug 2013, 06:20 AM
Hello Dodd,

Could you provide a bit more details on your requirement ? Do you want to place a button somewhere in the template of the property grid ? Or you want to bind to bind that button to the Item property of the control ?  

Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Dodd
Top achievements
Rank 1
answered on 13 Aug 2013, 07:45 AM
What I meant was to bind a button to an Item property.
I'm attaching a sample image.
Thanks!
0
Maya
Telerik team
answered on 14 Aug 2013, 07:07 AM
Hi Dodd,

As far as I can see from the image, you want to place buttons in the fields rather than binding a button to the Item property of RadPropertyGrid. If so, you try creating EditorTemplate as illustrated in this article

Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PropertyGrid
Asked by
Dodd
Top achievements
Rank 1
Answers by
Maya
Telerik team
Dodd
Top achievements
Rank 1
Share this question
or