Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDynamically setting visibility of containerDynamically setting visibility of container
Previous
 
Next
New Post
8/17/2006 1:35 PM
 

I already tried coolie, page and none, but the only setting that comes close is the cookie one, that pulling the behaviour I've described.

Thanks in advance Jon..

 

Pepper

 
New Post
8/21/2006 3:13 AM
 

Anyone any ideas ?

Pepper 

 
New Post
8/21/2006 2:05 PM
 

Cookies are annoying...  what we need to do is circumvent their use by re-registering the button and container to use a persistance of Page instead.  Your sample was trying to use invoke a property that was supposed to pass in the min/max button reference.  You were passing this  (the usercontrol).   Obtaining the reference to the button and content pane is a little tricky but can be done.

By hooking to the page's prerender event we can code something that occurs after the minmax logic is hooked up, thus allowing us to override it.

private void Page_PreRender(object sender, System.EventArgs e)

{

System.Web.UI.Control parent = this.Parent.Parent.Parent;

System.Web.UI.Control btn = DotNetNuke.Common.Globals.FindControlRecursiveDown(parent, "cmdVisibility");

System.Web.UI.Control content = DotNetNuke.Common.Globals.FindControlRecursiveDown(parent, "ModuleContent");

DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(btn, content, this.ModuleId, this.ModuleConfiguration.Visibility == VisibilityState.Minimized, DotNetNuke.UI.Utilities.DNNClientAPI.MinMaxPersistanceType.Page);

}

This will default the min/max state to the value found within the modules visibility property.  So in your case the click event should simply do this.

private void bntTriggerImc_Click(object sender, System.EventArgs e)

{

this.ModuleConfiguration.Visibility = VisibilityState.Minimized;

 

 

 


 
New Post
8/22/2006 3:48 AM
 

Thanks Jon!!

It's amazing!!! (big  on my face!)

Pepper

 
New Post
12/6/2006 9:11 AM
 
When using this solution, It works fine after the IMC is triggered for the first time. the module is being minimized. Only two more issues:

1: the button on the top right side of the module doesn't change to the maximize button, even when you manually minimize / maximize the container.

2: when the module is maximized manually, the module does not collapse after the IMC request is triggered.

What to do ? I could use some help
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDynamically setting visibility of containerDynamically setting visibility of container


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out