Welcome Guest Search | Active Topics | Sign In | Register

CallbackPanel invisible at first load... Options
bobwolf
Posted: Monday, October 6, 2008 5:23:39 PM
Rank: Member
Groups: Member

Joined: 5/31/2008
Posts: 25
Hi guys,

I've a really simple question.
=)

I'm implementing an CallbackPanel in my website.
The CallbackPanel has some default contents.
I need to initialize the CallbackPanel invisible or with height/width = 0 at the first load.

But, i'm having some problems:
1) If I set the CallbackPanel to invisible, the Callback will not work. This is not a option;
2) If I set the CallbackPanel width and height to 0 (zero), when page loads, the CallbackPanel assumes the size of my "default contents". I think that this occurs because the CallbackPanel is a html table. I try to set the initial size of this table by javascript in body.onload, but with no sucess.

Any idea?


tks in advance.
bob.
eo_support
Posted: Monday, October 6, 2008 5:42:28 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can try to use style="display:none" to hide an element without setting its Visible to false. The server side equivalent would be something like this:

Code: C#
Panel1.Style["display"] = "none";


Hope this helps.

Thanks
bobwolf
Posted: Tuesday, October 7, 2008 4:23:36 AM
Rank: Member
Groups: Member

Joined: 5/31/2008
Posts: 25
Thanks for reply!
I'll try this approach.

bob.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.