Hi there
I'have a little question about the styling of the IDataErrorInfo support. In some fields, we need to display a button, where the user can click and search for some stuff in an seperate modal window. Without setting this custom style on the field for the CellValuePresenter, the XamDataGrid displays the IDataErrorInfo in a nice way. But as soon, i set this style to the CellValuePresenter, the IDataErrorInfo support does not work for that field.
Can you lead me in the right direction? Didn't found a solution in the Samples...
Please see the attached sample.
To see the different behavior, just comment (or uncomment) lines 92 - 94 in MainWindow.xaml.
Thanks in advance. :)
Took some time, but your solution also works fine in our application. Perfect, thanks!
Regards
Hi Michael
Thank you for your help, it works nicely in the sample. I will try to implement it in our application. And thanks for the default xaml. I will have a look in there.
Hello IBV,
Thank you for contacting Infragistics. You must be careful when retemplating elements because our controls are made up of many individual styles than can easily be overriden. To keep the original behavior intact you must reference and use the default style.
I reattatched your sample that fixes the issue by reinserting the trigger for IDataErrorInfo Support from our default style for CellValuePresenter. Although this works, it's still excluding other pieces of CellValuePresenter that we add. Therefore I've included the default xaml for CellValuePresenter.
Our default styles are installed locally, and you can access them here:C:\Program Files\Infragistics\NetAdvantage 2010.3\WPF\DefaultStyles\DataPresenter
Please refer to my sample for more details and let me know if you have any questions.