Hi,
We are using XAMComboEditor for multiple data selection and we want that at binding time some location should be checked or selected by default.
So as we click on drop down some location should be selected by default.
<ig:XamComboEditor IsEditable="True" Name="LocationComboBox" ItemsSource="{Binding Path= Locationdata}" AllowMultipleSelection="True" KeyDown="LocationComboBox_KeyDown" SelectionChanged="LocationComboBox_SelectionChanged" CheckBoxVisibility="Visible" SelectedValuePath="Location_Id" DisplayMemberPath="Location_Name" Height="40" Width="200">
for that I have added IsSelected property but in XAML error showing IsSelected is not recognize or not accessible.
Please help us for that.
Thanks
Hello kanwar,
Just checking in, did you have any other questions or concerns on this matter?
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
I do not see an attached screenshot, but the IsSelectedMemberPath on the XamComboEditor cannot be bound as it is not a dependency property. In the sample project that I provided to you, I set the IsSelectedMemberPath to point at the IsSelected property on each of the data items in the XamComboEditor - that is, each SampleData object that is contained in the editor.
Would it be possible for you to please provide some more detail on the current behavior that you are seeing in the XamComboEditor?
Thanks for your wonderful support, I have added IsSelectedMemberPath property in XAMComboEditor like this way.
<ig:XamComboEditor IsEditable="True" Name="LocationComboBox" ItemsSource="{Binding Path= Locationdata}" AllowMultipleSelection="True" SelectionChanged="LocationComboBox_SelectionChanged" CheckBoxVisibility="Visible" IsSelectedMemberPath="IsSelectedMemeberPath" SelectedValuePath="Location_Id" DisplayMemberPath="Location_Name" />
and bind IsSelectedMemeberPath property as bool in view model and while adding the item, I have set IsSelectedMemeberPath property true false. But in location comboBox only last location item is showing as selected location.
Please let us aware where I am going to wrong. I have attached result screenshot for that.
Thanks.
Thank you for your post!
To set the default checked items in your XamComboEditor, I would recommend that you set the IsSelectedMemberPath property to point at your IsSelected property on your data item. I have attached a sample project to demonstrate the above.
Please let me know if you have any other questions or concerns on this matter.