The Calendar show and hide behavior is above. Note: it may be helpful to use an empty label/image for the calendarExtender popupcontrolId to manage show/hide behavior.
// Used for collapsible panels to toggle collapse or open
function CollapsiblePanelExtender_Toggle(behaviorId)
{
var behavior = $find(behaviorId);
if (behavior!=null) {
if (behavior.get_Collapsed()==false) {
try {behavior._doClose();} catch(e) { }
}else if (behavior.get_Collapsed()==true) {
try {behavior._doOpen();} catch(e) { }
}
}
}
// Used for calendar extenders to toggle show or hide
function CalendarExtender_Toggle(behaviorId) {
var behavior = $find(behaviorId);
if (behavior!=null) {
if (behavior._isOpen==true) {
try {behavior.hide();} catch(e) { }
}else if (behavior._isOpen==false) {
try {behavior.show();} catch(e) { }
}
}
}
Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.
Friday, February 15, 2008
How to show and hide CalendarExtender and CollapsiblePanel
Here is the javascript for expanding or collapsing a collapsible panel:
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2008
(54)
-
▼
February
(13)
- Lazy Load Panel Courtesy of TabContainer and Updat...
- Simple and Complex Drilldown for ASP.Net Objects
- Web User Control Library error
- Prevent RadioButtonList from forcing a line break
- Using Web.config hash for variables using add, key...
- Drilling down a nested master page in ASP.NET to r...
- Intercepting return in list menu items in ASP.NET
- FindContol Solution to add Javascript to a control...
- How to show and hide CalendarExtender and Collapsi...
- Understanding Default Values for User Web Controls
- Creating a ListItemCollection Template User Control
- Installing CA Anti-virus with error on open
- Web Control IDs INamingContainer to avoid duplicat...
-
▼
February
(13)
2 comments:
As a Newbie, I am always searching online for articles that can help me. Thank you Wow! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?.
Hiya, I’m really glad I have found this information.
A good web site with exciting content, this makes me can learn more and getting new experience on the cyber world .
Post a Comment