Must it be in a separate row? It doesn't make much sense to have details in
a separate row unless you want to show the same columns.
And if you are going to show details for the same columns, then why not just
toggle each of the cell component between a simplified and detailed view?
I do it all the time when editing a table row, I toggle between labels and
form fields to set the contents of the table row.

If you do want to show extra details that do not match the columns in your
table, use a pop-up or modal pop-up.


~ Thank you,
  Paul Bors

-----Original Message-----
From: William Speirs [mailto:[email protected]] 
Sent: Tuesday, October 09, 2012 3:01 PM
To: [email protected]
Subject: Dynamically Toggling a Details Row in a DataTable

I would like to create a component that generates an additional row in a
DataTable for each existing row. This additional row will contain "details"
for the above row. I would like to have a column in the DataTable that
contains a link/button/etc which controls the visibility (display: hidden
for that row) of the details row. Inside the details row, the colspan would
be set to the # of columns and contain an AjaxLazyLoadPanel such that when
the row is displayed the getLazyLoadComponent() method is called, generating
and fetching the proper component.

So the DataTable will look like a normal DataTable, except when you click
the link/button/etc a new row is shown and displays the Component returned
from the call to the getLazyLoadComponent() method.

How would I go about implementing this type of DataTable?

Thanks in advance...

Bill-


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to