Hello, Is there a way to collapse/expand a cell due to it having too much data?

Hello, Is there a way to collapse/expand a cell due to it having too much data?

ArkianArkian Posts: 2Questions: 1Answers: 0
edited July 2015 in Free community support

I want to see if there is a way to be able to expand/collapse a table if it has too much data, due to extracting data from a CLOB in my DB (all the data is important so I can't really truncate the value) I want to be able to just show a small bit of the data and if desired, expand it by clicking it for example:

Original view:

Col1        |          Col 2             |           Col 3

aaa              bbbbbbbbbbbbb        ccccccc

If I click the row I will see:

Col1        |          Col 2             |           Col 3

aaa              bbbbbbbbbbbbb        ccccccc
                    bbbbbbbbbbbbb
                    bbbbbbbbbbbbb
                    bbbbbbbbbbbbb

Is there such a feature?

Thanks in advance!

Regards,

Arkian

Answers

  • ArkianArkian Posts: 2Questions: 1Answers: 0

    Sorry, the example got screwed up, hopefully the question is well explained without it, if needed to be rewritten please tell me.

  • AshbjornAshbjorn Posts: 55Questions: 2Answers: 16

    Hi Arkian,

    Your best bet would be to grab a jQuery plugin for truncating the text, encapsulate the text inside a specific span element and then use jQuery to enable the truncate on that specific element.

    Hope this helps,

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin

    I wrote an ellipsis data renderer plug-in for DataTables a little while back. I still need to write it up in a blog post, but there are comment sin the file explaining how it works.

    Allan

This discussion has been closed.