473,807 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Collapsible panel Events

65 New Member
i have a grid inside a collapsible panel in my page.

on expand of collapsible panel i want to bind data to grid.
how can i do this?
how to get the events of collapsible panel.

please help

regards,
veena.
Mar 17 '09 #1
5 8068
tlhintoq
3,525 Recognized Expert Specialist
I guess it depends *which* collapsible panel you are talking about.

Is it from the ajaxtool kit?
From CodeProject?

Or is it a .NET 3.5 control I've never used?
Mar 17 '09 #2
veenna
65 New Member
i am using ajaxtool kit.

regrds,
veena
Mar 17 '09 #3
tlhintoq
3,525 Recognized Expert Specialist
Not my area of knowledge.
Anyone else able to help Veenna?
Mar 17 '09 #4
Frinavale
9,735 Recognized Expert Moderator Expert
Well, I don't think this is going to be easy.
Check out this thread for more information...I know the thread refers to a ModalPopupExten der, but the same concepts can be applied to the Collapsible Panel.
Mar 18 '09 #5
veenna
65 New Member
It is possible to bind the grid on expansion of Collapsible panel..

For that add one hidden button and on expand just do postback. and in button event just write code to bind the grid.

Here is the code

Expand|Select|Wrap|Line Numbers
  1.  
  2. <script language="javascript" type="text/javascript">
  3. function pageLoad() 
  4.     {
  5.         //to handle the client event of the ColCandidateRequest
  6.         if($find('<%=ColCandidateRequest.ClientID%>')!=null)
  7.         {
  8.             $find('<%=ColCandidateRequest.ClientID%>').add_expandComplete(postCandidateRequest);
  9.         }
  10.     }
  11.  
  12.  
  13. function postCandidateRequest() 
  14.     {
  15.         var btnName = $get("<%=btnCandidateRequest.ClientID%>").name;
  16.         __doPostBack(btnName,"click");          
  17.     }
  18. </script>
  19.  

Add hidden button
(aspx page )
Expand|Select|Wrap|Line Numbers
  1.  <asp:Button Style="display: none" ID="btnCandidateRequest" OnClick="btnCandidateRequest_Click"
  2.                     runat="server" Text="Button"></asp:Button>
  3.                 <cc1:CollapsiblePanelExtender ID="ColCandidateRequest" runat="server" EnableViewState="true"
  4.                     SuppressPostBack="true" ImageControlID="imgCandSubReq" Collapsed="true" CollapseControlID="PanelCandSubReq"
  5.                     ExpandControlID="PanelCandSubReq" TargetControlID="PanelCandSubReqGrid" TextLabelID="lblCandSubReq" CollapsedText="Show"
  6.                     ExpandedText="Hide">
  7.                 </cc1:CollapsiblePanelExtender>
  8.  

And in the btnCandidateReq uest_Click event write code for binding the grid.

regards,
Veena
Aug 21 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5913
by: ram | last post by:
hi! can you suggest me a collapsible panel/groupbox for winform. thanks!
2
1751
by: probashi | last post by:
Hi, I have couple of AJAX collapsible panels in one of my page. I would like the page to remember the state of the panel (is Expended ) property (i.e. user comes to my page and expands a panel (which was collapsed by default) and leave my page. Next time when the same user comes back, I would like to show the panel expanded (even the default is collapsed)). I believe one can accomplish this using ASP.NET profile.
1
4474
by: probashi | last post by:
Hi, Is there any events associated with collapsible panel related to expand and collapse behavior. I would like to execute some code (either client side or server side) when any of these events happen (i.e. collapsible panel is expended or collapsed) Thanks
5
4237
by: ting ting | last post by:
I am working on a ASP.net 2.0 version and I want to click a button to open a window. I was using window.open to write at vb side. Response.Write("<Script language='JavaScript'>window.open('Report.aspx"')</Script>") It works fine and open the Report.aspx at another window, however, my parent window contains a collapsible panel which can't function after clicking that button. Why is it happen? Can the collapsible panel and window.open...
1
1649
by: mahesh123 | last post by:
I am using Collapsible Panel in my project.But in other form of my project i want to use collapsible panel inside other Collapsible panel.Is it possible. Both panels are to be dinamic.Is it possible can any one help me plz. My requirement is I am having different A's. Under each A Can have different B's. For each B can have diffrent C's.
4
1586
by: Garima12 | last post by:
I have 3 collapsible panel extenders containing other controls on my web page. Initially, I am loading one on page load. I want to collapse other 2 panels on click of any one out of those three as well as want to make the textboxes blank contained by them. Can you suggest me how will it work? thks
0
3809
by: =?Utf-8?B?R2lvcmdpbw==?= | last post by:
Hi, I am having a problem and I need some help. I have a listview with a collapsible panel that has a updatepanel and listview inside updatepanel and I have a button that triggers the collapsible panel and this button is outside the updatepanel. The collapsible panel works well when the button is clicked and expands BUT the updatepanel that is inside the expanded panel does not display the other listview! The trigger for update panel...
0
1937
by: wojski696969 | last post by:
Hi.. I'm using ASP.NET AJAX Control Toolkit. I've got collapsible extender (CE) putted inside of modal popup extender (MPE), and there is a problem if i scroll the page when collapsible area is visible. I mean the shadow under MPE is getting bogger when CE is showing itself, and restores to previouse size after collapsible panel hides, but.. If i show collapsible panel, scroll the page and then hide that panel, the shadow from MPE stays in...
0
1397
by: readbanana | last post by:
I have a collapsible panel that opens and closes with javascript. I also have a link button on the page. I want that when someone clicks on that link, it should open the collapsible panel and focus on a specific button. The problem that I have is that until the panel is open I can't have the panel open I can't have javascript scroll me down and by then it's too late. My collapsible panel is really just a bunch of divs. They are in a user control...
0
9720
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9599
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10626
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10112
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.