달력

42024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

http://forums.asp.net/thread/1348010.aspx


Re: Data Binding in an AccordionPane in a Repeater

finally, I managed to make it work on both IE and Firefox. Here goes the code:

======================

    <div id="Accordion1" runat="server" style="width: 460px; height:auto;">
                                    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                                     <ItemTemplate>
                                            <span id="<%# Eval("Uyghur") %>"><div>
                                            <div class="accordionHeader">
                                  My header comes from: <%# Eval("DataItemName") %></a>
                                         </div></div><div><div class="accordionContent">
                                                    My contects come from: <%# Eval("DataItemName") %>
                                         </div>
                                     </div></span>
                                      </ItemTemplate>
                                        </asp:Repeater>
                                </div>
                                <atlasToolkit:AccordionExtender ID="AccordionExtender1" runat="server">
                                         <atlasToolkit:AccordionProperties
                                          TargetControlID="Accordion1"
                                          AutoSize="none"
                                             SelectedIndex="0"
                                          FadeTransitions="true"
                                                TransitionDuration="250"
                                                FramesPerSecond="40"/>
                                </atlasToolkit:AccordionExtender>

======================

N.B.: DO NOT put a space between <span> and <div> tags, if not it does not work properly in Firefox... That is what I found, don't ask me why. Yes, it is strange, I am still looking for an answer... :)

Posted by tornado
|