Dec 04, 2012, 6:47 AM
MultiCombo and IE8
Hi,
In IE8, when loading a lot of rows in a multicombo, i receive the message: "stop running this script" and then it crashes
I don't receive this in IE9, safari and chrome. It's only in IE8.
Here an example to reproduce:
In IE8, when loading a lot of rows in a multicombo, i receive the message: "stop running this script" and then it crashes
I don't receive this in IE9, safari and chrome. It's only in IE8.
Here an example to reproduce:
<%@ Page Language="VB" AutoEventWireup="false" Culture="auto" uiculture="auto" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script runat="server">
<DirectMethod()> _
Public Sub LoadStore1()
Dim _Data As New System.Data.DataTable
Dim _DataRow As System.Data.DataRow
Dim _Index01 As Integer
_Data.Columns.Add(New System.Data.DataColumn("ID", GetType(Integer)))
_Data.Columns.Add(New System.Data.DataColumn("DisplayName", GetType(System.String)))
For _Index01 = 0 To 1000
_DataRow = _Data.NewRow()
_DataRow("ID") = _Index01
_DataRow("DisplayName") = String.Concat("DisplayName" & _Index01)
_Data.Rows.Add(_DataRow)
Next
Me.Store1.DataSource = _Data
Me.Store1.DataBind()
End Sub
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="ParentMethods" />
<ext:Window ID="WindowCombobox" runat="server"
Title="Radio options"
Width="730px"
Height="630px"
Resizable="False"
Closable="False"
Modal="True"
layout="FormLayout"
BodyPadding="10">
<Items>
<ext:Button ID="btnLoad" runat="server" Text="LoadStore">
<Listeners>
<Click Handler="ParentMethods.LoadStore1();" />
</Listeners>
</ext:Button>
<ext:MultiCombo ID="ComboBox1" runat="server"
SelectionMode="All"
ValueField="ID"
DisplayField="DisplayName"
TypeAhead="true"
QueryMode="Local" >
<Store>
<ext:Store ID="Store1" runat="server" >
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="ID">
<Fields>
<ext:ModelField Name="ID" />
<ext:ModelField Name="DisplayName" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
</ext:MultiCombo>
</Items>
</ext:Window>
</div>
</form>
</body>
</html>
Thanx!