This is a migrated thread and some comments may be shown as answers.

Filter icon doesn't appear on derived classes

1 Answer 106 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kieron
Top achievements
Rank 1
Kieron asked on 11 Sep 2018, 12:22 PM

I have a project which is using a base class (called Job) and two derived classes (Hire & Sales) - which share a lot of properties.  When I add a string property to Hire and bind to that column in a gridview - the filtering icon doesn't appear above the column, however it works fine on when I bind to the base class - I've read that perhaps this is because it can't determine the datatype, but it is just a string.

This is a xaml example of two columns, next to each other, the first column displays the filter icon (SiteLocation is held within base class), the second column (SiteLocation1 held in Hire class) doesn't - they both show the correct data.

<telerik:GridViewDataColumn Header="Location"  UniqueName="Location" DataMemberBinding="{Binding ScheduleItemJob.SiteLocation}" HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}" IsReadOnly="True" CellStyle="{StaticResource GridViewCellStyle}"/>
<telerik:GridViewDataColumn Header="Location1"  UniqueName="Location1" DataMemberBinding="{Binding ScheduleItemJob.SiteLocation1}" HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}" IsReadOnly="True" CellStyle="{StaticResource GridViewCellStyle}"/>

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 14 Sep 2018, 06:08 AM
Hi Kieron,

Thank you for the provided code snippet.

I tried to reproduce this behavior on my side but to no avail. I think I will need more details about the exact structure of your application. I am attaching the sample project which I used to test your scenario. Can you take a look and let me know what I need to modify to reproduce this?

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Kieron
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or