I have the following code:
<telerik:GridViewDataColumn DataMemberBinding="{Binding CreatedBy.Name}" Header="Name"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding EventObject.TextData}" Header="User Text"/>
public UserType CreatedBy { get; set; }
public object EventObject { get; set; }
in another class:
public string TextData { get; set; }
In the first column, there is a filter icon, and it filters correctly. However, in the second column, there is no filter icon. Could you explain why this might be and how to resolve the issue?
Hi Ohad,
I have examined this and I am wondering why the EventObject property is of type object. Can't you use a base type that contains the TextData property? For example:
public class EventObjectBase { public string TextData { get; set; } } public class TestEventObject : EventObjectBase { public string TextData2 { get; set; } }
I am looking forward to your reply.