Using A user control details row inside a datatable

Using A user control details row inside a datatable

igaligal Posts: 2Questions: 0Answers: 0
edited April 2012 in General
Hi ,
I have a master-details table, where the details need to be editable in the server side.
I've tried two ways to approach this that I can't get to work..

1:
first TR with 4 TDs as the master row ,
second TR with one and inside of it is a user control with the details.
and so on..
e.g
[code]

idName Location Count

.
.
.

[/code]

the reason this doesn't work is when I run the jquery data .dataTable command I get
"DataTables warning (table id = 'resultsTable'): Requested unknown parameter '1' from the data source for row 1"
And I understand it's because of the tr with on td.
is there anyway I can get dataTables to "group" the two rows together and sort by the first one only?

2: the second way I've tried is by creating the details row dynamically in jquery AFTER .dataTable command
and using $.ajax to call a WebMethod that uses LoadControl and returns HTML
(as described here: http://www.aspsnippets.com/Articles/Dynamically-load-and-display-ASPNet-UserControl-using-jQuery-AJAX-and-WebMethod.aspx)

the problem with this is that it seems like the dynamically created control isn't part of the page's lifecycle because
the button in the control's event are fired but not caught in the user control.

I hope I explained my problem well, if not ask and I'll explain further and include my code
thanks!
Igal
This discussion has been closed.