2 posts, 0 answers
  1. David
    David avatar
    48 posts
    Member since:
    Sep 2007

    Posted 10 Feb 2011 Link to this post


    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
  2. Martin
    Martin avatar
    811 posts

    Posted 16 Feb 2011 Link to this post

    Hello David,

    Could you please provide some sample code I can use to build a runnable example that reproduces the issue?

    Best wishes,
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top