Sigma Php Ajax framework, Ajax Components, GUI Builder
February 11, 2012, 07:50:45 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Sigma Php Ajax framework, Ajax Components, GUI Builder
>
Sigma Grid
>
Sigma Grid - Q&A
(Moderators:
steven
,
gbolanoscruz
) >
How to hide toolbar in Sigma Grid 2.0
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to hide toolbar in Sigma Grid 2.0 (Read 2552 times)
sai
Jr. Member
Posts: 10
How to hide toolbar in Sigma Grid 2.0
«
on:
August 02, 2008, 10:50:09 AM »
What is the property to hide the toolbar or java script code to hide at runtime?
Logged
steven
Moderator
Hero Member
Posts: 546
Re: How to hide toolbar in Sigma Grid 2.0
«
Reply #1 on:
August 04, 2008, 12:41:59 AM »
toolbarContext
It's set to 'nav | pagesize | reload | add del save | print | filter chart | info' by default.
If you want to hide add del save button, you can set it to 'nav | pagesize | reload | print | filter chart | info'.
Logged
Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
sai
Jr. Member
Posts: 10
Re: How to hide toolbar in Sigma Grid 2.0
«
Reply #2 on:
August 04, 2008, 09:33:52 AM »
Thanks. Your suggestion will only customize the toolbar. Our requirement is to completely hide the toolbar including paging navigation. We do not want to show the toolbar at all. We need to show just the grid and would like to provide our own UI for paging navigation.
Logged
steven
Moderator
Hero Member
Posts: 546
Re: How to hide toolbar in Sigma Grid 2.0
«
Reply #3 on:
August 04, 2008, 11:27:42 PM »
Currently you can't.
Logged
Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
sai
Jr. Member
Posts: 10
Re: How to hide toolbar in Sigma Grid 2.0
«
Reply #4 on:
August 05, 2008, 08:50:06 AM »
I think its nice to hide the toolbar, but for now we are going to change the height of toolbar to 0 or 1 pixels and do our own paging. Will that approach have any issues?
Quote from: steven on August 04, 2008, 11:27:42 PM
Currently you can't.
Logged
steven
Moderator
Hero Member
Posts: 546
Re: How to hide toolbar in Sigma Grid 2.0
«
Reply #5 on:
August 05, 2008, 06:36:53 PM »
The best workaround is change gt_grid.css.
.gt-toolbar-box { width:100%; position: relative; height:24px; left:0px; bottom:0px; display:none; cursor:default; z-index:15; overflow:hidden; border: 1px solid #cccccc; border-top: 0px; background-image:url(./skin/default/images/footer-bg.gif); background-position : 0px 0px; }
Logged
Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
gbolanoscruz
Moderator
Full Member
Posts: 22
Re: How to hide toolbar in Sigma Grid 2.0
«
Reply #6 on:
August 06, 2008, 10:04:54 AM »
Where or How can i set this property (toolbarContext)?
Logged
steven
Moderator
Hero Member
Posts: 546
Re: How to hide toolbar in Sigma Grid 2.0
«
Reply #7 on:
August 06, 2008, 06:37:20 PM »
Hello gbolanoscruz, thank you for your contribution to this forum first.
The following code may make you feel better
.
var gridOption={ ... toolbarContext : 'nav | pagesize | reload | add del save | print | filter chart | info' , ... }; var mygrid=new Sigma.Grid( gridOption ); Sigma.Util.onLoad( Sigma.Grid.render(mygrid) );
Every word stands for a button. A stick stands for a separator on the tool bar.
Logged
Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
gbolanoscruz
Moderator
Full Member
Posts: 22
Re: How to hide toolbar in Sigma Grid 2.0
«
Reply #8 on:
August 07, 2008, 03:42:46 PM »
Hi!
I try that, but not work to me...
I make it work by this way:
on the grid option, don't call a property named toolbarContext, because that don't work (to me), else I call individually each button of this way:
var gridOption={ .... showGridMenu : false, showSaveTool:false, showChartTool:false, showFilterTool:false, showReloadTool:false, ... }; var mygrid=new Sigma.Grid( gridOption ); Sigma.Util.onLoad( Sigma.Grid.render(mygrid) );
By this way, I hide the functions save, chart, filter, reload and the menu...
Thanks!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News & Announcements
-----------------------------
Sigma Visual GUI Builder & Library
-----------------------------
=> Sigma Visual - Knowledge Share
=> Sigma Visual - Q&A
=> Bug Report & Wishlist
-----------------------------
Sigma Grid
-----------------------------
=> Sigma Grid - Q&A
=> Show Case
=> Bug Report & Wishlist
-----------------------------
Other
-----------------------------
=> AJAX & JavaScript
Loading...