Sheet readOnly not work ?

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

26 Jul 2018, 11:25

Version 6.2.7
I would like to use readOnly="true" but it is not work for me. is there an issue ?
I can Workarround with readonlyCell ...
Hope this can help.

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

26 Jul 2018, 13:24

I just tested this in the showcase locally with readOnly="true" on the pe:sheet...

Code: Select all

<pe:sheet id="sheet" widgetVar="sheetWidget" value="#{sheetController.assets}" var="row" 
    height="400" rowKey="#{row.assetId}" fixedCols="2" fixedRows="3" showRowHeaders="true"
    resizableCols="true" resizableRows="true" filteredValue="#{sheetController.filteredAssets}"
    sortBy="#{row.assetId}" sortOrder="ascending" readOnly="true">
And the entire sheet is read only and all the cells are grey.
PrimeFaces Developer | 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

26 Jul 2018, 15:26

Yes true, I just test it.
But excuse me, I missing to said it's on sheetcolumn where it not work, it for that I told about readonlyCell !

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

26 Jul 2018, 15:36

OK on sheet column the O is lowercase. readonly instead of readOnly.

Code: Select all

<pe:sheetcolumn headerText="Id (read-only)" 
	                readonly="true" 
	                value="#{row.assetId}" 
	                sortBy="#{row.assetId}" 
	                colWidth="150" 
	                filterBy="#{row.assetId}" />
PrimeFaces Developer | 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

26 Jul 2018, 16:32

Ho Yes, the editor alerte make me wrong ... Now it work

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest