-
1. Re: Risezable column for rich:dataTable
giuliano.rap Sep 25, 2012 8:03 AM (in response to giuliano.rap)PS: Just updating - about Changing to extendedDataTable , when refreshing the page and the table desappears is just the way it should be in one of the pages I was testing. It is not an error.
Anyway, any idea?
Thanks
-
2. Re: Risezable column for rich:dataTable
mcmurdosound Sep 25, 2012 8:41 AM (in response to giuliano.rap)1 of 1 people found this helpfulWell you could extend the rich:dataTable component and columns! by a tablestate feature and visiblity parameters on your own. I've created such a prototype a while ago.
-
3. Re: Risezable column for rich:dataTable
giuliano.rap Sep 26, 2012 7:37 AM (in response to giuliano.rap)Thanks Christian!
It is a good idea :]
But I found a javascript code for this, now I am doing some changes because the code is not for richfaces dataTable.
The problem I am facing now is that I only can get the row from the table, and from the row I get the cell (a part of the column). So I didn't get how to get the whole column. Do you know if it's possible to get the column?
The code is working for the cells at the first row.Here is the javascript:
resizable-tables.js
PS: How can I insert the code here? I am trying at advanced edit but it is not working.
-
4. Re: Risezable column for rich:dataTable
giuliano.rap Sep 28, 2012 4:04 AM (in response to giuliano.rap)Hi Christian
I have handled this with javascript but I realized I need to save the "state" of the columns (the new sizes) and keep it if the user goes through the pages in the table (here we use rich:datascroller). And I did not know how to do this with javascript.
Any idea how to do it with javascript?For this case, I think I need to follow your idea and extend the rich:dataTable.
Can you give me some example you have done? It would be great.Thank you