Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Entire Gridview has one update panel with an timer1 and gridview item has another update panel with an timer2.
timer1 interval is 10000
timer2 interval is 1000

When I was scroll down in the gridview ,there is an problem in the scrolling.

XML
<form id="form1" runat="server">
    <div>
     <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
     <ContentTemplate>


                                                    <asp:GridView Width="80%" ID="dgLiveAuctionBid" runat="server" onrowdatabound="dgLiveAuctionBid_RowDataBound"
                                                        AutoGenerateColumns="False" GridLines="Horizontal" RowStyle-BackColor="White"  >


                                                        <Columns>

                                                            <asp:TemplateField HeaderText="Product" >
                                                                <ItemTemplate>
                                                                     <asp:Label ID="lblProduct" runat="server" Text='<%#Bind("Product")%>' Font-Bold="true"></asp:Label>
                                                                     <asp:Label ID="lblProductID" Visible="false" runat="server" Text='<%#Bind("AuctionProductID")%>'></asp:Label>

                                                                </ItemTemplate>
                                                                <ItemStyle Width="120px" HorizontalAlign="Center" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Auction <br /> Timings">
                                                                 <ItemTemplate>
                                                                        <span></span><asp:Label ID="lblAuctionDate" Visible="True" runat="server" Text='<%#Bind("OnlineAuctionDate") %>' Font-Bold="true"></asp:Label>
                                                                        <br /><span> To &nbsp;</span><br /><asp:Label ID="lblAuctionTime" runat="server" Text='<%#Bind("EndTime") %>' Font-Bold="true"></asp:Label>&nbsp;
                                                                     <br />
                                                                   <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                       <ContentTemplate>
                 <asp:Label ID="Label1"  runat="server"></asp:Label>
                 <asp:Timer ID="Timer3" runat="server" Interval="1000" OnTick="Timer3_Tick"></asp:Timer>
            </ContentTemplate>
              <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Timer3" EventName="Tick"/>
            </Triggers>
        </asp:UpdatePanel>
                                                                 </ItemTemplate>
                                                                  <ItemStyle Width="190px" HorizontalAlign="Center" />
                                                            </asp:TemplateField>

                                                        </Columns>


                                                    </asp:GridView>

                                <div class="clear space">
                                   <asp:Timer ID="Timer1" runat="server" Interval="10000" ontick="Timer1_Tick"> </asp:Timer>

                                </div>

</ContentTemplate>
 <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick"/>
            </Triggers>
    </asp:UpdatePanel>
    </div>
    </form>
Posted
Updated 16-Oct-14 20:39pm
v2
Comments
ZurdoDev 16-Oct-14 7:36am    
Is there a question somewhere?
Gokul Athithan 17-Oct-14 2:53am    
I have Upload the code
ZurdoDev 17-Oct-14 7:30am    
But what is your question?
Gokul Athithan 17-Oct-14 13:47pm    
scrolling problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900