Hi team,
this is very cool control, but I am for some reason unable to bind SelectedItems to my VM.
<ig:XamComboEditor EmptyText="Select Region..." IsEnabled="{Binding ElementName=_regionSearch, Path=IsChecked}" Grid.Column="1" SelectedItem="{Binding SelectedRegions, NotifyOnSourceUpdated=True, NotifyOnTargetUpdated=True, UpdateSourceTrigger=PropertyChanged}" IsEditable="False" CheckBoxVisibility="Visible" AllowMultipleSelection="True" ItemsSource="{Binding Regions}"/>
VM
public ObservableCollection<IdentifierDetail> SelectedRegions{
get { return _selectedRegions; }
set {
if (_selectedRegions == null
)
_selectedRegions = new ObservableCollection<IdentifierDetail>();
_selectedRegions = value;
OnPropertyChanged("SelectedRegions");
}}
public class IdentifierDetail { private string idField; private string nameField;
public string Id { get { return this.idField; } set { this.idField = value; } }
public string Name { get { return this.nameField; } set { this.nameField = value; } }
public override string ToString() { if (!string.IsNullOrEmpty(Name)) return Name; return string.Empty; }
public override int GetHashCode() { return ToString().GetHashCode(); }
public override bool Equals(object obj) { IdentifierDetail other = (obj as IdentifierDetail); if (other != null && other.Id != null && other.Name != null) { return Id.Equals(other.Id) && Name.Equals(other.Name); } return false; }
}
Please help me.
thanks
Hello Prinshul,
I can say that the best solution is to use the latest Service Release for 14.1, which includes the fix for this issue. You can download it by logging to our web site and going to Account \Keys & Downloads.
https://es.infragistics.com/my-account/keys-and-downloads/
Hi, Is there a way to handle this a better way in current version 14.1.20141.2062? I want to put temporary fix until we move to new version on infragistics.
thanks a lot.
Seriously, you guys rocks, Infragistics is awesome.
Hello Anant,
I have logged this with development under ID: 173155 and I have also created a support ticket on your behalf: CAS-138243-B0M1V4 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://es.infragistics.com/Membership/MySupport.aspx
hi,
I am using v14.1 (14.1.20141.2062) on Winxp and .net v4.0.
Please note that it thorws exception when you select moer then one checkbox and hen try to delselect it.