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

Custom ControlPanelItem

1 Answer 251 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 1
Johannes asked on 01 Aug 2014, 01:55 PM
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?

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 05 Aug 2014, 03:30 PM
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.
 
Tags
GridView
Asked by
Johannes
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or