Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Data validation while pasting on cell
posted

Hi,

I am blocked at xamdatagrid validation for 2 days now. I have exercised your forum's answers but none of them helped me.

I am using a xamcomboeditor on a field, and setting itemsprovider via style using:

<igEditors:ComboBoxItemsProvider
x:Key="ComboItemsProvider"
ItemsSource="{Binding Path=ListOfModels, Source={StaticResource viewModel}}"
DisplayMemberPath="Name"
ValuePath="Id"/>

Problem is that, now if I want to use Clipboard operations, ("ALL"), this cell is accepting anything. Not checking if the item being pasted is available in the list of items.

FYI: I have tried using this: 

<Setter Property="ValueConstraint">
<Setter.Value>
<igEditors:ValueConstraint
Enumeration="{Binding Source={StaticResource ComboItemsProvider}}"/>
</Setter.Value>
</Setter>

 seems like enumeration not binding properly.

PS: I have also tried binding this enumeration with another class that has the same list (which is redundant and not right), but it doesnt work even then.

Please help me out.

Parents Reply Children
No Data