Webgrid Latest build produces "Stop Running Script?" messagebox

79 replies. Last post: February 8, 2012 10:59 PM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Peter JonesMember

Hi

between  webgrid versions 7.0.7200.419  and 7.0.7200.430 i am now getting the internet explorer message box popup

Stop Running Script? A script on this page is causing  your page to run slowly.

 

I have a page with a webgrid and web combo control. The Webgrid control uses the grouping functionality.

on the .419 version  this script message did not occur even for over 3500 rows of data.

In .430  (and .431 which contains a fix i need) not even 400  rows causes this issue.

The problem is not on the intial load this is fine.

The problem occurs when sorting. refreshing...  or even when selecting a different control.

e.g webcombo dropdown. Why would selecting another control cause so much webgrid javascript to be executed?

 

What has changed to cause such a substantial increase on javascript to be executed?

It there anyway i can reduce this and keep the same functionality?

This is seriously reducing the effectiveness of the control.

bellow is the aspx page content

 

Thanks

 

Peter

 

 

<%@ OutputCache Location="None" %>
<%@ Register TagPrefix="msi" Namespace="MSI_Web_Controls" Assembly="MSI Web Controls" %>
<%@ Register TagPrefix="uc1" TagName="WebGridActionPanel" Src="controls/WebGridActionPanel.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="CollectorDiary.aspx.vb" Inherits="MSIIntranetV2.CollectorDiary"%>
<%@ Register TagPrefix="iswebgrid" Namespace="ISNet.WebUI.WebGrid" Assembly="ISNet.WebUI.WebGrid" %>
<%@ Register TagPrefix="iswebcombo" Namespace="ISNet.WebUI.WebCombo" Assembly="ISNet.WebUI.WebCombo" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <head runat="server">
  <title>Collector Diary</title>
  <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
  <meta content="JavaScript" name="vs_defaultClientScript">
  <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  <link href="styles/styles.css" type="text/css" rel="stylesheet">
  <script language="javascript" src="scripts/collectordiary.js"></script>
 </HEAD>
 <body ms_positioning="FlowLayout">
 <form id="Form1" method="post" runat="server">
  <p><msi:pageheader id="Pageheader1" text="Collector Diary" runat="server"></msi:pageheader></p>
  <p>
   
    <table id="Table1" cellpadding="2" border="0">
     <tr>
      <td width="65">Collector:</td>
      <td><iswebcombo:webcombo id="WebCombo1" runat="server" datamember="Table" datavaluefield="ID" datatextfield="Name"
        runtimelicensekey="8G1P2-HW63-C837T" allowautopostback="true" dropdownrows="1000">
        <LayoutSettings SearchIconMode="Graphic" SearchImage="Search_XPBlue.gif" TextBoxMode="ReadOnly" EnableAnimation="True" AlwaysShowAllRowsOnDropdown="True" ComboMode="MultipleColumns">
                            <ResultBoxStyle Font-Names="Verdana" Font-Size="8pt"></ResultBoxStyle>
                            <StatusBoxStyle BackColor="LightSteelBlue" Font-Names="Verdana" Font-Size="8pt" ForeColor="White"></StatusBoxStyle>
                            <ResultFrameStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"></ResultFrameStyle>
                            <HeaderStyle BackColor="RoyalBlue" ForeColor="White" Font-Names="Verdana" Font-Size="8pt" Height="20px" CustomRules="border-right: aliceblue 1px solid">
                             <Padding Bottom="3px" Left="3px" Top="3px" Right="3px"></Padding>
                             </HeaderStyle>
                            <ColumnStyle CustomRules="text-overflow:ellipsis"></ColumnStyle>
                            <RowStyle>
                            <Normal Height="20px"></Normal>
                            <Over BaseStyle="Normal" BackColor="WhiteSmoke"></Over>
                            </RowStyle>
                            <SelectedRowStyle BackColor="Navy" Font-Names="Verdana" Font-Size="8pt" ForeColor="White" Height="20px"></SelectedRowStyle>
                            <FrameStyle>
                            <Normal BackColor="White" BorderColor="#7F9DB9" BorderStyle="Solid" BorderWidth="1px" Height="22px" Width="202px"></Normal>
                            <Over BaseStyle="Normal" BackColor="#E9EBF4"></Over>
                            <Active BaseStyle="Over" BackColor="#E9EBF4"></Active>
                            </FrameStyle>
                            <TextBoxStyle>
                            <Normal CustomRules="background:transparent" BorderStyle="None" BorderWidth="0px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Width="182px"></Normal>
                            <Over BaseStyle="Normal"></Over>
                            <Active BaseStyle="Over"></Active>
                            </TextBoxStyle>
                            <DropDownStyle>
                            <Normal CustomRules="filter: Alpha(opacity=80)" Cursor="Hand" ForeColor="#E9EBF4" Height="22px" Width="16px">
                            <Padding Top="1px" Left="0px" Right="1px" Bottom="0px"></Padding>
                            </Normal>
                            <Over CustomRules="filter: Alpha(opacity=100)" BaseStyle="Normal" ForeColor="#E9EBF4"></Over>
                            <Active BaseStyle="Over"></Active>
                            </DropDownStyle>
                            <MoreButtonStyle>
                            <Normal BorderColor="White" BorderStyle="Solid" BorderWidth="1px"></Normal>
                            <Over BaseStyle="Normal" BackColor="#E9EBF4" BorderColor="LightSteelBlue"></Over>
                            <Active BaseStyle="Over"></Active>
                            </MoreButtonStyle>
                            </LayoutSettings>
        <columns>
         <iswebcombo:WebComboColumn name="Name" headertext="Collector" width="200px" basefieldname="Name"></iswebcombo:WebComboColumn>
         <iswebcombo:WebComboColumn name="Files" headertext="Files in Diary" width="" basefieldname="Files"></iswebcombo:WebComboColumn>
        </columns>
       </iswebcombo:webcombo></td>
     </tr>
    </table>
  </p>
  <iswebgrid:webgrid id="WebGrid1" runat="server" runtimelicensekey="8L72T-H6R8-U1Q1E" width="100%">
   <roottable datakeyfield="ID" columnfooters="No" caption=" " columnheaders="Yes" hidecolumnswhengrouped="No"
    datamember="Table">
    <groupedcolumns>
     </groupedcolumns>
    <columns>
     <iswebgrid:webgridcolumn caption="ID" showinselectcolumns="No" columntype="CheckBox" allowgrouping="No" allowsizing="No"
      allowsorting="No" edittype="NoEdit" name="ID" isrowchecker="True" bound="False"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn caption="Account Code" datamember="AccountCode" columntype="Custom" edittype="NoEdit"
      name="AccountCode" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn caption="Short Code" datamember="shortcode" columntype="Custom" edittype="NoEdit"
      name="shortcode" width="100px" visible="false"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn dataformatstring="dd/MM/yyyy HH:mm" caption="Diary Date" datamember="DiaryDate"
      allowmultiline="True" name="DiaryDate" width="75px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn caption="Company Name" datamember="CompanyName" allowmultiline="True" name="CompanyName"
      width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn caption="Client" datamember="Client" allowmultiline="True" name="Client" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn caption="Country" datamember="Country" allowmultiline="True" name="Country" width="80px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn Visible="false" dataformatstring="n2" caption="Debits"  datamember="Debits" name="Debits" width="50px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn Visible="false" dataformatstring="n2" caption="Credits" datamember="Credits" name="Credits" width="50px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn dataformatstring="n2" caption="Balance" datamember="Balance" name="Balance" width="50px"
      grouprowvalueformatstring="n"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn caption="Status" datamember="Status" allowmultiline="True" name="Status" width="50px"></iswebgrid:webgridcolumn>
    
     <iswebgrid:webgridcolumn caption="DebtorCategory1" datamember="DebtorCategory1" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory1" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory2" datamember="DebtorCategory2" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory2" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory3" datamember="DebtorCategory3" edittype="NoEdit"
      name="DebtorCategory3" width="50px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory4" datamember="DebtorCategory4" edittype="NoEdit"
      name="DebtorCategory4" width="50px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory5" datamember="DebtorCategory5" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory5" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory6" datamember="DebtorCategory6" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory6" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory7" datamember="DebtorCategory7" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory7" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory8" datamember="DebtorCategory8" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory8" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory9" datamember="DebtorCategory9" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory9" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory10" datamember="DebtorCategory10" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory10" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory11" datamember="DebtorCategory11" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory11" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn caption="DebtorCategory12" datamember="DebtorCategory12" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory12" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory13" datamember="DebtorCategory13" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory13" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory14" datamember="DebtorCategory14" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory14" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory15" datamember="DebtorCategory15" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory15" width="100px"></iswebgrid:webgridcolumn>
     <iswebgrid:webgridcolumn  caption="DebtorCategory16" datamember="DebtorCategory16" allowmultiline="True"
      columntype="Custom" edittype="NoEdit" name="DebtorCategory16" width="100px"></iswebgrid:webgridcolumn>
    <iswebgrid:webgridcolumn visible="False" caption="DiaryAgeing" datamember="DiaryAgeing" name="DiaryAgeing"
      width="1px"></iswebgrid:webgridcolumn>
    </columns>
   </roottable>
   <layoutsettings Culture="English (United States)" alwaysshowhelpbutton="False" autocolminwidth="50" treelines="False" newrowlostfocusaction="AlwaysUpdate"
    allowsorting="Yes" rowheightdefault="-1px" groupbyboxvisible="True" rowheaders="No" allowgrouping="Yes"
    filterbarvisible="False" hidecolumnswhengrouped="No" allowexport="Yes" autofitcolumns="True"
    cellpaddingdefault="2" alternatingcolors="True" columnsetheaders="No" gridlinestyle="Solid"
    grouprowinfoformatdefault="[value]" gridlinecolor="153, 153, 204">
    <headerstyle gradienttype="Vertical" borderwidth="1px" font-size="10px" font-names="Verdana"
     font-bold="True" backcolor2="204, 204, 255" borderstyle="None" forecolor="Black" backcolor="#9999CC" BorderSettings-Bottom-Style="Solid" BorderSettings-Top-Style="Solid" BorderSettings-Right-Style="Solid">
     <padding bottom="3px" top="3px"></padding>
     <bordersettings>
      <bottom  color="153, 153, 204"></bottom>
      <top  color="153, 153, 204"></top>
      <right  color="153, 153, 204"></right>
     </bordersettings>
    </headerstyle>
    <framestyle borderwidth="1px" borderstyle="None" BorderSettings-Bottom-Style="Solid" >
     <bordersettings>
      <bottom  color="153, 153, 204"></bottom>
     </bordersettings>
    </framestyle>
    <groupbybox connectorlinestyle="Solid" connectorlinecolor="White" contextmenu="False"></groupbybox>
    <edittextboxstyle verticalalign="Top" borderwidth="1px" font-size="10px" font-names="Verdana" bordercolor="#CCCCFF"
     borderstyle="Solid" height="19px"></edittextboxstyle>
    <newrowstyle font-size="10px" font-names="Verdana" forecolor="DarkGray" backcolor="Lavender"
     height="20px"></newrowstyle>
    <focuscellstyle borderstyle="Solid" borderwidth="1px" bordercolor="Navy"></focuscellstyle>
    <rowstyle font-size="10px" font-names="Verdana" forecolor="#404040" backcolor="White" wrap="False"
     customrules="text-overflow: ellipsis; overflow-x: hidden"></rowstyle>
    <grouprowinfostyle BorderSettings-Bottom-Style="Solid" font-size="12px" font-names="Verdana" font-bold="True" forecolor="#006699" height="25px">
     <bordersettings >
      <bottom  width="2px" color="153, 153, 204"></bottom>
     </bordersettings>
    </grouprowinfostyle>
    <selectedrowstyle forecolor="White" backcolor="LightSteelBlue"></selectedrowstyle>
    <footerstyle font-bold="True" forecolor="Navy" backcolor="White" height="22px"></footerstyle>
    <alternatingrowstyle font-size="10px" font-names="Verdana" forecolor="#404040" backcolor="#CCCCFF" customrules="text-overflow: ellipsis; overflow-x: hidden"></alternatingrowstyle>
    <statusbarstyle borderwidth="1px" font-size="8pt" font-names="Verdana" bordercolor="#9999CC" borderstyle="Solid"
     forecolor="Black" backcolor="White" customrules="border-bottom-width: 0px">
     <padding bottom="2px"></padding>
    </statusbarstyle>
   </layoutsettings>
  </iswebgrid:webgrid>
  <asp:button id="btnResetView" runat="server" text="Reset View"></asp:button>
  <p><uc1:webgridactionpanel id="WebGridActionPanel1" runat="server" visible="False"></uc1:webgridactionpanel></p>
  </form>
 </body>
</HTML>

 

 

 

 

 

 

 

All times are GMT -5. The time now is 12:49 PM.
Previous Next