Hi Folks !

I have seen this question asked often but with no definitive answer. I would
like to add a "more" link to a row that would expand that row (in place or
insert row just below it) and show more details. I understand it requires
additional Javascript/DIV etc - but I am not familiar with these things. I
like clean interface of displayTag and would like to be able to use it.
Sample that comes closest to what I am looking for is below (it doesn't seem
to use DisplayTag though, uses DWR). Any help would be appreciated.

thanks,

-Sanjay

<script>
    function expand(theRow) {
        var tbody = document.getElementById("tbody");
        var tr = createExpandedRow(theRow);
        
        // insert the expanded row
        tbody.insertBefore(tr, theRow);

        // hide the original row
        theRow.style.display = "none";
    }
</script>

<table>
    <thead>...</thead>
    <tbody>
        <tr onclick="expand(this)" id="..." />...</tr>
        ...    
    </tbody>
</table>
-- 
View this message in context: 
http://www.nabble.com/How-to-expand-collapse-row-tf3727257.html#a10431338
Sent from the DisplayTag - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to