Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1470
System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Web.UI.DataSourceControls.WebHierarchicalDataSource.FindControlRecursive(Control root, String id)
posted

I have an unbound checkbox, template field (with button) and a couple of bound fields.

The grid has AJAX enabled.

Load the data on postback using WebHierarchicalDataSource in code behind.

Check the checkbox of a row = ok

Check the checkbox or another row, a post back occurs and get the error blow.

The Behaviors that are enabled:

  • Editing Core - Cell Editing (to allow checkbox to be checked)
  • Row Selectors - showing row number
  • Selection- Full Row

ERROR

Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Source: System.Web

Stack trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.maintenancescreens_hewitt_retentionmaintenance_aspx.ProcessRequest(HttpContext context) in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\nettraxnet.dev\70a61a39\76f3f529\App_Web_fz2gmtg0.2.vb:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Details: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Web.UI.DataSourceControls.WebHierarchicalDataSource.FindControlRecursive(Control root, String id) at Infragistics.Web.UI.DataSourceControls.WebHierarchicalDataSource.GetOriginalDataSource(String id) at Infragistics.Web.UI.DataSourceControls.WebHierarchicalFlatDataSourceView.get_OriginalDataSource() at Infragistics.Web.UI.DataSourceControls.WebHierarchicalFlatDataSourceView.get_UpdateParameters() at Infragistics.Web.UI.Framework.Data.DataSourceControlAdapter.get_UpdateParameters() at Infragistics.Web.UI.Framework.Data.DataSourceObjectView.get_UpdateParameters() at Infragistics.Web.UI.GridControls.EditingCore.OnAction(String actionType, Object id, Object value, Object tag) at Infragistics.Web.UI.GridControls.GridBehavior.Infragistics.Web.UI.GridControls.IGridBehavior.OnAction(String actionType, Object id, Object value, Object tag) at Infragistics.Web.UI.GridControls.GridBot.LoadAdditionalClientState(Object state) at Infragistics.Web.UI.GridControls.ContainerGridBot.LoadAdditionalClientState(Object state) at Infragistics.Web.UI.Framework.RunBot.HandleRaisePostDataChangedEvent() at Infragistics.Web.UI.GridControls.GridBot.HandleRaisePostDataChangedEvent() at Infragistics.Web.UI.GridControls.ContainerGrid.RaisePostDataChangedEvent() at System.Web.UI.Page.RaiseChangedEvents() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.maintenancescreens_hewitt_retentionmaintenance_aspx.ProcessRequest(HttpContext context) in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\nettraxnet.dev\70a61a39\76f3f529\App_Web_fz2gmtg0.2.vb:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Referencing

Infragistics45.Web.v15.2

Version: 15.2.20152.2042

Parents
No Data
Reply
  • 16310
    Offline posted

    Hi,

    Thank you for posting in the Infragistics community !

    Please make sure that you have jQuery referenced in your page as this is what the error ($ is undefined) hints. Please let me know the result.

Children