Hello,
I use an WebHierarchicalDataGrid with a WebHierarchicalDataSource and 3 ObjectDataSources (3 levels of data). I get the following error most of the time. I am using an evalation version.
Does anyone have the same problem? Is there any workarround?
Thanks
[NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.] Infragistics.Web.UI.Framework.AppStyling.StyleBot.ImageDirectoryResolved() +48 Infragistics.Web.UI.Framework.AppStyling.StyleBot.ResolveImageUrl(String imageUrl, Boolean useCache) +347 Infragistics.Web.UI.Framework.AppStyling.StyleBot.ResolveImageUrl(String imageUrl) +39 Infragistics.Web.UI.Framework.ImageObject.ResolveImageUrl(String url, String defaultUrl) +100 Infragistics.Web.UI.Framework.ImageObject.GetRenderImageUrl() +60 Infragistics.Web.UI.Framework.ImageObject.Render(HtmlTextWriter writer) +225 Infragistics.Web.UI.GridControls.GridBehaviorsImageButton.Render(HtmlTextWriter writer) +71 Infragistics.Web.UI.GridControls.HierarchicalGridRenderer.SetupButton(ContainerGrid grid, Boolean collapsed) +430 Infragistics.Web.UI.GridControls.HierarchicalGridRenderer.BehaviorEvents_BeforeRecordItemsXslRender(Object sender, RenderingRowSelectorXslEventArgs e) +1205 Infragistics.Web.UI.GridControls.GridBehaviorEvents.OnBeforeRecordItemsXslRender(XmlTextWriter writer, String cssClass, String expansionColumnCss) +113 Infragistics.Web.UI.GridControls.GridRenderer.RecordMatch() +780 Infragistics.Web.UI.GridControls.GridRenderer.RecordMatchContent() +44 Infragistics.Web.UI.GridControls.GridRenderer.Frame() +494 Infragistics.Web.UI.GridControls.GridRenderer.GenerateXsl() +205 Infragistics.Web.UI.GridControls.GridRenderer.RenderContents(HtmlTextWriter writer) +1049 Infragistics.Web.UI.GridControls.ContainerGridRenderer.RenderContents(HtmlTextWriter writer) +258 Infragistics.Web.UI.Framework.RunBot.HandleRenderContents(HtmlTextWriter writer, RendererBase renderer) +134 Infragistics.Web.UI.GridControls.WebDataGrid.GetRenderHTML() +178 Infragistics.Web.UI.GridControls.ContainerGrid.Infragistics.Web.UI.GridControls.IXPathDataNavigableObject.get_Xml() +266 Infragistics.Web.UI.GridControls.XPathDataNavigable.GetFirstChild() +43 Infragistics.Web.UI.GridControls.XPathDataNavigator.MoveToFirstChild() +122 Infragistics.Web.UI.GridControls.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +286 Infragistics.Web.UI.GridControls.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +317 Infragistics.Web.UI.GridControls.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +317 Infragistics.Web.UI.GridControls.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +317 Infragistics.Web.UI.GridControls.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +317 Infragistics.Web.UI.GridControls.XPathDataNavigator.get_OuterXml() +199 Infragistics.Web.UI.GridControls.GridRenderer.RenderContents(HtmlTextWriter writer) +1236 Infragistics.Web.UI.GridControls.ContainerGridRenderer.RenderContents(HtmlTextWriter writer) +258 Infragistics.Web.UI.Framework.RunBot.HandleRenderContents(HtmlTextWriter writer, RendererBase renderer) +134 Infragistics.Web.UI.GridControls.WebDataGrid.GetRenderHTML() +178 Infragistics.Web.UI.GridControls.ContainerGrid.Infragistics.Web.UI.GridControls.IXPathDataNavigableObject.get_Xml() +266 Infragistics.Web.UI.GridControls.XPathDataNavigable.GetFirstChild() +43 Infragistics.Web.UI.GridControls.XPathDataNavigator.MoveToFirstChild() +122 Infragistics.Web.UI.GridControls.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +286 Infragistics.Web.UI.GridControls.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +317 Infragistics.Web.UI.GridControls.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +317 Infragistics.Web.UI.GridControls.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +317 Infragistics.Web.UI.GridControls.XPathDataNavigator.OutputToStream(XPathDataNavigator xpdn, XmlTextWriter stream, HtmlTextWriter htmlWriter) +317 Infragistics.Web.UI.GridControls.XPathDataNavigator.get_OuterXml() +199 Infragistics.Web.UI.GridControls.GridRenderer.RenderContents(HtmlTextWriter writer) +1236 Infragistics.Web.UI.GridControls.ContainerGridRenderer.RenderContents(HtmlTextWriter writer) +258 Infragistics.Web.UI.GridControls.HierarchicalGridRenderer.RenderContents(HtmlTextWriter writer) +608 Infragistics.Web.UI.Framework.RunBot.HandleRenderContents(HtmlTextWriter writer, RendererBase renderer) +134 Infragistics.Web.UI.Framework.Data.HierarchicalDataBoundControlMain.RenderContents(HtmlTextWriter writer) +70 Infragistics.Web.UI.Framework.Data.HierarchicalDataBoundControlMain.Render(HtmlTextWriter writer) +39 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 System.Web.UI.Control.Render(HtmlTextWriter writer) +10 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 System.Web.UI.Control.Render(HtmlTextWriter writer) +10 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 System.Web.UI.Page.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
Hello Martin,
Can you give me any steps to reproduce this problem on my machine? What is your page setup like, behaviors you have enabled on the grid..etc? When do you see this error, on initial page load, or when you do any type of interaction with the grid. What CLR version are you using?
Let me know the details so that I can find out what is happening here.
-Taz.
Hello Taz
Thanks for your reply. I use .NET 3.5/CLR 2.0
I have a WebHierarchicalDataSource and 3 ObjectDataSources that are linked in the following way:
ObjectDataSource1.EnvironmentType (enum) =
ObjectDataSource2.EnvironmentType (enum) =
ObjectDataSource2.ComponentType (int) =
ObjectDataSource3.ComponenType (int)
<%@ Page Title="" Language="C#" MasterPageFile="~/PresentationLayer/Dashboard.Master" AutoEventWireup="true" CodeBehind="ActualStatusWebHierarchicalDataGrid.aspx.cs" Inherits="Project.Dashboard.PresentationLayer.ActualStatusWebHierarchicalDataGrid" %><%@ Register assembly="Infragistics35.Web.v10.1, Version=10.1.20101.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.GridControls" tagprefix="ig" %><%@ Register assembly="Infragistics35.Web.v10.1, Version=10.1.20101.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.DataSourceControls" tagprefix="ig" %><asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid1" runat="server" AutoGenerateBands="False" AutoGenerateColumns="False" DataKeyFields="EnvironmentType" DataMember="ObjectDataSource1_DefaultView" DataSourceID="WebHierarchicalDataSource1" Height="350px" Key="ObjectDataSource1_DefaultView" Width="400px"><GroupingSettings><RemoveButton AltText="Ungroup Column"></RemoveButton></GroupingSettings>
<Columns> <ig:BoundDataField DataFieldName="EnvironmentType" Key="EnvironmentType"> <Header Text="EnvironmentType" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="EnvironmentTypeID" Key="EnvironmentTypeID"> <Header Text="EnvironmentTypeID" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Name" Key="Name"> <Header Text="Name" /> </ig:BoundDataField> </Columns>
<CollapseButton AltText="Collapse Row"></CollapseButton>
<ExpandButton AltText="Expand Row"></ExpandButton> <Bands> <ig:Band AutoGenerateColumns="False" DataKeyFields="ComponentType" DataMember="ObjectDataSource2_DefaultView" Key="ObjectDataSource2_DefaultView"> <Bands> <ig:Band AutoGenerateColumns="False" DataMember="ObjectDataSource3_DefaultView" Key="ObjectDataSource3_DefaultView"> <ExpandButton AltText="Expand Row" /> <CollapseButton AltText="Collapse Row" /> <GroupingSettings> <RemoveButton AltText="Ungroup Column" /> </GroupingSettings> <Columns> <ig:BoundDataField DataFieldName="EnvironmentType" Key="EnvironmentType"> <Header Text="EnvironmentType" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="ExtEnvironment" Key="ExtEnvironment"> <Header Text="ExtEnvironment" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="ExtComponentType" Key="ExtComponentType"> <Header Text="ExtComponentType" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="ExtAvailable" Key="ExtAvailable"> <Header Text="ExtAvailable" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="ComponentID" Key="ComponentID"> <Header Text="ComponentID" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="ComponentTypeID" Key="ComponentTypeID"> <Header Text="ComponentTypeID" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Active" Key="Active"> <Header Text="Active" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="ComponentAssocKey" Key="ComponentAssocKey"> <Header Text="ComponentAssocKey" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Available" Key="Available"> <Header Text="Available" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="AvailableMutDate" Key="AvailableMutDate"> <Header Text="AvailableMutDate" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="ErrorCode" Key="ErrorCode"> <Header Text="ErrorCode" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Component" Key="Component"> <Header Text="Component" /> </ig:BoundDataField> </Columns> </ig:Band> </Bands> <ExpandButton AltText="Expand Row" /> <CollapseButton AltText="Collapse Row" /> <GroupingSettings> <RemoveButton AltText="Ungroup Column" /> </GroupingSettings> <Columns> <ig:BoundDataField DataFieldName="ComponentType" Key="ComponentType"> <Header Text="ComponentType" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Name" Key="Name"> <Header Text="Name" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="EnvironmentType" Key="EnvironmentType"> <Header Text="EnvironmentType" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="EnvironmentTypeID" Key="EnvironmentTypeID"> <Header Text="EnvironmentTypeID" /> </ig:BoundDataField> </Columns> </ig:Band> </Bands></ig:WebHierarchicalDataGrid><ig:WebHierarchicalDataSource ID="WebHierarchicalDataSource1" runat="server"> <DataRelations> <ig:DataRelation ChildColumns="EnvironmentType" ChildDataViewID="ObjectDataSource2_DefaultView" ParentColumns="EnvironmentType" ParentDataViewID="ObjectDataSource1_DefaultView" /> <ig:DataRelation ChildColumns="ComponentTypeID" ChildDataViewID="ObjectDataSource3_DefaultView" ParentColumns="ComponentType" ParentDataViewID="ObjectDataSource2_DefaultView" /> </DataRelations> <DataViews> <ig:DataView ID="ObjectDataSource1_DefaultView" DataMember="DefaultView" DataSourceID="ObjectDataSource1" /> <ig:DataView ID="ObjectDataSource2_DefaultView" DataMember="DefaultView" DataSourceID="ObjectDataSource2" /> <ig:DataView ID="ObjectDataSource3_DefaultView" DataMember="DefaultView" DataSourceID="ObjectDataSource3" /> </DataViews></ig:WebHierarchicalDataSource><asp:ObjectDataSource ID="ObjectDataSource3" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetStatusComponents" TypeName="Project.Dashboard.BusinessLayer.EnvironmentDataUniter"> <SelectParameters> <asp:Parameter DefaultValue="true" Name="bIncludeInactiveComponents" Type="Boolean" /> </SelectParameters></asp:ObjectDataSource><asp:ObjectDataSource ID="ObjectDataSource2" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetEnvironmentComponentTypes" TypeName="Project.Dashboard.BusinessLayer.EnvironmentComponentType"></asp:ObjectDataSource><asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetEnvironments" TypeName="Project.Dashboard.BusinessLayer.Environment"></asp:ObjectDataSource> </asp:Content>
I added a zip file with a test project using the WebHierarchicalDataGrid to show data with 3 levels.
I hope that you can find out what is the problem here.
Thank you very much in advance.
Best regards,
Martin
Hello Taz,
I added a VS .NET/C# test project which has the same problem. I hope you can help me with finding a solution, or telling me what I am doing wrong.
Hello Taz.
I'm having the same problem with the 3rd level of data. I'm also working on 3.5 .NET 2.0 CLR.
I'm using a licensed NetAdvantage 2010.1.
Do you have any suggestions?
Thanks and regards,
nmlima