Having trouble with the SPRadGrid Web Part on Sharepoint 2010

2 posts, 0 answers
  1. Stan
    Stan avatar
    1 posts
    Member since:
    Apr 2014

    Posted 04 Apr 2014 Link to this post

    This is SharePoint 2010 server .I can run the SPRadGrid web part from a Parent site with no trouble accessing a SharePoint list on but when I try the same thing on a child site I get the following errors in the ULS logs.

    ​Application error when access /sites/home/teststan/SitePages/New.aspx, Error=Object reference not set to an instance of an object.
    at Telerik.Ajax.SharePoint.GridSPListTableViewBuilder.BuildGridStructureInternal(SPListBindingStructure tableView, GridTableView gridTableView)
    at Telerik.Ajax.SharePoint.GridSPListTableViewBuilder.BuildDataStructure()
    at Telerik.Ajax.SharePoint.SPListBinder.SetUpGridControlOnInitialLoad()
    at Telerik.Ajax.SharePoint.GridBindingManager.CreateRadGridControl()
    at Telerik.Ajax.SharePoint.TelerikSPRadGridWebPart.CreateRadGridControl()
    at Telerik.Ajax.SharePoint.TelerikSPRadGridWebPart.CreateChildControls()
    at System.Web.UI.Control.EnsureChildControls()
    at Telerik.Ajax.SharePoint.TelerikDataBoundWebPart.OnInit(EventArgs e)
    at System.Web.UI.Control.InitRecursive(Control namingContainer)
    at System.Web.UI.Control.AddedControl(Control control, Int32 index)
    at System.Web.UI.WebControls.WebParts.WebPartManager.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart)
    at System.Web.UI.WebControls.WebParts.WebPartManager.WebPartManagerControlCollection.AddWebPart(WebPart webPart)
    at System.Web.UI.WebControls.WebParts.WebPartManagerInternals.AddWebPart(WebPart webPart)
    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartWithRetry(WebPart webPart)
    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)
    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadWebParts()
    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e)
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.Web.UI.Page.OnInitComplete(EventArgs e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    and

    System.NullReferenceException: Object reference not set to an instance of an object.
    at Telerik.Ajax.SharePoint.GridSPListTableViewBuilder.BuildGridStructureInternal(SPListBindingStructure tableView, GridTableView gridTableView)
    at Telerik.Ajax.SharePoint.GridSPListTableViewBuilder.BuildDataStructure()
    at Telerik.Ajax.SharePoint.SPListBinder.SetUpGridControlOnInitialLoad()
    at Telerik.Ajax.SharePoint.GridBindingManager.CreateRadGridControl()
    at Telerik.Ajax.SharePoint.TelerikSPRadGridWebPart.CreateRadGridControl()
    at Telerik.Ajax.SharePoint.TelerikSPRadGridWebPart.CreateChildControls()
    at System.Web.UI.Control.EnsureChildControls()
    at Telerik.Ajax.SharePoint.TelerikDataBoundWebPart.OnInit(EventArgs e)
    at System.Web.UI.Control.InitRecursive(Control namingContainer)
    at System.Web.UI.Control.AddedControl(Control control, Int32 index)
    at System.Web.UI.WebControls.WebParts.WebPartManager.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart)
    at System.Web.UI.WebControls.WebParts.WebPartManager.WebPartManagerControlCollection.AddWebPart(WebPart webPart)
    at System.Web.UI.WebControls.WebParts.WebPartManagerInternals.AddWebPart(WebPart webPart)
    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartWithRetry(WebPart webPart)
    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)
    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadWebParts()
    at Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e)
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.Web.UI.Page.OnInitComplete(EventArgs e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  2. Marin
    Admin
    Marin avatar
    1045 posts

    Posted 09 Apr 2014 Link to this post

    Hi,

    I tested the described scenario with a web part in child site but could not replicate the issue. You can check the permissions of the child site whether they are the same as the parent site, the type of the parent and child sites, also where exactly is located the SPList that you bind to - in the child site or parent site and if it has any specific settings or fields configured in it.
    This information can help us determine whether there are any specific settings and configuration required to replicate the issue.

    Regards,
    Marin
    Telerik
     
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
     

Back to Top