I've been working through getting RadFilter to work with our datasource class, derived from EntityDataSource. The RadFilter throws a null ref on apply:
After working through all our modifications to try and figure out what was causing this by process of elimination I was disappointed to find that the RadFilter simply throws it on ANY derived DataSource. All you need to do is create an empty class which extends EntityDataSource, point a RadFilter at it, and it fails to apply with the above exception.
Is there a way to work around this?
[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.Web.UI.RadFilter.ApplyFilterExpressonsOnDataSource() +157
Telerik.Web.UI.RadFilter.HandleApplyCommand() +218
Telerik.Web.UI.RadFilterCommandEventArgsFactory.HandleCommand(RadFilter ownerFilter, Object commandSource, RadFilterCommandEventArgs args) +74
Telerik.Web.UI.RadFilter.OnBubbleEvent(Object source, EventArgs args) +319
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +125
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +167
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
After working through all our modifications to try and figure out what was causing this by process of elimination I was disappointed to find that the RadFilter simply throws it on ANY derived DataSource. All you need to do is create an empty class which extends EntityDataSource, point a RadFilter at it, and it fails to apply with the above exception.
Is there a way to work around this?