in xamgrid, I have Converter to convert boolean value to yes/No. But the filter row shows default value "Unknown" and does not filter on typing Yes/No in it.
Another problem: Filter row calls converter multiple times (equal to number of records in XamGrid)
public class YesNoConverter : IValueConverter {
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) return "Unknown";
try { if (value is bool) { var boolValue = (bool) value; return boolValue ? "Yes" : "No"; } return value; } catch (Exception) { return "Unknown"; } }
Hi Gajender,
Thank you for your reply. I have been looking into your issue and you need to declare the ‘ConvertBack’ method in your Value Converter class as suggested in the following forum thread:
http://www.infragistics.com/community/forums/t/70041.aspx
I am attaching a sample application(XamGrid_Converter.zip) that shows this approach.
Let me know, if you need any further assistance on this matter.
Hello Gajender,
I am just checking if you require any further assistance on the matter.