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?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to hide toolbar in Sigma Grid 2.0  (Read 2552 times)
sai
Jr. Member
**
Posts: 10


View Profile
« 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



View Profile
« 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


View Profile
« 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



View Profile
« Reply #3 on: August 04, 2008, 11:27:42 PM »

Currently you can't.  Sad
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


View Profile
« 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?



Currently you can't.  Sad
Logged
steven
Moderator
Hero Member
*****
Posts: 546



View Profile
« Reply #5 on: August 05, 2008, 06:36:53 PM »

The best workaround is change gt_grid.css.
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


View Profile
« Reply #6 on: August 06, 2008, 10:04:54 AM »

Where or How can i set this property (toolbarContext)? Huh
Logged
steven
Moderator
Hero Member
*****
Posts: 546



View Profile
« 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  Smiley.

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


View Profile
« Reply #8 on: August 07, 2008, 03:42:46 PM »

Hi!  Cheesy
I try that, but not work to me...   Huh

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:



By this way, I hide the functions save, chart, filter, reload and the menu...
 
Thanks!   Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!