Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










AJAX :: CollapsiblePanelExtender Does Not Work On Load?


I have a page with two CollapsiblePanelExtender controls on it. The page is a multi-stage process which posts back to itself several times as the user steps through the process. All the page controls, includung the CollapsiblePanelExtenders are in an update panel and the page is derived from a master page.

When the page first loads, the CollapsiblePanelExtenders don't work properly - an open one will close on clicking, as epxected, but they only re-open intermittently and quickly reach a state where they won't re-open at all. However, once a user has initiated a postback by clicking on a form button, they work fine from there on in.

I can't work out what's causing this problem. Simply making the form post back to itself on load doesn't do anything, and neither does running the code that's initiated by the button click. I found - quite by accident - that inserting a StartupScript with an error (any error at all - just insert the the letter "a" in a script tag will do) into the page fixes the problem! But obviously that's not a satisfactory solution.


View 1 Replies (Posted: Jun 23, 2010 10:08 AM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
AJAX :: CollapsiblePanelExtender Not Work In IE?
in DotNetNuke module,i tried CollapsiblePanelExtender, it work fine with FF,it alway explan with IE?

Posted: Jun 09, 2010 06:21 PM

View 1 Replies!   View Related
CollapsiblePanelExtender Doesn't Work With UserControl?
Iam trying to use a UserControl named CheckBoxControl as value for the ExpandControlID/CollapseControlID attributes of the CollapsiblePanelExtender. It works fine when I use a normal CheckBox instead.

<uc:CheckBoxControl ID="ucHaftpflicht" runat="server" OnCheckedChanged="UpdateStatus" ControlLabel="Haftpflicht" />
<asp:Panel ID="HaftpflichtPanel" runat="server">
</asp:Panel>
<asp:CollapsiblePanelExtender ID="CollapsiblePanelExtender" runat="server" CollapseControlID="ucHaftpflicht.CheckBox" ExpandControlID="ucHaftpflicht.CheckBox" TargetControlID="HaftpflichtPanel" />

When I run the site, most ajax controls on my site disappear and I get following errors in firefox script error console:

Fehler: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.
Fehler: Sys.ArgumentException: Failed to find element "ucHaftpflicht.CheckBox"
Parameter name: CollapseControlID

Posted: Mar 2 10 at 10:52

View 1 Replies!   View Related
AJAX :: CollapsiblePanelExtender With Two Checkboxes
I have a problem using checkboxes with CollapsiblePanelExtender. I have two checkboxes, which are Mutually Exclusive.(let's name them cbx1 and cbx2). if cbx2 is checked, panel extends. if it is unchecked, the panel collapse. But my situation is this. When i have cbx2 checked and the panel is extended, and i Check cbx1, because they are mutually exclusive, cbx2 uncheck by himself, but the panel doesn't collapse. This is my problem. How do i make the Panel to collapse?

Posted: Sep 16, 2009 02:35 PM

View 4 Replies!   View Related
AJAX :: CollapsiblePanelExtender And Iframe?
when i put Collapsible panel extender insideiframe(html control) i get thiserror: Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element iam using VS 2008

Posted: May 08, 2010 05:03 PM

View 3 Replies!   View Related
AJAX :: Setting Up CollapsiblePanelExtender?
On the code below, I am having a problem setting up aCPE. When I run the program it does not look like the tutorial. When it collapsis nothing can be seen and the collapased text is not visable anywhere. On the tutorial there is a bar and arrow. Is that something I have to create seperately? Also, what kind of buttons should I use to toggel the panel. I would appreciate it if someone could post code showing how this works.

[Code]....

Posted: Dec 25, 2010 11:19 AM

View 2 Replies!   View Related
AJAX :: CollapsiblePanelExtender ClientState?
I used CollapsiblePanelExtender in a web form and would like to keep its state either collapsed or expanded by user. When user navigates away from the page and then comes back a little bit later, he still see the panel collapsed or extended. codes:formA.aspx:

<asp:Panel ID="panelPetInfoExtender" runat="server" Width="100%">
<span>Pet Information</span>
<asp:Image id="img1" runat="server" ImageUrl="collapse_blue.jpg" />
</asp:Panel>
<asp:Panel ID="panelPetInfo" runat="server">MY PET</asp:Panel>
<asp:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="panelPetInfo" EnableViewState="true" ExpandControlID="panelPetInfoExtender" CollapseControlID="panelPetInfoExtender" Collapsed="true"
ImageControlID="img1" ExpandedImage="collapse_blue.jpg" CollapsedImage="expand_blue.jpg" />

Posted: Jun 25, 2010 03:31 PM

View 8 Replies!   View Related
AJAX :: CollapsiblePanelExtender Extending?
I use two different collapsiblepanelExtenders with similar colapsedControlID which is not a matter here. ince both of them working but with some misbehaviour, for example if the first one is open and I click wherever on it , the second one extends. also by clicking on the second one it collapses.That means that some how an event triggers and makes them collapse or extend.I have a kind of editing panel inside each extandedPanel which are used to update something on the page. the problem is that by clicking on eachtextbox or fileupload, the second panel collapses again. before any other action. So that I can not enter the textboxes. I can do that if I use tab button on keyboard. but that sucks really.

[Code]....

it might be because the second extender is inside the collapsible panel itself. but why it doesn't stay in extended state?

Posted: Sep 30, 2010 02:32 PM

View 1 Replies!   View Related
AJAX :: CollapsiblePanelExtender On Chrome?
I am using CollapsiblePanelExtender with following markup:

[Code]....

The expanded panel contains a table. This works fine in Firefox and IE. However, when the panel is expanded in Chrome, no content is shown or rendered in the expanded state.What could be going wrong here?

Posted: Feb 02, 2011 04:07 PM

View 1 Replies!   View Related
AJAX :: CollapsiblePanelExtender Not Working?
I have4 componentsin mywebsite .

1.) A.aspx
2.) B.aspx
3.) c.ascx
4.) d.js

