• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

problems with gwt

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

I've found some difficults with gwt, I've been trying to put paging grid into a grouping store but i can't. I can see the paging in the bottom of the list of groups but i want to put paging inside each group and i can't. if somebody has an idea about it, please tell me because i'm lost...
Also I've got another problem hiddind columns of a grid. I set the parameter setHidden in each column to true. But I don't want to see this column when I
push on the drop down button. I try it with css style but I still see the column, what can I do??

I put some code of the column configuration:
ColumnConfig reportDateColumnConfig = new ColumnConfig("",
FIELD_DATE_REPORT, 0, false,null,FIELD_DATE_REPORT);
reportDateColumnConfig.setHidden(true);
reportDateColumnConfig.setCss("overflow: hidden;");

I hope somebody could help.

Thank you very much
 
Bartender
Posts: 2346
102
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to nitpick, this seems to be a GXT not a GWT issue.

Next, the CSS overflow property is not used to hide components,
Overflow means : "What to do when a container's contents exceed it"

1. Hidden : Hide it
2. Scroll : show a scrollbar
3. Visible : show it (This behaves rather peculiarly)


There is another CSS property called display that is used to hide components.

Honestly I dont think you should use CSS here, since its a library and it probably show have a method to hide a column.


 
salvin francis
Bartender
Posts: 2346
102
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

salvin francis wrote:There is another CSS property called display that is used to hide components.



FYI:

display values:
1. block (makes component a block level element)
2. inline (makes component an inline element)
3. none (hides an element)
 
Cristina Hernandez
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply
You were right, the style wasn't correct, but it was the last I tried...
I've tried the other styles, but neither of them works for my purpose.
The class ColumnConfig has a method to hide columns and it's ok, it works fine, but what I want to do is make some invisible because I use it in a grid view (GroupingView) like this:
StringBuilder title = new StringBuilder()
.append("{[values.rs[0].get(\"")
.append(FIELD_DATE_REPORT)
.append("\")]} ");
so for that reason I need the columns with the data, but I don't want the user can see them.
If i don't add the columns to the grid, the view doesn't work and if i add it, the user can see it. so what can I do??
I thought that with css style it could be fine, but I think that the grid panel overwrites this values

Thank you very much
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!