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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AJAX Accordion not collapsing / expandigAJAX Accordion not collapsing / expandig
Previous
 
Next
New Post
3/31/2009 1:15 AM
 

Hi there... I hope somebody can help with this:

I'm trying to build a module that uses accordion control from the AJAX Control toolkit to display information, I can create the accordion's panes dynamically but when I click the header of any pane nothing happens, the panes doesn't expand nor collapse. This is the function that creates the panes:

private void CreatePanes()
        {
            GG21_SustainablePoliciesController spCtrl = new GG21_SustainablePoliciesController();
            List<GG21_SustainablePolicy> spCol = spCtrl.Get_SustainablePolicies(DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings().PortalId);
            foreach (GG21_SustainablePolicy sp in spCol)
            {
                AjaxControlToolkit.AccordionPane pane = new AjaxControlToolkit.AccordionPane();
                pane.ID = sp.IdPolicy.ToString();
               
                Literal litHead = new Literal();
                Literal litCont = new Literal();

                litHead.Text = "<a href=\"\" onclick=\"return false;\">" + sp.Title + "</a>";
                litCont.Text = sp.Text;
                pane.HeaderContainer.Controls.Add(litHead);
                pane.ContentContainer.Controls.Add(litCont);
                Accordion1.Panes.Add(pane);

       }

 
New Post
3/31/2009 7:23 AM
 

hey

      i assume this code is written in module control. Please varify that your module is having a dependancy of ajax control toolkit dll in it. refer to adefwebserver's article about how to use ajax control tookit control in dotnetnuke module. Tell me if you are already doing this


Find out code snippets, tutorials and How Tos' about dotnetnuke at lakhlaniprashant.blogspot.com Umlimited wedding planning tips, free wedding websites and more at http://www.FirstPhera.com an indian dotnetnuke portal dedicated to wedding planning!
 
New Post
3/31/2009 3:44 PM
 

 Sorry, the code is written in module control, I have a dependency in the .ascx file, the following lines are in top of that file:

<%@ Control language="C#" Inherits="StudioOne.Modules.GG21_SustainablePolicies.EditGG21_SustainablePolicies" CodeFile="EditGG21_SustainablePolicies.ascx.cs" AutoEventWireup="true"%>
<%@ Register Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls" TagPrefix="cc2" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke.WebControls" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

 
New Post
4/1/2009 1:52 AM
 

Another thing you should make sure is when you install this module, you will find a dependency field in that sections. For instance, if you login to host and go to install additional modules, if you click on edit your module, you will find a text box for dependencies, place AjaxControlToolkit into that box, that will help the module load the toolkit and related resource files automatically, also mark your control's partial rendering to true in Edit control section


Find out code snippets, tutorials and How Tos' about dotnetnuke at lakhlaniprashant.blogspot.com Umlimited wedding planning tips, free wedding websites and more at http://www.FirstPhera.com an indian dotnetnuke portal dedicated to wedding planning!
 
New Post
4/2/2009 7:06 PM
 

I added AjaxControlToolkit dependency in module definition but unfortunately with no success, I deleted the module and added it again to the page and it's the same, nothing happens when I click de header

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0AJAX Accordion not collapsing / expandigAJAX Accordion not collapsing / expandig


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