Adding a Button control in the PropertyGrid

4 posts, 0 answers
  1. Dodd
    Dodd avatar
    44 posts
    Member since:
    Dec 2012

    Posted 12 Aug 2013 Link to this post

    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?
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 13 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Dodd
    Dodd avatar
    44 posts
    Member since:
    Dec 2012

    Posted 13 Aug 2013 Link to this post

    What I meant was to bind a button to an Item property.
    I'm attaching a sample image.
    Thanks!
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 14 Aug 2013 Link to this post

    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 >>
Back to Top