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.0dnn control style vs CSSClass (AJAX)dnn control style vs CSSClass (AJAX)
Previous
 
Next
New Post
1/8/2009 11:37 PM
 

I'm creating a collapsible panel using AJAX in a custom module. It behaves as expected in Firefox, but not in IE7. What I see is that there is some default DNN styling being added to the div element which has height set to auto, and this seems to be overriding my CSSClass where I have height:0px

Firefox shows this as the final CSS sheet:

element.style {
display:block;
height:auto;
overflow-y:hidden;
}

I'm assuming that this must be a default DNN style being applied. What's happening in IE is that when I hit the "collapse" control, the element does collapse for a split second and then immediately expands again. What i see on asp.net is the instruction that a css class must contain the propery and value of height:0px to fix this behavior. but the above height:auto is stopping my cssClass from being effective, I believe.

Can someone tell me how to get around this?

Thanks -


pmgerholdt
 
New Post
1/10/2009 12:38 PM
 

pmgerholdt
 
New Post
1/10/2009 4:44 PM
 

Now I need further help and maybe using a collapsible panel via ajax isn't the right way to do this.

I have data returned from database via query which is being displayed in datalist. Inside the datalist is a child datalist. I don't know how many parent datalists will be created, and for each of them, I don't know how many children datalists will be present (in some cases, none).

I want to make the data in the parent datalist visible upon initial return of data, and all the child data to remain hidden until user hits a control. Kind of like the faq module but faster. How do I dynamically create controls that will make the child panel expand and collapse?


pmgerholdt
 
New Post
1/12/2009 10:04 PM
 

Li'l help would be appreciated. I think all I need to do is fix the properties on this panel extender so they are dynamically created:

cc1:CollapsiblePanelExtender ID="panelExtender"
                                runat="server"
                                TargetControlID="pnlChildServices"
                                CollapsedText="Click to Expand"
                                ExpandedText="Click to Collapse"
                                TextLabelID="lblAction"
                                CollapseControlID="pnlheader"
                                ExpandControlID="pnlHeader"

using the dataeval and getting some values from the context ... because the TargetControlID isn't that, it is whatever DNN renames it in this interation of the datalist ... same for the last three properties. How is that done?


pmgerholdt
 
New Post
1/15/2009 2:25 PM
 

i know this is probably basic and boring but a hint would be appreciated ... I am assuming that I'd be replacing the hardcoded element name with an eval of some sort ... will I also be messing with findcontrol in the codebehind?

I don't do enough .net programming to stay familiar with these things


pmgerholdt
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0dnn control style vs CSSClass (AJAX)dnn control style vs CSSClass (AJAX)


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