Custom ControlPanelItem

2 posts, 0 answers
  1. Johannes
    Johannes avatar
    66 posts
    Member since:
    Dec 2012

    Posted 01 Aug 2014 Link to this post

    I really like the ControlPanel feature of RadGridView and I am already using the two ControlPanelItems that you provide in your demo section (column chooser and settings) and they work nice. Unfortunately you just provide a ControlPanelItem with a RadDropDownButton in its ControlTemplate but what I want is just a RadButton. To achieve this I've copied the ControlPanelItem classes from your RadGridView SourceCode and created a CustomControlPanelItem. I've also copied the template and style of ControlPanelItem and replaced the RadDropDownButton with RadButton (please see attached screenshot). But now I'm stuck at adding a command to that RadButton. The purpose of the button is to refresh the data in the RadGridView. Can you provide some help how to achieve this goal?
  2. Yoan
    Admin
    Yoan avatar
    1214 posts

    Posted 05 Aug 2014 Link to this post

    Hello Johannes,

    I can suggest to check this forum thread where a similar question has already been discussed. You can check the attached sample project which demonstrates how to bind Button's Command property to a command from the ViewModel.

    I hope it helps.

    Regards,
    Yoan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top