here is the sample code of my c.ascx

<form
id="form1"
runat="server">

[code]...

Posted: Feb 02, 2010 03:12 PM

View 1 Replies!   View Related
AJAX :: CollapsiblePanelExtender - Cut Off After Postback?
I have a CollapsiblePanelExtender and below a GridView. I click the expand Button and the Panel appears. When a press a PostBack button on the page, either one in the Panel or e.g. one of the Command-Buttons in the GridView, the Panel is cut off some pixels at the bottom, causing the inlayed Textbox not to be completely displayed. Source-Code before and after the postback are identical, so it has to be a JavaScript-Browser issue.

Posted: Oct 30, 2009 06:49 AM

View 4 Replies!   View Related
AJAX :: CollapsiblePanelExtender On Chrome?
have used a CollapsiblePanelExtender on my page.It works fine in IE but when I open it in chrome. It doesn't show contents inside CollapsiblePanelExtender. I am using ajax toolkit with asp.net 3.5

Posted: Jan 14, 2011 05:08 PM

View 4 Replies!   View Related
AJAX :: Collapsiblepanelextender And A TabContainer With Two Tabs?
I have a Collapsiblepanelextender and a TabContainer with two tabs. the code works fine in FF and Chrome but fails in IE8. I am using VS2008 .Net 3.5 and the latest AjaxToolkit.

I am trying to control the collapsible behavior through tab clicking using javascript. here is the code to replicate my problem.

The aspx.cs code:

[Code]....

Posted: Jan 06, 2011 07:00 PM

View 1 Replies!   View Related
AJAX :: CollapsiblePanelExtender Always Expanded In Formview?
I have several CollapsiblePanelExtenders in my formview (both EditTemplate and ItemTemplate). Everything works great, except that they always expand when I move from record to record. I'd like them to keep their previous state (collapsed or expanded). How can I do this with the Formview? Outside the Formview.

Posted: May 21, 2010 10:08 AM

View 6 Replies!   View Related
AJAX :: CollapsiblePanelExtender Extra Div Wrapper?
I have this CollapsiblePanelExtender (below) the problem is that in firefox it gives a horizontal scroll bar under the control which has to expand.

[Code]....

Below is the generated HTML

[Code]....

If I remove the "overflow-y:hidden" from the generated div then the scroll bar goes away, which is what I want....

Posted: Jul 15, 2010 09:53 PM

View 3 Replies!   View Related
AJAX :: CollapsiblePanelExtender With A ModalPopupExtender Window?
I have a page which consists of a CollapsiblePanelExtender. To be specific, I have placed all my controls inside a panel and specified the TargetcontrolID as this panel and this is working perfect..Now,I just included a ModalPopupExtender control in the same pageand specified the PopUpControlID as this same panel.Query1:Can CollapsiblePanelExtender and ModalPopupExtender work together?

