CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Need to hide all Panels

Print topic Send  topic

Author Message
marcwolf


Posts: 361
Posted: 08/13/2008, 11:06 PM

HI Folks.

I have a large grid that I have surrounded the columns with Panels. I was wondering if there is a programatical way to loop through the Panels setting their visibility to False.

I can then turn them on when required under program control.

Many thanks

Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/14/2008, 4:43 AM

Is setting the panels in the Grid in Design mode initialy Visible:No
an option?
You then just have to do one row, all panels.

And still programaticaly able to turn them on.
Another option is to do this BeforeShow but then you would have to name and set each one.
Messes up your HTML though.

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
marcwolf


Posts: 361
Posted: 08/14/2008, 2:48 PM

Thanks Walter.

What I am trying to do is to create some views with a lot of fields, and then use this to create tables with a lot of columns.

Initially all of the columns are hidden except the first which is the main KEY_ID for the record (and this is also a link). The use can then select which columns they want to be made visible and thus one can make a very flexible listing screen.

Ofcourse - when one gets to about 100 columns manually going through in design time and setting each header and data columm to Visible:No can take some time :>

So I was looking for a quicker solution.


However <thinks> as I do have access to the record set.. and the fields are the same name as the columsn I could programatically get the ASP page to writre the code to hide the panels for me :>,

Take Care

Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message
marcwolf


Posts: 361
Posted: 08/14/2008, 2:49 PM

Hi Walter.

Took about a minute - and yes - I have generated the code needed and cut and pasted it back into the project :>

It works.

Take care

Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/14/2008, 3:20 PM

Fun, good job.
I also thought about opening the .ccs and doing it in text mode search/replace.

'till next time.

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
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.