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
330
XamMultiColumnComboEditor Thows an Exception on write characters
posted

When i use the control on this mode:

this.xmceEntities.SelectedItemsResetButtonVisibility = Visibility.Collapsed;
this.xmceEntities.MultiSelectValueDelimiter = ',';
this.xmceEntities.EmptyText = "Seleccione";
this.xmceEntities.AllowMultipleSelection = true;
this.xmceEntities.DisplayMemberPath = this.DisplayMemberPath;
this.xmceEntities.CheckBoxVisibility = Visibility.Visible;

And i write fast random characters (like monkey typing or biting keyboard) the control throws an exception.

System.InvalidCastException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Invalid cast from 'System.String' to 'System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'.</Message><StackTrace>   at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)

at System.String.System.IConvertible.ToType(Type type, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at Infragistics.Controls.Editors.ComboEditorBase`2.AddOrAllowItem(String itemText)
at Infragistics.Controls.Editors.ComboEditorBase`2.ValidateSelection(String text)
at Infragistics.Controls.Editors.ComboEditorBase`2.ProcessEditorText(Boolean allowDropDown, Boolean attemptAutoComplete)
at Infragistics.Controls.Editors.ComboEditorBase`2.ProcessEditorText(Boolean allowDropDown)
at Infragistics.Controls.Editors.ComboEditorBase`2.DelayTracker_Tick(Object sender, EventArgs e)

...

  • 330
    Suggested Answer
    posted

    For some mysterious reasons it never happen again.

  • 138253
    Offline posted

    Hello Javier,

     

    I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

  • 138253
    Verified Answer
    Offline posted

    Hello Javier,

     

    Thank you for your post. I have been looking into it and I created a 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.

    XamMultiColumnComboEditor.zip