I have also specified the CSS for the panel and forModalPopupExtender. Have attached a part of the aspx page below.

[Code]....

Posted: Jan 03, 2011 11:52 AM

View 1 Replies!   View Related
AJAX :: Using Multiple CollapsiblePanelExtender On One Control
I am using multiple CollapsiblePanelExtender on one control,and my required is two CollapsiblePanelExtender should always close on page load whenever i have open last time.I have used CollapsiblePanelExtender.Collapsed=false,CollapsiblePanelExtender.CollapsdSize=0.

Posted: Dec 03, 2009 08:47 PM

View 1 Replies!   View Related
AJAX :: Close CollapsiblePanelExtender Programmatically?
I've read in a few places that this should close a collapsible panel:

To open: cpe1.Collapsed = true; cpe1.ClientState = "true";
To close: cpe1.Collapsed = false; cpe1.ClientState = "false";

But it doesn't seem to work from me...

Posted: Feb 02, 2011 09:21 PM

View 1 Replies!   View Related
AJAX :: CollapsiblePanelExtender Should Disable After Login?
I am using CollapsiblePanel for login. It has 2 text boxes( for user name and password) and one button.

It works perfectly fine.

what I want to do is, if user name and password matches , CollapsiblePanel should stop expanding even user tries to expand it. (just like you can see on www.ilaaka.com here on left side )

Also, text "LOGIN" should get changed to LOGOUT . when user clicks on LOGOUT, again
CollapsiblePanel should get back to its normal state.

Here is my code:

<div align="left">
<asp:ScriptManager ID="ScriptManager1" runat="server"/>
<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1"
Collapsed="true" TextLabelID="Label1"

[Code]....

Posted: Aug 05, 2008 06:19 PM

View 8 Replies!   View Related
AJAX :: Display CollapsiblePanelExtender But It's Not Working?
I am using this to displayCollapsiblePanelExtender but it's not working ad I dont know why? there is no error and it workes when i set theCollapsed to True or False but not working when I run and want the user to click roCollapsed or Expand?

<asp:CollapsiblePanelExtender ID="collapsibleSkills" runat="server" Collapsed="False" TargetControlID="panelSkills" CollapseControlID="lblSkills" ExpandControlID="lblSkills" CollapsedText="[+] Skills :" ExpandedText="[-] Skills :" TextLabelID="lblSkills"
/>

Posted: Dec 05, 2010 01:21 PM

View 2 Replies!   View Related
AJAX :: CollapsiblePanelExtender Content Always Open?
I have a CollapsiblePanelExtender, and although theattribute Collapsed="true", the content panel is initially expanded.

When I click on the associated Header Panel, the Header changes (some text and an image are changed), and the content panel remains expanded. However when I click on the header again, the header changes (back to initial state) but the content panel momentarily collapses and then expands again.

Furthermore, I decided to copy Joe Steigner's demonstration word-for-word, and I get exactly the same result as before!!

Posted: Jul 01, 2010 12:03 PM

View 3 Replies!   View Related
AJAX :: CollapsiblePanelExtender.Collapsed Proberty?
I'm using CollapsiblePanelExtender in my application. I need to retreive its Collapsed proberty during any call back by the code. Always it is equal the initial value. And wether I expand or collapse it it has the same initial value.

Posted: Jun 28, 2007 09:36 PM

View 3 Replies!   View Related
AJAX :: CollapsiblePanelExtender Inside An Asp:Repeater
I have following code:

Main.aspx:

[Code]....
So here I just make my repeater and put a custom control in it.

Message.aspx:

<asp:Panel ID="CommentsPanel" runat="server">

Posted: Mar 23, 2010 06:12 PM

View 3 Replies!   View Related
AJAX :: CollapsiblePanelExtender And Null Error?
We are using CollasiblePanelExtender Ajax control. When opening and closing panel it makes a call to server and puts a value in Session. After about the second click we see this error "AjaxControlToolkit.ControlBase.onsubmitCollection.length is null or not an object."........also error appears spradically when updating.........users say they can update data a field box at a time and then hit update button with no error.........Also this only happens on our Prod box and no other environment.....Its a Intranet site with a small user base of 50-100 users......

