Hi
I have problems when exiting from edit mode. I need to use filtering using a menu and I set the key property of the column to read-only property, the property will be updated in control which defined in the template.I attached an example to good understanding of my problem. I didn't add the custom control in the template because this issue also appears in more simple way :)
Do you know how can i handle this?
Hello Boris,
You have a template column bound to a read-only property and in the same time you have editing enabled. As a result when you commit a new value the control throws an exception that it cannot save the new value in a read-only property. The binding defined in the editor template is only used to display a value when you start editing. When you commit a new value however the binding in the "Key" property is used. I think this is the reason why you cannot exit from edit mode. You need to either disable editing for this column or define a setter for this property.
Regarding filtering you can read this topic which explains how to create a custom filter if the built-in filtering is not enough for you:https://es.infragistics.com/help/wpf/xamgrid-create-a-custom-filter
Let me know if I may be of any further assistance.
Sincerely,Radko KolevSenior Software Developer
Hi,
Could I stop updating the property which defined the key?
I should use the menu filtering mode, could I setup collection of checkboxes?
The property specified in the key will be updated as long as you have editing enabled for this cell. There is no way to disable the update of the property after a successful editing. You can cancel entering or exiting the edit mode however.
You can add a custom filtering operand only when the filtering row is enabled. The checkbox list you are seeing when the filter menu is selected cannot be changed. It is based on the values of the column. For more information check the link I gave you in my previous post.
If you require any further assistance on the matter, please let me know.
thanks for the answer :)
Thank you for your feedback.