When you run your samples for the Chart control to look at the 3d pie chart, these errors are thrown. Your code is a pretty simple bind to IEnumerable. What should I do to avoid this when plugging your charts into my app?
System.Windows.Data Error: 23 : Cannot convert '{DisconnectedItem}' from type 'NamedObject' to type 'System.Collections.IEnumerable' for 'en-US' culture with default conversions; consider using Converter property of Binding. NotSupportedException:'System.NotSupportedException: ReferenceConverter cannot convert from MS.Internal.NamedObject.
at System.ComponentModel.TypeConverter.GetConvertFromException(Object value)
at System.ComponentModel.TypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at System.ComponentModel.ReferenceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at MS.Internal.Data.DefaultValueConverter.ConvertHelper(Object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, Boolean isForward)'
System.Windows.Data Error: 6 : 'ObjectSourceConverter' converter failed to convert value '{DisconnectedItem}' (type 'NamedObject'); fallback value will be used, if available. BindingExpression:Path=DataContext; DataItem='LabelLayer' (Name=''); target element is 'LabelLayer' (Name=''); target property is 'ItemsSource' (type 'IEnumerable') NotSupportedException:'System.NotSupportedException: ReferenceConverter cannot convert from MS.Internal.NamedObject.
at MS.Internal.Data.DefaultValueConverter.ConvertHelper(Object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, Boolean isForward)
at MS.Internal.Data.ObjectSourceConverter.Convert(Object o, Type type, Object parameter, CultureInfo culture)
at System.Windows.Data.BindingExpression.ConvertHelper(IValueConverter converter, Object value, Type targetType, Object parameter, CultureInfo culture)'
Anyone know of C# code examples that show a RadDataFilter, RadGridView, and RadDataForm all using the same "Source"?
Something like this?
IEnumerable<MyClass> SomeResults;
SomeResults = GetResults();
MyDataForm.ItemsSource = SomeResults
MyDataFilter.Source = SomeResults;
MyGridView.ItemsSource = SomeResults;
I know in xaml you can do something like this for the grid
{Binding FilteredSource, ElementName=MyDataFilter}
but I have no idea how to pull this off in C# code.
When I scroll my grid, the Dataform does not move. When I select next in my dataform, the Grid selection does not move, and when I apply a filter, nothing gets filtered.
This setup (Filter, Grid, dataform) will be used to display items from multiple sources, therefore I have to do it all in code.
Thanks for any help.
Jeff
currentParagraph.Parent.Children.AddAfter(currentParagraph, newPargraph);xaml = new XamlFormatProvider().Export(richtextbox.Document);