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

How to bind to ControlPanelItem button

1 Answer 191 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 23 Oct 2014, 02:23 PM
We're using the ControlPanelItem option on our RadGrids. For actions you want to apply to the grid it's great (e.g. column visibility, filter options). But how can we bubble up the button click to the view model instead? The button's context seems to be bound to the grid and thus captures the click event... how can we tell the button to use the view model instead so that the click can be captured there (we're using Caliburn Micro for binding, but could be anything).

Thanks,

Steve

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 27 Oct 2014, 03:18 PM
Hello Steve,

You could specify a command in your ViewModel to be executed as the user clicks on the button.
Please check the Commands WPF Demo as an example. 


Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Steven
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or