PC Review


Reply
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average.

binding datatable to accordion control

 
 
David Lazos
Guest
Posts: n/a
 
      1st Jul 2008
Hi,

I'm using the HeaderTemplate and the ContentTemplate of the Accordion
control and binding it to a DataTable.
But it doesn't display any data. If i bind the same datatable to a datalist
it works well as expected.
Are there any tricks for Accordion Control ?
the .aspx code ;
****************
<cc1:Accordion ID="Accordion1" runat="server" FadeTransitions="True"
SelectedIndex="0" TransitionDuration="300" HeaderCssClass="accordionHeader"
ContentCssClass="accordionContent">
<Panes>
</Panes>
<HeaderTemplate>
<a href="" onclick="return false;"><%# Eval("HEADER")%></a>
</HeaderTemplate>
<ContentTemplate>
<%# Eval("CONTENT") %>
</ContentTemplate>
</cc1:Accordion>
****************

and i bind it on page_load event of aspx.cs
****************
protected void Page_Load(object sender, EventArgs e)
{
Accordion1.DataSource = for_using.getInfo(); //it returns a DataTable
Accordion1.DataBind();
}
*****************

am i doing something wrong ?

Thanks...


 
Reply With Quote
 
 
 
 
David Lazos
Guest
Posts: n/a
 
      1st Jul 2008
i have just found this trick
http://www.codeplex.com/AjaxControlT...rkItemId=10472



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
binding datatable to accordion control David Lazos Microsoft ASP .NET 1 1st Jul 2008 10:25 AM
Databound AjaxControlToolKit Accordion Control: How to access Controls anjali.lourda@gmail.com Microsoft ASP .NET 1 20th Jul 2007 09:33 AM
ajax accordion control =?Utf-8?B?R2VyaGFyZA==?= Microsoft Dot NET 4 21st Jun 2007 03:20 PM
Accordion Control - Can't read checkbox values noneya22@excite.com Microsoft ASP .NET 1 29th May 2007 09:54 PM
Databind to Accordion Control biggerandbetterkahler@googlemail.com Microsoft ASP .NET 0 13th Nov 2006 10:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 AM.