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 ! |
|
|
miko
Posts: 50
|
Posted: 02/26/2007, 7:20 AM |
|
please see CCS Help -> Examples and Techniques -> Programming -> Hidding Components section.
_________________
Regards,
Michael |
|
|
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 ! |
|
|
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 |
|
|
fady005
Posts: 115
|
Posted: 02/27/2007, 4:51 AM |
|
Great It's working
Thanks for your help....
_________________
Be inventive ! |
|
|