PDA

View Full Version : [CLOSED] Linked Comboboxes Mask



Adrian
Feb 01, 2012, 9:34 PM
There is a problem clearing the mask on linked comboboxes.

Using your example: (examples2.ext.net/#/Form/ComboBox/Linked_ComboBoxes/ (http://examples2.ext.net/#/Form/ComboBox/Linked_ComboBoxes/)) ... if you select Belgium the cities load fine and the mask clears. Then select Brazil. The cities also load fine but the mask does not clear.

Daniil
Feb 02, 2012, 9:03 AM
Hi,

I was unable to reproduce.

What browser do you test with?

Adrian
Feb 02, 2012, 9:26 AM
Problem occurs in ie9, Firefox and Chrome. You need to select a city each time (as well as a country) and you'll find the loading mask will not disappear on the city combobox after multiple selections.

Daniil
Feb 02, 2012, 1:20 PM
Confirmed.

Though it's not reproducible with the latest Ext.NET v2 sources.

It would be rather hard to provide you with a fix, because it's related to many things. Please wait the next release.

Adrian
Feb 02, 2012, 9:20 PM
Thanks for the update and happy to wait for the next Ext.Net release for the fix. You can close this thread.
A.

Birgit
Nov 29, 2012, 8:49 AM
Hi,

I've this issue too and i'm using Ext.Net v2.
The problem occurs also with the linked comboboxes and when the loading of the linked combobox takes a little bit longer. Then the mask doesn't disappear.
So it's only when i already click the trigger of the linked combobox when the loading is not finished yet.

Kind Regards

Daniil
Nov 29, 2012, 9:36 AM
Hi @Birgit,

Could you provide us with exact steps to reproduce? I was unable to reproduce it.

Birgit
Dec 04, 2012, 12:41 PM
Hi Daniil,

I finally managed to produce an example. I think the cause is the autorender option i use:



<%@ 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()
Me.Store1.Reload()
Me.Window1.Show()
End Sub

Protected Sub Store1_Read(ByVal Sender As Object, ByVal e As StoreReadDataEventArgs)
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 10
_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:Button ID="btnLoad" runat="server" Text="LoadStore">
<Listeners>
<Click Handler="ParentMethods.LoadStore1();" />
</Listeners>
</ext:Button>

<ext:Window ID="Window1" runat="server"
Title="Gridpanel Mask"
Width="730px"
Height="630px"
Resizable="False"
Closable="False"
Modal="True"
layout="FormLayout"
BodyPadding="10"
AutoRender="False">
<Items>

<ext:GridPanel ID="GridPanel1" runat="server" Height="400">
<Store>
<ext:Store runat="server" ID="Store1" OnReadData="Store1_Read" AutoLoad="false" >
<Model>
<ext:Model runat="server" IDProperty="ID">
<Fields>
<ext:ModelField Name="DisplayName" />
<ext:ModelField Name="ID" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:Column ID="colDisplayName" runat="server" DataIndex="DisplayName" Text="DisplayName" Flex="1" />
</Columns>
</ColumnModel>
</ext:GridPanel>
</Items>
</ext:Window>

</div>
</form>
</body>
</html>

Daniil
Dec 04, 2012, 3:39 PM
Thank you for the sample.

Please use Hidden="true" instead of AutoRender="false".

Or load the Store into a WIndow's AfterRender listener.

Birgit
Dec 05, 2012, 6:23 AM
Hi Daniil,

Thanx! but are there no other possibilities? Because i use the autorender for performance issues. And i also want the store to be loaded before the window is shown.

Daniil
Dec 05, 2012, 11:28 AM
Thanx! but are there no other possibilities? Because i use the autorender for performance issues.

Well, this should help. You can leave AutoRender="false" with this approach.


Or load the Store into a WIndow's AfterRender listener.


And i also want the store to be loaded before the window is shown.

Well, a Store should be rendered before loading. AutoRender="false" means a Window and its children are not rendered.

You can move the Store outside the Window and remove AutoLoad="false".

pdcase
Dec 19, 2012, 11:31 AM
Confirmed.

Though it's not reproducible with the latest Ext.NET v2 sources.

It would be rather hard to provide you with a fix, because it's related to many things. Please wait the next release.

It was fixed in 1.x? Which specific version?

Daniil
Dec 19, 2012, 1:48 PM
Hi @pdcase,

Please provide a test case to reproduce it with Ext.NET v1.