sheet no visible property sheetcolumn

Community Driven Extensions Project
Post Reply
bug007
Posts: 39
Joined: 07 Oct 2015, 12:08

20 Jul 2018, 15:02

Hi,
I just begining to test prime extension with pe:sheet and there no 'visible' property on sheetcolumn.
I install last version 6.2.7
I would like to find other solution to have data information in the sheet but not visible per row.
I do this small property test for look how can I do this whit css :

Code: Select all

colWidth="0" styleClass="testStyleClass" class="testClass" id="testId"
Result :
width => more than 0 : contain the data
testStyleClass => nowhere
testClass => only on tr>td
testId => nowhere

How can I have a column not visible in the sheet ? Is there a simply way ?
Thanks per advance for your help

User avatar
Melloware
Posts: 1241
Joined: 22 Apr 2013, 15:48

20 Jul 2018, 15:15

So I guess I need to ask your use case. What do you do with the data if its in the sheet but not visible to the user? Do you do something with Javascript on the client side with that invisible data?

And I do not quite understand what doesn't work about colWidth="0" that should effectively hide the column but the data is all still in the sheet.
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.6 / PF Extensions 7.0.2

bug007
Posts: 39
Joined: 07 Oct 2015, 12:08

20 Jul 2018, 15:31

Thanks for your comment Melloware.
Yes you've right, It's to make a javaScript on the client side when a row is selected.

ColWidth='0', right too, this value have no effect if there is data on the column, they still visible on the sheet !

User avatar
Melloware
Posts: 1241
Joined: 22 Apr 2013, 15:48

20 Jul 2018, 15:53

OK let me investigate a way to do this!
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.6 / PF Extensions 7.0.2

User avatar
Melloware
Posts: 1241
Joined: 22 Apr 2013, 15:48

20 Jul 2018, 16:47

Can you try colWidth="1". It looks like "0" HandsonTable removes the column entirely but 1PX its still in the DOM and there.
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.6 / PF Extensions 7.0.2

User avatar
Melloware
Posts: 1241
Joined: 22 Apr 2013, 15:48

20 Jul 2018, 16:52

Also can you create another Issue on the GitHub page requesting a "visible" property on the sheetColumn please?
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.6 / PF Extensions 7.0.2

bug007
Posts: 39
Joined: 07 Oct 2015, 12:08

20 Jul 2018, 18:34

yes, I will do the creation.

for the Width='1', column still in the DOM whit small space, but all action still too => when use tab button, your stop on the cell :(

User avatar
Melloware
Posts: 1241
Joined: 22 Apr 2013, 15:48

20 Jul 2018, 19:06

This will probably still be true with my fix in the code which sets the width to 0.1 pixels so it is not visible but you can still tab to it.

HandsOnTable has a hide columns plugin but its only for PRO users. PrimeFaces Extensions only uses the Community Edition of HT so that plugin is not available.

https://docs.handsontable.com/pro/5.0.0 ... lumns.html
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.6 / PF Extensions 7.0.2

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest