Hello
I have integrated XamColorpicker into my XamDataGrid, as in the example here. The problem is that when I set CellClickAction="SelectRecord" in XamDataGrid.FieldSettings, then EditModeEnded event is not raised when I have selected a color and the row/cell loses focus. The same happens if CellClickAction="SelectCell". Is there a way to solve this problem?
Hello Ajatollah,
Thank you for your post.
I have been investigating the behavior that you have described. It seems that it is expected, because you override the default ValueEditor.
One way to host a control for a cell is to create a custom Template for the cell as part of the CellValuePresenterStyle, it works fine if you are just using this to render the information, but you may lose the base functionalities of ValueEditor. Other approach is to create a custom ValueEditor and use it as the editor for Field. What I can suggest is to take a look at the following blog post by Andrew Smith:
http://www.infragistics.com/community/blogs/andrew_smith/archive/2009/03/27/hosting-wpf-controls-in-a-xamdatagrid-cell.aspx
Where you can read more details about how you can host WPF controls in XamDataGrid.
Please let me know if you need any further assistance on the matter.
I am just checking your progress on the issue that you are having.
If you require any further assistance please do not hesitate to ask.