Login
Logging in...
Remember me
Log in
Forgot password or user name?
Log in with
Search in titles only
Search in Smart GWT Technical Q&A only
Search
Advanced Search
Forums
Home Page
Overview
Products
Services
Solutions
Contact
Company
Reify
Latest Topics
Today's Posts
Member List
Calendar
Forum
Smart GWT Technical Q&A
You need to login (link above) before you can post. If you do not yet have an account, please
register
.
Announcement
Collapse
No announcement yet.
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Filtered by:
Clear All
new posts
Previous
template
Next
kedavra
Registered Developer
Join Date:
May 2009
Posts:
40
#1
How to hide Header for ListGrid?
21 Jan 2011, 23:48
Hello,
Is there any function to hide a header with all fields under it for ListGrid?
sjivan
Registered Developer
Join Date:
May 2008
Posts:
1534
#2
22 Jan 2011, 03:29
ListGrid.setShowHeader(false). There's a
sample
of it in the Showcase.
Sanjiv
Comment
Post
Cancel
kedavra
Registered Developer
Join Date:
May 2009
Posts:
40
#3
22 Jan 2011, 03:32
Originally posted by
sjivan
ListGrid.setShowHeader(false). There's a
sample
of it in the Showcase.
Sanjiv
Sorry, seems I have not fully described what I want.
For example, I want to hide the headerspan 'Demographics' with fields under it
on this page
.
Comment
Post
Cancel
sjivan
Registered Developer
Join Date:
May 2008
Posts:
1534
#4
22 Jan 2011, 03:40
If you want to hide a header span after the grid has been rendered with the header span, then simply hide the individual fields under the header span.
For example
countryList.hideField("population");
countryList.hideField("area");
countryList.hideField("gdp");
If you are using the latest nightly then you can use the more efficient hideFields method : countryList.hideFields("population", "area", "gdp");
Comment
Post
Cancel
kedavra
Registered Developer
Join Date:
May 2009
Posts:
40
#5
22 Jan 2011, 06:49
Originally posted by
sjivan
If you want to hide a header span after the grid has been rendered with the header span, then simply hide the individual fields under the header span.
For example
countryList.hideField("population");
countryList.hideField("area");
countryList.hideField("gdp");
If you are using the latest nightly then you can use the more efficient hideFields method : countryList.hideFields("population", "area", "gdp");
I hoped I missed a function to manage a headerspan directly. Something like headerSpan.hide("name") or headerSpan.showIf("name") = false.
Thank you for the clarifications.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment