Discussion:
Expandable row in datatable
H***@foxt.com
2009-05-26 12:17:24 UTC
Permalink
Hi,

I need som help with how to create an expandable row in a datatable. The
idea would be to have functionality like an accordion where you click the
table row and it expands to show more details of the object in the current
row.
I've seen different examples of solutions and they all seem to use a
ListView. Is it possible to achieve this using a datatable or am I better
off switching to a dataview?

Thanks.

Håkan
Igor Vaynberg
2009-05-26 16:08:54 UTC
Permalink
datatable is meant to work with columns, if you need to manipulate
rows you are probably better off not using it.

-igor
Post by H***@foxt.com
Hi,
I need som help with how to create an expandable row in a datatable. The
idea would be to have functionality like an accordion where you click the
table row and it expands to show more details of the object in the current
row.
I've seen different examples of solutions and they all seem to use a
ListView. Is it possible to achieve this using a datatable or am I better
off switching to a dataview?
Thanks.
Håkan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
ramlael
2011-05-27 11:32:04 UTC
Permalink
Hey.. I am also looking for same kind of solution.. is any one have idea
about this problem.




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Expandable-row-in-datatable-tp1883838p3555020.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
ramlael
2011-05-30 07:47:39 UTC
Permalink
Is any one know the solution?.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Expandable-row-in-datatable-tp1883838p3560106.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Pedro Santos
2011-05-30 12:16:46 UTC
Permalink
Hi, I easily achieved it using nested ListView components and one line
of JavaScript:

$('.expandableLine').click(function() { $(this).next().toggle(); });
Post by ramlael
Is any one know the solution?.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Expandable-row-in-datatable-tp1883838p3560106.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
Pedro Henrique Oliveira dos Santos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
ramlael
2011-05-30 12:27:59 UTC
Permalink
I need to use Datatable, bcoz need sorting for the columns.

Regards,
Rambabu

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Expandable-row-in-datatable-tp1883838p3560606.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Josh Kamau
2011-05-30 12:54:23 UTC
Permalink
Rambabu,

I did it using a datatable . The last column in the table containts the
expanded area. Try to achieve it with html and javascript first. Then you
can use wicket datatable and panels to put the html pieces together.

Josh.
ramlael
2011-05-30 14:12:23 UTC
Permalink
Hi Josh,
Please can you send the code by using datatable?.

Thanks in advance.


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Expandable-row-in-datatable-tp1883838p3560822.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org

Loading...