aspose file tools*
The moose likes GWT and the fly likes problems with gwt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "problems with gwt" Watch "problems with gwt" New topic
Author

problems with gwt

Cristina Hernandez
Greenhorn

Joined: Nov 01, 2010
Posts: 4

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
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

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.



My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

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

Joined: Nov 01, 2010
Posts: 4
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems with gwt
 
Similar Threads
data access in grid
nested grid
problems masking a grid panel
Grid in web application
Dynamic Attribute assignment (in Struts)