Posted: Dec 28, 2009 02:41 PM

View 4 Replies!   View Related
AJAX :: Nest Table Within CollapsiblePanelExtender?
I'm trying to nest a table within a collapsible panel extender but I can't get the panel to collapse/expand with the table in it. If I test the panel by sticking a label in it, it collapses/expands just fine.

Here's the code....

[Code]....

Posted: Dec 28, 2009 06:54 PM

View 2 Replies!   View Related
AJAX :: CollapsiblePanelExtender Are Open For A Second When Pageloads?
I have usedCollapsiblePanelExtender in my web page. whenever I load the page I can see the panels open for a second and then they all close. I want to start the page with them closed.

Posted: Jan 20, 2010 01:47 PM

View 3 Replies!   View Related
AJAX :: Using Validation Group With CollapsiblePanelExtender?
I have one small issue with my page, i have twoCollapsiblePanelExtender in my page and some required field validators are used for the textbox controls that are there within the CollapsiblePanelExtender.And i have also assigned two different validationgroups for all the validators.

Say if first validation group fails to validate then i want to expand the first CollapsiblePanelExtender1, similarly if second validation group fails then i want to expand second CollapsiblePanelExtender2.

Posted: Apr 28, 2010 11:17 AM

View 6 Replies!   View Related
AJAX :: How To Save The State Of A CollapsiblePanelExtender To A Cookie
I have a page that has a few controls inside a CollapsiblePanelExtender. What i need to do is save the state of the CollapsiblePanelExtender so that its easier for the user when they comeback to the page.

How would i go about saving the state of the CollapsiblePanelExtender to a cookie each time its expanded or collapsed?

Posted: May 17, 2010 08:40 PM

View 4 Replies!   View Related
AJAX :: CollapsiblePanelExtender Not Showing Content In Firefox?
I can't seem to get the CollapsiblePanelExtender to show content in Firefoxand the Expand/Collaps image won't show inOpera but it works fine in IE.This is my second time around with the Ajax Tool Kit and I'm really hoping to be productive but I spend way too much time on these seemingly silly type of issues. What could be causing this?Is there something I'm missing?

Posted: Jul 17, 2007 08:14 PM

View 1 Replies!   View Related
AJAX :: Dynamically Collapse And Expand A CollapsiblePanelExtender
Is there a way to dynamically Collapse and Expand a CollapsiblePanelExtender through code? I.e. the codebehind. I have seen several posts with a similar question, but have not seen a solution for it yet, nor can I find anything on Codeplex.

Logically, the 'Collapsed'-property only seems to work on initialization.

Posted: Mar 03, 2007 04:20 PM

View 11 Replies!   View Related
AJAX :: CollapsiblePanelExtender Not Working With Response.write?
i am using CollapsiblePanelExtender andbutton to open pdf document using response.document in same form.CollapsiblePanelExtenderworks fine before i click buttonto open pdf document using response.write andonce iclick on button CollapsiblePanelExtenderdoes not work.

Posted: Feb 28, 2011 02:40 AM

View 2 Replies!   View Related
AJAX :: Panel Is Collapsed By Default By Using CollapsiblePanelExtender
I have a panel having a submit button. Panel is collapsed by default by using CollapsiblePanelExtender. But when i expand it click submit, it gets collapsed again. Hence i want it to be expanded if user has expanded it even on roundtrips? How to remember its state?

Posted: Nov 06, 2009 02:08 PM

View 9 Replies!   View Related
AJAX :: Create Multiple CollapsiblePanelExtender Dynamically?
I have a web page, everything on it is created dynamically in the Page_Load event, and now I wanna create two CollapsiblePanelExtender controls, the web page will always throw en exception said that there are multiple controls with the same ID '_ClientState', although I set their ClientState property withdifferent strings, one is "true" and another is "false", also the ClientState is the same as their own Collapsed property (which is type of boolean). When I just add one, this web page can work correctly, but the exception will always be thrown when I add the both at the same time, how can I solve this problem?

Posted: Mar 05, 2008 07:48 AM

View 7 Replies!   View Related
AJAX :: CollapsiblePanelExtender - Open Only One At The Time Other Close?
If I have 5CollapsiblePanelExtenders on page and I want open second one I want close the first one and then open second one...How??

Posted: Jan 27, 2010 01:32 PM

