Data Filter and Inheritance

3 posts, 0 answers
  1. Liora
    Liora avatar
    2 posts
    Member since:
    Dec 2013

    Posted 11 Dec 2013 Link to this post

    Hello,

    I'm working with a RadDataFilter and a GridView,  in the following manner:
    XAML :
    <telerik:RadDataFilter Grid.Row="0" x:Name ="radDataFilter_Report" Source="{Binding TaskReportsItemsSource.View }" />
    <dataGrid:ThemeDataGrid  Grid.Row="1" ItemsSource ="{Binding FilteredSource, ElementName= radDataFilter_Report}">

    Where as in the ViewModel:
    private readonly ObservableCollection<IDerivedClass> TaskReportsItemsSource = new ObservableCollection<IDerivedClass>();

    and the DerivedClass is:

    public interface IDerivedClass: IBaseClass1, IBaseClass2, IEquatable<IBaseClass2>, IBaseClass3, INotifyPropertyChanged
    {
    ISomthing Something {get;set;}
    bool IsMessageUnread {get;set;}
    Enum1 ManagerDecision  {get;set;}
    Enum2 Status  {get;set;}
    }
    In the filter fields list I can only see the fields from IDerivedClass and none of any of the base classes

    How can I get all the fields ( the derived  and all base classes)?
    Thanks a lot,
    Liora

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Dec 2013 Link to this post

    Hi Liora,

    I am afraid this is not possible.

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Liora
    Liora avatar
    2 posts
    Member since:
    Dec 2013

    Posted 25 Dec 2013 Link to this post

    Thanks
Back to Top