Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Accordion not expanding

Accordion not expanding

Scheduled Pinned Locked Moved ASP.NET
sysadmindockerquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Farraj
    wrote on last edited by
    #1

    Hi, i've made a page with Ajax accordion, but its not expanding or collapsing this is the code i've made:

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:AccessDataSource ID="AccessDataSource2" runat="server"
    DataFile="~/App_Data/Data2.mdb"

                SelectCommand="SELECT \[id\], \[day\], \[desc\] FROM \[days\] WHERE (\[id\] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="id" QueryStringField="id" Type="String" />
            </SelectParameters>
                    </asp:AccessDataSource>
    
    <cc1:Accordion ID="Accordion1" runat="server"
        SelectedIndex="0"
        ContentCssClass="Content"  HeaderCssClass="HEADER" HeaderSelectedCssClass="accordionHeaderSelected"
        AutoSize="None"
        FadeTransitions="true"
        RequireOpenedPane="false"
        TransitionDuration="100"
        SuppressHeaderPostbacks = "true"
        DataSourceID="AccessDataSource2"        
        >
        <HeaderTemplate>
       <%#DataBinder.Eval(Container.DataItem, "day")%>
    
        </HeaderTemplate>
    
        <ContentTemplate>
    

    <%#DataBinder.Eval(Container.DataItem, "desc")%>
    </ContentTemplate>

    </cc1:Accordion>
    

    any ideas?

    S 1 Reply Last reply
    0
    • F Farraj

      Hi, i've made a page with Ajax accordion, but its not expanding or collapsing this is the code i've made:

      <asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>
      <asp:AccessDataSource ID="AccessDataSource2" runat="server"
      DataFile="~/App_Data/Data2.mdb"

                  SelectCommand="SELECT \[id\], \[day\], \[desc\] FROM \[days\] WHERE (\[id\] = ?)">
              <SelectParameters>
                  <asp:QueryStringParameter Name="id" QueryStringField="id" Type="String" />
              </SelectParameters>
                      </asp:AccessDataSource>
      
      <cc1:Accordion ID="Accordion1" runat="server"
          SelectedIndex="0"
          ContentCssClass="Content"  HeaderCssClass="HEADER" HeaderSelectedCssClass="accordionHeaderSelected"
          AutoSize="None"
          FadeTransitions="true"
          RequireOpenedPane="false"
          TransitionDuration="100"
          SuppressHeaderPostbacks = "true"
          DataSourceID="AccessDataSource2"        
          >
          <HeaderTemplate>
         <%#DataBinder.Eval(Container.DataItem, "day")%>
      
          </HeaderTemplate>
      
          <ContentTemplate>
      

      <%#DataBinder.Eval(Container.DataItem, "desc")%>
      </ContentTemplate>

      </cc1:Accordion>
      

      any ideas?

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Have a look at the implementation of Accordian here and you might be able to resolve it: Working with Accordion AJAX Control[^] Ajaxtoolkit Accordian Sample[^]

      F 1 Reply Last reply
      0
      • S Sandeep Mewara

        Have a look at the implementation of Accordian here and you might be able to resolve it: Working with Accordion AJAX Control[^] Ajaxtoolkit Accordian Sample[^]

        F Offline
        F Offline
        Farraj
        wrote on last edited by
        #3

        i solved the problem by adding

        lol thanks :-)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups