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.
I did exactly the same as in sample you gave, but still it's showing invalid value error while selecting any other item from the combobox itself.
Anyways, thanks.
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Hello again,
I modified the sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.
Sorry for late reply.
I tried implementing the converter but that too doesn't help.
Something seems weird here. I hope you have tried my previous comment...
I have been looking into your bindings and I can say the reason for your issue is the items source of the enumeration. As I said in my previous email, you should use a converter to return a list based on the dictionary you bind to the enumeration. You can check my sample, where I implemented this. Please let me know if you need further assistance on this matter.