We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Accordion collapsed by default

Thread ID:

Created:

Updated:

Platform:

Replies:

99954 Jun 22,2011 06:47 AM Jun 23,2011 07:13 AM ASP.NET MVC (Classic) 1
loading
Tags: Tools
Sergio Escalada
Asked On June 22, 2011 06:47 AM

Hi, I would like to have an accordion with only one panel, and the panel must be collapsed by default when view is loaded (take a look to the attach). How can I do it?

My ascx has the following code:

...
<%=Html.Syncfusion().Accordion("accordion-name")
.AutoFormat(Skins.Office2007Silver)
.HeaderIcon("search-icon")
.Animate(Effects.slide)
.AutoHeight(true)
.Collapsible(true)
%>

Thanks!



Vignesh [Syncfusion]
Replied On June 23, 2011 07:13 AM

Hi Sergio,

Thanks for using syncfusion products.

We suggest you to use the following code to achieve your requirement.


[Javascript]
Sys.Application.add_load(function () {
$('#accordion-name').accordion({
active: false
});
});



Also I have created a simple sample and attached in the below link,


TreeView467840173.zip

Please try this and let us know if this helps.

Regards,
Vignesh


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;