A warning keeps popping up that I am having a hard time debugging
A warning keeps popping up that I am having a hard time debugging
DmainEvent
Posts: 5Questions: 0Answers: 0
LOG: DataTables warning (table id = 'table1'): Unexpected number of TD elements. Expected 70 and got 35. DataTables does not support rowspan / colspan in the table body, and there must be one cell for each row/column combination.
That actually isn't the warning, but it is the error that I find when I run Fiddler to help me debug my aplication.
Why am I getting this? I have two tables, they both perform almost exactly the same way, but one table gives me this error and the other does not? I am dumbfounded. I have a format. for both of them...
Both my tables get there data dynamically. In other words the scripts that creates my page has a loop in it that creates the . Neither one has an extra or . I have no idea why this is happening... If any of you can provide any help at all I would appreciate it.
[quote]
[/quote]
That actually isn't the warning, but it is the error that I find when I run Fiddler to help me debug my aplication.
Why am I getting this? I have two tables, they both perform almost exactly the same way, but one table gives me this error and the other does not? I am dumbfounded. I have a format. for both of them...
Both my tables get there data dynamically. In other words the scripts that creates my page has a loop in it that creates the . Neither one has an extra or . I have no idea why this is happening... If any of you can provide any help at all I would appreciate it.
[quote]
[/quote]
This discussion has been closed.
Replies
The error itself will only appear with a mismatch between number of cells and amount of data being returned, so either the amount of data is wrong or the table is wrong.
In the dynamic code, is it possible that it is creating the first table (correctly), and then when it passes around to create the second table it is ALSO adding more TR/TD to the first table at the same time? Assuming both tables are otherwise identical, this would mean 70 cells in the first one and 35 in the next one.
Do the tables have the same ID? Indeed, on ANY level are there duplicate IDs? Remember, there can only be one unique ID per page.
Greg
IE ActionLink("Second Table", "Action", "Controller").... <-This would link to the next table... But this table is the one having problems...
Name
Population ID
Description
isActive
Population Type
That is my table structure...
Thanks.
D
Allan
Edit
First Name
Last Name
DateOfBirth
Phone
HostpitalFinNumber
AdminDate
MRNType
MRN
PatientRoomPhone
DischargeDateTime
DischargeDisposition
DischargeTo
DischargeAdvocateCall
Payor
HomeHealthCareAccepted
SafeLandingAccepted
PCPName
PCPPhone
SpecialistName
SpecialistPhone
PCPAppointmentDateTime
PCPAppointmentLocation
SpecialistAppointmentDateTime
SpecialistAppointmentLocation
CompletedPathway
CompletedPathwayReason
Comment
<!--Logic for table rows and columns goes in here. -->
Pretty sure I have DataTables 1.8 as well. There isn't any version information on the script file, so its hard to tell. I could try and track down the download. Infact, that is what I will do.
UPDATE: It is indeed DataTables 1.8...