We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ICommand binding to a button with CellItemTemplate

Thread ID:

Created:

Updated:

Platform:

Replies:

100693 Aug 25,2011 11:19 AM UTC Sep 13,2011 04:19 PM UTC WPF 2
loading
Tags: GridControl
Bartosz Solarski
Asked On August 25, 2011 11:19 AM UTC

Hi
How to bind a command from the model view to a button with CellItemTemplate. I am using the following xaml code, but the command is not performed.








Best regards,

Bartosz Solarski
COMP Soft Sp. z o.o.
ul. Wojska Polskiego 3
39-300 Mielec





Bartosz Solarski
Replied On August 26, 2011 08:18 AM UTC

Hi

Button did not indicate the correct DataContext. I added a DataContext bound of View where ElementName is the name of View window view. Valid xaml for the button below. It works fine.





Best regards,

Bartosz Solarski
COMP Soft Sp. z o.o.
ul. Wojska Polskiego 3
39-300 Mielec



Ramesh V [Syncfusion]
Replied On September 13, 2011 04:19 PM UTC

Hi Bartosz,

Thanks for your interest in syncfusion products and also sorry for delay.

We have analyzed the reported issue with our sample and we found that while adding a button with DataTemplate in a grid cell, then the added button will not comes under visual tree. So we cannot access the command in the DataTemplate cell.

Please let us know if you have any queries.

Regards,
Ramesh


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;