CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 Hide Grid

Print topic Send  topic

Author Message
fady005


Posts: 115
Posted: 02/26/2007, 6:54 AM

Hello,
Does anybody know how to hide a grid that doesn't contain any record ?
I think it's a Java Script on the Before Load event but I don't know what's the code to use.
Thanks for your help ;-)
_________________
Be inventive !
View profile  Send private message
miko

Posts: 50
Posted: 02/26/2007, 7:20 AM

please see CCS Help -> Examples and Techniques -> Programming -> Hidding Components section.
_________________
Regards,
Michael
View profile  Send private message
fady005


Posts: 115
Posted: 02/27/2007, 12:57 AM

Thanks for your answer but I don't know how to do this :

# Add Hidden control to the search form.
# Add the appropriate programming code to the Grid's Before Show events.
_________________
Be inventive !
View profile  Send private message
miko

Posts: 50
Posted: 02/27/2007, 1:15 AM

select Grid in Project Explorer
go to property window and select 'Events' tab.
Right click on 'Before Show' server event
Select 'Add code'
insert code

if ( e.getGrid().isEmpty() ) {
e.getGrid().setVisible(false);
}

instead of
/* -------------------------- *
* write your own code here *
* -------------------------- */

_________________
Regards,
Michael
View profile  Send private message
fady005


Posts: 115
Posted: 02/27/2007, 4:51 AM

Great It's working :-D
Thanks for your help.... ;-)
_________________
Be inventive !
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.