Hello,
I have a quick question. I would like to know if it is possible to implement Column Filtering for Hierarchy Data using the NeedDataSource event and the Self-Referencing method for generating the Hierarchy.
In the NeedDataSource event handler I have only this :
This returns a subset of my data and the Grid is displayed fine, with working sorting and paging and hierarchy browsing.
The problem occurs on Filtering, where a AsyncPostbackError exception event is raised with this information for the inner exception property :
Message "Object reference not set to an instance of an object."
Stack Trace :
I read that Hierarchy Filtering is not possible with the basic data binding method calling DataBind(). I am not using that method, so If you could tell me if the approach used is a correct one or the errors I'm getting are triggered by some other problem?
Thanks in Advance.
I have a quick question. I would like to know if it is possible to implement Column Filtering for Hierarchy Data using the NeedDataSource event and the Self-Referencing method for generating the Hierarchy.
In the NeedDataSource event handler I have only this :
RadGrid1.DataSource = ClassLibrary1.Service.Getdata().Where(x => x.Monthdate == DateTime.Parse("2010-12-01 00:00:00.000"));
This returns a subset of my data and the Grid is displayed fine, with working sorting and paging and hierarchy browsing.
The problem occurs on Filtering, where a AsyncPostbackError exception event is raised with this information for the inner exception property :
Message "Object reference not set to an instance of an object."
Stack Trace :
at Telerik.Web.UI.GridColumn.set_CurrentFilterValue(String value)
at Telerik.Web.UI.GridColumn.set_CurrentFilterValue(String value)
at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfte
I read that Hierarchy Filtering is not possible with the basic data binding method calling DataBind(). I am not using that method, so If you could tell me if the approach used is a correct one or the errors I'm getting are triggered by some other problem?
Thanks in Advance.