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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing DNN Panels and Expanding ALL by DefaultUsing DNN Panels and Expanding ALL by Default
Previous
 
Next
New Post
1/21/2012 8:24 PM
 

I'm working with the DNNPanels jquery plugin and it is working perfectly.  However, I have a need for all panels to be expanded by default.  Simply adding the CSS class to the one I want expanded does not work, as it only expands the last one

Looking in the Wiki I can't seem to find much.  Anyone have some thoughts?


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
1/31/2012 3:57 PM
 
It looks like there's and expand all plugin for this:

http://www.dotnetnuke.com/Resources/Wiki/Page/dnnExpandAll-jQuery-Plugin.aspx

Have you seen that?
 
New Post
2/27/2012 9:58 AM
 

That only adds a linkbutton at the top, allowing all panels to expand/collapse in one click.

What Mitchel seems to be looking for is if it's possible to have all panels expanded by default, at page-load time, without first having to click anything. I however do believe that the dnnExpandAll-item does account for a good backup-option, in case what Mitchel wants is impossible :)

 
New Post
3/30/2012 6:17 AM
 

jQuery(

 

function ($) {

var setupModule = function () {

$('#panels-demo').dnnPanels();

$('#panels-demo h2 a:not(.dnnSectionExpanded)').click()

$('#panels-demo .dnnFormExpandContent a').dnnExpandAll({

targetArea: '#panels-demo'});

};

setupModule();

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(

function () {

// note that this will fire when _any_ UpdatePanel is triggered,

// which may or may not cause an issue

setupModule();

});

});

 
New Post
5/29/2014 3:19 AM
 
function expandPanelsAtFirst() {
    var clickToToggleSelector = "h2.dnnFormSectionHead a";

    $(clickToToggleSelector).each(function(i, value) {
        var $clickToToggleElement = $(value),
            sectionHeadSelectorCookieId = $clickToToggleElement.parent().attr("id").replace(/[^a-zA-Z0-9\-]+/g, ""),
            panelSettingExists = dnn.dom.getCookie(sectionHeadSelectorCookieId) !== null;

        if (!panelSettingExists)
            $(clickToToggleSelector + ':not(.dnnSectionExpanded)').click();
    });
}
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing DNN Panels and Expanding ALL by DefaultUsing DNN Panels and Expanding ALL by Default


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