Hello,
I have a page that inherits from compositecontrol and i am trying to load the filter the first time the page loads but i'm getting the following exception:
PS - i am able to load the filter on postback..
I have a page that inherits from compositecontrol and i am trying to load the filter the first time the page loads but i'm getting the following exception:
PS - i am able to load the filter on postback..
Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 537: { Line 538: ((IStateManager)myRadFilter.RootGroup).LoadViewState(DoFilterSerialize(new BL.GPSearchFilterBL(RequestParam.RequestParamIntValue("SID")).SearchFilter)); Line 539: myRadFilter.RecreateControl(); Line 540: Line 541: myRadFilter.FireApplyCommand(); Source File: C:\Projectos\DotNetFramework35\FrameworkSolution\AmbiSIG.GeoPortal.Web.Map.TG\UI\WebControls\ResultsControl\ResultsControl.cs Line: 539 Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] Telerik.Web.UI.RadFilterDataFieldEditor.CreateEditorFrom(RadFilterDataFieldEditor baseEditor) +9 Telerik.Web.UI.RadFilterDataFieldEditorCollection.RetrieveEditorForFieldName(String fieldName) +106 Telerik.Web.UI.RadFilterSingleExpressionItem.SetupFunctionInterface(Control container) +55 Telerik.Web.UI.RadFilterExpressionItem.CreateFunctionalInterface() +72 Telerik.Web.UI.RadFilter.CreateFilterItems() +286 Telerik.Web.UI.RadFilter.CreateControlHierarchy() +13 Telerik.Web.UI.RadFilter.CreateChildControls() +87 System.Web.UI.Control.EnsureChildControls() +87 Telerik.Web.UI.RadFilter.get_RootGroupItem() +21 Telerik.Web.UI.RadFilter.RecreateControl() +12 AmbiSIG.GeoPortal.Web.Map.TG.UI.WebControls.ResultsControl.ResultsControl.DoOnLoad(EventArgs e) in C:\Projectos\DotNetFramework35\FrameworkSolution\AmbiSIG.GeoPortal.Web.Map.TG\UI\WebControls\ResultsControl\ResultsControl.cs:539 AmbiSIG.GeoPortal.Web.UI.BaseCompositeControl.OnLoad(EventArgs e) in C:\Projectos\DotNetFramework35\FrameworkSolution\AmbiSIG.GeoPortal.Web\UI\BaseCompositeControl.cs:109 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627