I have a GridView inside an UpdatePanel set to conditional update mode and ChildrenAsTrigger to false, now the gridview got bind successfully, we are talking about 500 rows, i have others gridview but in different UpdatePanel. Everything works except when i try to clear everything, it hangs saying this: "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete
" whether i select stop script or not it keep going without end.

When i load jobs with, lets say 50 rows, the clear process its done successfully.
I would like to hear some feedback about, any idea ill thanks so much. i test every single gridview separate, and no problem.

this is the gridview structure just in case it help

<asp:GridView ID="gvPlanning" runat="server" SkinID="gridviewSkin" AutoGenerateColumns="false" OnRowCommand="OnRowCommand_Trigger" OnRowDataBound="gvPlanning_OnRowDataBound" >
   <Columns>
      <asp:BoundField DataField="DemandBaseId" HeaderText="Demand" ReadOnly="true" />
      <asp:BoundField DataField="DemandSeqNo" HeaderText="Dmd. No." ReadOnly="true" ItemStyle-Width="15" />
      <asp:BoundField DataField="DemandLotId" HeaderText="Dmd. Lot" />
      <asp:BoundField DataField="DemandQty" HeaderText="Dmd. Qty" />
      <asp:BoundField DataField="BaseId" HeaderText="Supply" ReadOnly="true" />
      <asp:BoundField DataField="LotId" HeaderText="Lot Id" ReadOnly="true" />
      <asp:BoundField DataField="PartId" HeaderText="Part" ReadOnly="true" />
      <asp:BoundField DataField="QtyHand" HeaderText="Qty on hand" ReadOnly="true" />
      <asp:TemplateField HeaderText="Sply. qty">
         <ItemTemplate>
            <asp:TextBox ID="txtUDesiredQty" runat="server" Text='<%#Bind("DesiredQty") %>' CssClass="ShortTextBox"></asp:TextBox>
            <asp:HiddenField ID="hfDesiredQty" runat="server" Value='<%#Bind("DesiredQty") %>' />
            <asp:HiddenField ID="hfSupplyType" runat="server" Value='<%#Bind("LinkType") %>' />
            <asp:HiddenField ID="hfWoStatus" runat="server" Value='<%#Eval("Status") %>' />
         </ItemTemplate>
      </asp:TemplateField>
      <asp:TemplateField HeaderText="Prnt. date">
         <ItemTemplate>
            <asp:Label ID="lblPrintedDate" runat="server" Text='<%#Bind("PrintedDate") %>'></asp:Label>
            <asp:Panel ID="pnlTest" runat="server" style="display:none">
                <asp:LinkButton ID="lnkDeletePrinted" runat="server" Text="Delete Print date" CommandName="DeletePrintDate"></asp:LinkButton>
             </asp:Panel>
            <cc1:HoverMenuExtender ID="HoverMenuExtender1" runat="server" TargetControlID="lblPrintedDate" PopupControlID="pnlTest" OffsetX="5" OffsetY="15" >
            </cc1:HoverMenuExtender>
         </ItemTemplate>
      </asp:TemplateField>
      <asp:BoundField DataField="DesiredRlsDate" HeaderText="Rls date" />
      <asp:BoundField DataField="DesiredWantDate" HeaderText="Want date" />
      <asp:TemplateField HeaderText="Plan">
         <ItemTemplate>
            <asp:CheckBox ID="chkPlanComplete" runat="server" AutoPostBack="true" OnCheckedChanged="chkPlanComplete_CheckedChanged" />
         </ItemTemplate>
      </asp:TemplateField>
   </Columns>
</asp:GridView>

Thanks again for read.

when i try to clear everything ?

sorry about that.

mean clear the rows in the gridview. I am using this.

GridView1.DataSource = null;
GridView1.DataBind();

well i found the problem, the hovermenuextender is the culprit.

<asp:Panel ID="pnlTest" runat="server" style="display:none">
   <asp:LinkButton ID="lnkDeletePrinted" runat="server" Text="Delete Print date"></asp:LinkButton>
</asp:Panel>
<cc1:HoverMenuExtender ID="HoverMenuExtender1" runat="server" TargetControlID="lblPrintedDate" PopupControlID="pnlTest" OffsetX="5" OffsetY="15" >
</cc1:HoverMenuExtender>

My code does not like this. i took that out in it work beautiful any idea how can i make it work?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.