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.

Databinding to an Accordion

Thread ID:

Created:

Updated:

Platform:

Replies:

123496 Mar 23,2016 02:00 AM Mar 24,2016 09:33 AM ASP.NET Web Forms 1
loading
Tags: Accordion
alavudeen
Asked On March 23, 2016 02:00 AM

How to bind the data in accordian.i want to create a accordian items dynamicaly and add controls dynamically in server side events.

like this 

        SqlConnection sqlConn = new SqlConnection("Data Source=AICS\\SQLEXPRESS;Initial Catalog=ACTP;Integrated Security=True");
        SqlCommand sqlSelect = new SqlCommand("select  [CatName] from [Category] ", sqlConn);
        sqlSelect.CommandType = System.Data.CommandType.Text;
        SqlDataAdapter sqlAdapter = new SqlDataAdapter(sqlSelect);
        DataSet myDataset = new DataSet();
        sqlAdapter.Fill(myDataset); 
        Accordion1.DataSource = myDataset.Tables[0].DefaultView;
        Accordion1.DataBind();

Arun Palaniyandi [Syncfusion]
Replied On March 24, 2016 09:33 AM

Hi Alavudeen,

Thanks for contacting Syncfusion support.

Query:”How to bind the data in accordian.i want to create a accordian items dynamicaly and add controls dynamically in server side events.”


We have a created a sample web application to create accordion items dynamically using SQL server database at code behind.

Please find the sample in the following link:
http://www.syncfusion.com/downloads/support/forum/123496/ze/WebApplication1-603286207


Please let us know if you have any other concerns.


Regards,

Arun P


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.

;