I have had this happen before. It is most likely due to a bad
declaration one of the columns that you created to send back to the
server...
Here is a sample
var dt = new Ajax.Web.DataTable();
// Create the columns
dt.addColumn("BillingType", "System.String");
dt.addColumn("BookingDate", "System.String");
dt.addColumn("EngagementId", "System.String");
dt.addColumn("Status", "System.String");
dt.addColumn("StartDate", "System.String");
dt.addColumn("EndDate", "System.String");
dt.addColumn("LaborLowCost", "System.Double");
dt.addColumn("LaborHighCost", "System.Double");
dt.addColumn("MaterialLowCost", "System.Double");
dt.addColumn("MaterialHighCost", "System.Double");
dt.addColumn("PercentComplete", "System.Double");
dt.addColumn("Comment", "System.String");
// Create the rows
var iLastRow = tblEngagements.rows.length - 1;
// Determine if the row is editable
// The AcctPeriod cell should contain a child, if not exit the loop
var oCell = tblEngagements.rows(iLastRow).cells(mcE_Status);
if (oCell == null) return dt;
if (oCell.getElementsByTagName("SELECT").length > 0)
{
// If we made it here, this must be editable
var drToAdd = new Object();
// If we made it here it us editable
drToAdd.BillingType = GetCellText(tblEngagements,iLastRow, 1,
false,1);
drToAdd.BookingDate = GetCellText(tblEngagements,iLastRow,
mcE_BookingDate, false);
drToAdd.EngagementId = GetCellText(tblEngagements,iLastRow,
mcE_EngagementId, false);
drToAdd.Status = GetCellText(tblEngagements,iLastRow,
mcE_Status,
false);
drToAdd.StartDate = GetCellText(tblEngagements,iLastRow,
mcE_StartDate, false);
drToAdd.EndDate = GetCellText(tblEngagements,iLastRow,
mcE_EndDate,
false);
drToAdd.LaborLowCost = GetCellValue(tblEngagements,iLastRow,
mcE_LowCost, false);
drToAdd.LaborHighCost = GetCellValue(tblEngagements,iLastRow,
mcE_HighCost, false);
drToAdd.MaterialLowCost = GetCellValue(tblEngagements,iLastRow,
mcE_MatLowCost, false);
drToAdd.MaterialHighCost = GetCellValue(tblEngagements,iLastRow,
mcE_MatHighCost, false);
drToAdd.PercentComplete = GetCellValue(tblEngagements,iLastRow,
mcE_Percent, false);
drToAdd.Comment = GetCellText(tblEngagements,iLastRow,
mcE_Comment,
false);
dt.addRow(drToAdd);
}
return dt;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---