Hello,
I have just upgraded from WebClient controls version 10.1 to 10.2 and my previous flawless WebHierarchicalDataGrid now breaks after paging with a clientside error from the ajax include file. MicrosoftAjax.debug.js Assembly: System.Web.Extensions Version: 3.5.0.0 FileVersion: 3.5.30729.1
Error is: Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element
At: if (!element) throw Error.argument('element', Sys.Res.createNoDom);
I have a two level parent-child relationship. Paging is set to 25 items. Steps to reproduce: Expand a parent with one page of children works fine. Expand a parent with multiple pages of children works fine for initially. Once I page (click page 2) and result come back fine. The error occurs in trying to expand a parent above the recently paged parent. It consistently errors in the ajax script file.
The tested the same data from the same project one week ago but with the version 10.1 controls and no such error occurs.
As an aside, I am using InitialDataBindDepth of -1. When I change the value to 0 (load on demand) I get the error: "Deserialization failure: Invalid response." This error will occur after expanding a parent with multiple pages of children, expanding a parent with one page of children and then trying to re-expand the parent with multiple children. No paging action is needed to reproduce the error in this scenario.
Anyone please advise as this is a roadblock and a full day of research has come up empty so far.
Thanks,
Charlie
We ran into the same issue. Looking at the changes, we were running the AjaxControlToolkit.dll Version 3.0.20820.0 and upgraded to 4.1.40412.2.
After the upgrade, this error started occuring in the WHGrid without any changes to the code base. We reverted the Tool Kit version and that solved our issue.
Cheers
I am now getting this error as well. Just updated to the latest 10.3 service release (10.3.20103.2187)
I am binding to a datset
Here is the grid, nothing complicated. i even took out the sorting behaviour to see if that was it, but no joy.
<ig:WebHierarchicalDataGrid ID="whdgMatters" runat="server" EnableDataViewState="False" Width="90%" AutoGenerateBands="False" AutoGenerateColumns="False" DataKeyFields="ClientMatter" DataMember="Matters" Key="Matters" InitialDataBindDepth="1" > <Columns> <ig:BoundDataField DataFieldName="CMName" Key="CMName"> <Header Text="Client/Matter Name" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="ClientMatter" Key="ClientMatter"> <Header Text="Client/Matter #" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="BillableTotal" Key="BillableTotal"> <Header Text="Total Billed" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="CallCount" Key="CallCount"> <Header Text="Calls" /> </ig:BoundDataField> </Columns> <Bands> <ig:Band AutoGenerateColumns="False" DataMember="Calls"> <Columns> <ig:BoundDataField DataFieldName="ConferenceDateTime" DataFormatString="{0:G}" Key="ConferenceDateTime"> <Header Text="DateTime" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="HostName" Key="HostName"> <Header Text="Inputted Host" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="HostTelephone" Key="HostTelephone"> <Header Text="Host Phone" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="CallDuration" Key="CallDuration"> <Header Text="Duration" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="AttendeeCount" Key="AttendeeCount"> <Header Text="# Attendees" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="BillableAmt" Key="BillableAmt" DataFormatString="{0:C}"> <Header Text="Amount Charged" /> </ig:BoundDataField> </Columns> </ig:Band> </Bands> </ig:WebHierarchicalDataGrid>
Just to clarify, I get the error when expanding a row.
Is there anything on this? PLEASE? I have tried using this same or even more simplified grid on different pages, using SqlDatasources/WebHierarchicalDatasources, removing columns to just 1 integer in the parent and 1 integer in the child, creating from scratch using the designer, etc. Nothing is working.
I have been experiencing a similar problem with Infragistics 11.2.20112.1019. I am using VS 2010
Here is the scenario:
1. Create a dataset containing 2 datatables with appropriate relationships and primary keys; the columns forming the relationships contain strings representing dates; some of the dates have the form "1-1-2011" while some have the form "1/1/2011".
2. Bind a WebHierarchicalDataGrid to the dataset.
3. Expand the top-level rows. All the top-level rows expand correctly.
4. Add an Ajax Control Toolkit (v 4.0) control to the form (in my case it was a PopupControlExtrender).
5. Run the project again and attempt to expand the row containing the date form "1/1/2011".
6. Observe that an error, "Runtime Exception: [object error]" is displayed.
7. Other rows expand normally.
After some experimentation I determined that a variety of characters (/<&, etc.) will cause this behavior.
I think it is only reasonable to expect that date fields should be able to be used as relationships between parent and child rows and that we should not have to reformat the data to please the grid.
Here is the markup and code-behind:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="HierarchicalGridTest._default"%>
<%
@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
@ Register Assembly="Infragistics4.Web.v11.2, Version=11.2.20112.1019, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"Namespace="Infragistics.Web.UI" TagPrefix="ig" %>
@ Register Assembly="Infragistics4.Web.v11.2, Version=11.2.20112.1019, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"Namespace="Infragistics.Web.UI.GridControls" TagPrefix="ig" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<
head runat="server">
</
head>
body>
<form id="form1" runat="server">
</asp:PopupControlExtender >
<h3>Sample Grid With Expansion</h3>
p>
Note that the second parent row has forward slashes in the data of the first column.
This causes a client error - but only when the Ajax Toolkit has been used - even if the Ajax control(s) are subsequently deleted from the page.
</p>
<ig:WebHierarchicalDataGrid ID="gridReport" runat="server" Height="600px" Width="80%" InitialDataBindDepth="0" InitialExpandDepth="0" >
</ig:WebHierarchicalDataGrid>
</div>
</form>
html>
using System;
using
System.Collections.Generic;
System.Linq;
System.Web;
System.Web.UI;
System.Web.UI.WebControls;
System.Data;
Infragistics.Web.UI;
namespace
HierarchicalGridTest
{
LoadGrid(ds);
}
gridReport.InitializeBand +=
(gridReport_InitializeBand);
gridReport.DataMember = ds.Tables[0].TableName;
gridReport.Key = ds.Tables[0].TableName;
gridReport.DataSource = ds;
gridReport.DataBind();
switch (e.Band.BandIndexAddress)
case "0" :
e.Band.DataKeyFields =
;
break;
case "0_0":
private DataSet
GetDummyReport()
DataSet ds = new DataSet
();
DataTable dt;
dt =
new DataTable("Table1");
dt.Columns.Add(
"MONTH");
"Column2");
"Column3");
dt.Rows.Add(
"1-1-2011", "col2Val1", "col3Val1");
"2/2/2011", "col2Val2", "col3Val2");
"3-3-2011", "col2Val3", "col3Val3");
"4-4-2011", "col2Val4", "col3Val4");
dt.PrimaryKey =
new DataColumn[] { dt.Columns[0] };
ds.Tables.Add(dt);
new DataTable("Table2");
"Column12");
"Column13");
"1-1-2011", "col2Val2", "col3Val2");
"2/2/2011", "col2Val3", "col3Val3");
"3-3-2011", "col2Val4", "col3Val4");
new DataColumn[] { dt.Columns[1] };
ds.Relations.Add(ds.Tables[0].Columns[0], ds.Tables[1].Columns[0]);
return ds;
OK. Figured it out. There was a unicode comma "," in my data, that should not have been there. But what if I have characters like that that should be there?