View 2 Replies!   View Related
AJAX :: Generate CollapsiblePanelExtender Properties Using An Expression?
The CollapsiblePanelExtenderlooks like this:

<cc1:CollapsiblePanelExtender
ID="CPExtender1"
...
CollapsedImage=" [path to image] "
...
/>

I do not know how to do it this way:

<cc1:CollapsiblePanelExtender
ID="CPExtender1"
...
CollapsedImage=" [method call] "
...
/>

I have tried this:

CollapsedImage="<%# Eval( Namespace.Class.GetHelpImage() ) %>"

That DataBinding does not return the path to the image using a method call so I test the GetHelpImage() method call and learn it does not return the path as text.

I knowthe path to the image is correct because I can paste the text into the CollapsiblePanelExtender CollapsedImage propertyand the control will find and display the collapsed image.

// this method call does not return the text for a path
//so I am not even doing this correctly either.
public static string GetHelpImage()
{
return "[known path to image]";
}
// Image to testgettingtext fromGetHelpImage()method call
<asp:Label ID="TestGetImagePathLabel" runat="server"
Text="<%# Eval( GetHelpImage()) %>"/>

I'm doing this all wrong. Where's a blogged example of how to populate the control using an expression?

Posted: Mar 26, 2010 12:38 AM

View 3 Replies!   View Related
AJAX :: CollapsiblePanelExtender Is Not Giving Expected Output?
I m trying to use collapsible panel extenderfrom ajax toolkit in order to collapse and expand gridview.I have written the aspx page for it..butwhen I am running the program i m not able to view the grid in expandable and collapasable form ...it is displayed in a normal way...

I am not gettingwhere i m getting wrong...

here is my aspx page...

[Code]....

Posted: Aug 09, 2010 02:07 PM

View 1 Replies!   View Related
AJAX :: CollapsiblePanelExtender - BIG GAP Between The Master And The Child Extenders
I am populating a table with2 master'CollapsiblePanelExtender's then under each master I have 3 others...
my problem is that I have a BIG GAP between the master and the child extenders code to follow...

[Code]....

Posted: Mar 22, 2010 07:19 PM

View 2 Replies!   View Related
AJAX :: CollapsiblePanelExtender Collapsed=True Not Working?
I am using a CollapsiblePanelExtender inside a ListView and aside from one minor, but annoying problem, it works fine. The problem is, when the page first renders, I see all the panels expanded for a short moment before they all get collapsed. There are multiple CPEs because the ListView is databound to about 45 records. I have the Collapsed=True, and based on some not-quite-clear documentation, I also set the CollapsedSize=0 and the panel's Height=0. After that last change (panel height), they are now displaying collapsed except that the gridviews inside the target panel is still showing in a sort of overlapped way. I'd upload a picture so you can see, but I don't think I can in this forum. Since the page looks like this for about a half-second, it's enough to confuse and annoy my users (and myself). Can someone please help me set this up to truly show collapsed when the page loads?

I did also try looking at the code in the AJAX Toolkit's sample website butI still don't quite understand "Collapsed - Specifies that the object should initially be collapsed or expanded. Set this to match your initial size. In this case, we initially set the panel to a height of 0 to match the CollapsedSize property, so when the page first renders, we don't see the panel expanded." If the options are True/False, why does it say to set this to match your initial size? And I did set the panel height to 0 to match the collapsedsize and it's just not working.

[Code]....

Posted: Mar 30, 2011 08:02 PM

View 3 Replies!   View Related
AJAX :: CollapsiblePanelExtender - Expanding / Collapsing With Javascript?
I want to be able to expand/collapse multipe Collapseable Panels using a Javascript function. This was accomplished in the previous version of Atlas (seehttp://forums.asp.net/thread/1259876.aspx), however, when using this same concept the code below does not recognize the following line of code :

var behavior = $object(ids[i]);
<script
language="javascript"

[code]...

Posted: Nov 03, 2006 02:48 PM

View 4 Replies!   View Related
AJAX :: Get The CollapsiblePanelExtender To Expand If The Value Of The Checkbox Is True?
I have a CollapsiblePanelExtender and it works fine.. but when i retrive that page.. based on the value of the Checkbox i want to expand theCollapsiblePanelExtender. My code is as follows

<tr>
<td
style ="width:30%"></td>

[code]...

Posted: Feb 12, 2008 03:20 PM

View 3 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved