PDA

View Full Version : [CLOSED] Proble with combobox in window



feanor91
Apr 20, 2012, 9:44 AM
Hello

dropdown list of combobox seem to not works as wenated :

Chrome:
dropdown pass behind window
4145

IE:
items in dropdown list are not selectable
4147

FF, Safari and Opera:
Dropdown list open corectly but I'm not able to do a selection with mouse (click is made in the grid of the window), besides that, I can select with arrow keys to choose and enter to select
4146

For information, my combobox definition:



<ext:Column Runat="server" ID="Entity" DataIndex="STR_EntityName" MenuDisabled="True" Fixed="True" Groupable="False" Hideable="False" Resizable="False" Sortable="true" Width="200" Text="Entity" >
<Editor>
<ext:ComboBox ID="ComboBox2"
runat="server"
Editable="false"
Width="200"
Enabled="True"
EmptyText="Please choose a value"
StoreID="stoEntities"
AllowBlank="false"
ValueField="INT_idRmdEntities"
DisplayField="STR_EntityName">
<ListConfig ID="ListConfig36" runat="server" Cls="top-list">
</ListConfig>
</ext:ComboBox>
</Editor>
</ext:Column>


ths class top-list:


.top-list {
z-index:25000 !important;
}

feanor91
Apr 20, 2012, 10:25 AM
I answer to myself :

I have downloaded and compile last Ext.Net release.

Problem of dropdown disapearing behind window seems to be resolved on Chrome and in IE, the dropdown list is OK too, meanwhile, the mouse selection problem is still here.

Daniil
Apr 20, 2012, 12:49 PM
Hi,

I am unable to reproduce. Could you provide a full sample?

feanor91
Apr 20, 2012, 1:02 PM
For example :



<ext:DesktopModule ModuleID="Template">
<Window>
<ext:Window
runat="server"
Icon="Table"
Width="800"
Height="380"
Layout="Fit"
Hidden="True"
ExpandOnShow="True"
MinHeight="100"
MinWidth="100"
Maximizable="False"
Resizable="False"
TitleCollapse="True"
Title="Chart template definition"
Collapsible="True">
<Items>
<ext:GridPanel
ID="grdTemplate"
runat="server"
Cls="x-grid-custom"
AutoScroll="False"
ColumnLines="True" >
<Store>
<ext:Store ID="Store13" runat="server" WarningOnDirty="False">
<Proxy>
<ext:AjaxProxy Url="jsonDAL/ReturnJsonTemplate.aspx" Json="false" Timeout="120000">
<Reader>
<ext:JsonReader Root="Data" TotalProperty="TotalRecords">
</ext:JsonReader>
</Reader>
</ext:AjaxProxy>
</Proxy>
<Model>
<ext:Model ID="Model1" runat="server">
<Fields>
<ext:ModelField Name="INT_idTemplate" />
<ext:ModelField Name="STR_Template" />
<ext:ModelField Name="STR_ChartsInTemplateName" />
<ext:ModelField Name="STR_ChartsInTemplateValue" />
<ext:ModelField Name="BOOL_Private" />
<ext:ModelField Name="INT_idUser" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel6" runat="server">
<Columns>
<ext:Column Runat="server" ID="idTemplate" DataIndex="INT_idTemplate" MenuDisabled="True" Fixed="True" Groupable="False" Hideable="False" Resizable="False" Sortable="False" Width="30" Text="ID" Hidden="True">
</ext:Column>
<ext:Column Runat="server" Flex="1" ID="Template" DataIndex="STR_Template" MenuDisabled="True" Fixed="True" Groupable="False" Hideable="False" Resizable="False" Sortable="true" MinWidth="200" Text="Template">
<Editor>
<ext:TextField runat="server"></ext:TextField>
</Editor>
</ext:Column>
<ext:Column Runat="server" ID="ChartsInTemplate" DataIndex="STR_ChartsInTemplateValue" MenuDisabled="True" Fixed="True" Groupable="False" Hideable="False" Resizable="False" Sortable="true" Width="500" Text="Charts in template">
<Editor>
<ext:MultiCombo
ID="MultiCombo1"
Enabled="true"
runat="server"
Editable="false"
Width="500"
StoreID="stoChartsName"
AllowBlank="False"
EmptyText="Please choose a value..."
DisplayField="STR_FriendlyName"
ValueField="INT_idCharts">
<ListConfig ID="ListConfig33" runat="server" Cls="top-list">
</ListConfig>
</ext:MultiCombo>
</Editor>
<Renderer Fn="RendercboCharts" />
</ext:Column>
<ext:BooleanColumn
runat="server"
ID="Private"
DataIndex="BOOL_Private"
Width="200"
MenuDisabled="True"
Resizable="False"
Sortable="False"
Text="Template is Private"
TrueText="Yes"
FalseText="No" Fixed="True">
<Editor>
<ext:Checkbox ID="Changebox2" runat="server"></ext:Checkbox>
</Editor>
</ext:BooleanColumn >
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel6" runat="server">
</ext:RowSelectionModel>
</SelectionModel>
<TopBar>
<ext:Toolbar ID="Toolbar3" runat="server">
<Items>
<ext:Button ID="btnAddTemplate" runat="server" Text="Add a template" Icon="Add">
<Listeners>
<Click Fn="addNewRecord" />
</Listeners>
</ext:Button>
<ext:Button ID="btnDelTemplate" runat="server" Text="Remove a template" Icon="Delete">
<DirectEvents>
<Click OnEvent="btnDelTemplate_Click">
<ExtraParams>
<ext:Parameter Name="data" Value="#{grdTemplate}.getRowsValues({selectedOnly : true})" Mode="Raw" Encode="true"></ext:Parameter>
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
</Items>
</ext:Toolbar>
</TopBar>
<View>
<ext:GridView ID="GridView12" runat="server" />
</View>
<Plugins>
<ext:RowEditing ID="RowEditing5" runat="server" >
<DirectEvents>
<ValidateEdit OnEvent="UpdateTemplate">
<ExtraParams>
<ext:Parameter Name="data" Value="e.record.data" Mode="raw" Encode="true" ></ext:Parameter>
</ExtraParams>
</ValidateEdit>
</DirectEvents>
<Listeners>
<CancelEdit Fn="cancelAddRecord" />
</Listeners>
</ext:RowEditing>
</Plugins>
</ext:GridPanel>
</Items>
</ext:Window>
</Window>
</ext:DesktopModule>




<ext:Store ID="stoChartsName" runat="server" AutoLoad="True">
<Proxy>
<ext:AjaxProxy Url="jsonDAL/ReturnJsonChartsName.aspx" Json="false" Timeout="300000">
<Reader>
<ext:JsonReader Root="Data" TotalProperty="TotalRecords">
</ext:JsonReader>
</Reader>
</ext:AjaxProxy>
</Proxy>
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="INT_idCharts" Type="Int" Mapping="INT_idCharts" />
<ext:ModelField Name="STR_FriendlyName" type="String" mapping="STR_FriendlyName"/>
</Fields>
</ext:Model>
</Model>
</ext:Store>


ReturnJsonChartsName.aspx.vb:



Imports Newtonsoft.Json
Imports System.Data.OleDb

Public Class ReturnJsonChartsName
Inherits System.Web.UI.Page

'the structure to get data
Structure strucCharts
Dim INT_idCharts As Integer
Dim STR_FriendlyName As String
End Structure

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim GlobalFunction As New GlobalFunction 'allow access to generic functions
Dim ds As New DataSet 'dataset to get data
ds = GlobalFunction.GetDatas("SELECT * FROM Charts ORDER BY FriendlyName;", "ChartsList") 'executing request to get data

Dim LIST_Charts As List(Of strucCharts) = New List(Of strucCharts) 'the list that will be serialized into a JSON file
Dim EL_Charts As strucCharts = New strucCharts 'each element will be added to the list

For i As Integer = 0 To ds.Tables("ChartsList").Rows.Count - 1 'creating the list
EL_Charts.INT_idCharts = ds.Tables("ChartsList").Rows(i).Item("idCharts")
EL_Charts.STR_FriendlyName = ds.Tables("ChartsList").Rows(i).Item("FriendlyName")
LIST_Charts.Add(EL_Charts)
Next

Response.Write(JsonConvert.SerializeObject(LIST_Ch arts)) 'returning JSON data

End Sub

End Class


ReturnJsonTemplate.aspx.vb:



Imports Newtonsoft.Json
Imports System.Data.OleDb

Public Class returnJsonTemplate
Inherits System.Web.UI.Page

Structure strucTemplate
Dim INT_idTemplate As Integer
Dim STR_Template As String
Dim STR_ChartsInTemplateName As String
Dim STR_ChartsInTemplateValue As String
Dim BOOL_Private As Boolean
Dim INT_idUser As Integer
End Structure

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim STR_Where As String = Request.QueryString("WHERE")

Dim LIST_Template As List(Of strucTemplate) = New List(Of strucTemplate) 'the list that will be serialized into a JSON file
Dim EL_Template As strucTemplate = New strucTemplate 'each element will be added to the list
Dim ds As New DataSet 'dataset to get data
Dim STR_ChartInTemplateName As String = ""
Dim GlobalFunction As New GlobalFunction 'allow access to generic functions
Dim Userparameters As GlobalFunction.UserInformations
Userparameters = GlobalFunction.ReadUserDataFromCookie(Request.Cook ies("User"))

If Userparameters.AdminRight Then
ds = GlobalFunction.GetDatas("SELECT * FROM Template;", "Template") 'executing request to get data
Else
If STR_Where <> "" Then
ds = GlobalFunction.GetDatas("SELECT * FROM Template WHERE Private=false OR idUser=" + Userparameters.idUsers.ToString, "Template") 'executing request to get data
Else
ds = GlobalFunction.GetDatas("SELECT * FROM Template WHERE idUser=" + Userparameters.idUsers.ToString, "Template") 'executing request to get data
End If
End If


For i As Integer = 0 To ds.Tables("Template").Rows.Count - 1 'creating the list
STR_ChartInTemplateName = ""
For j As Integer = 0 To ds.Tables("Template").Rows(i).Item("ChartsInTemplate").ToString.Split(",").Count - 1
STR_ChartInTemplateName += GlobalFunction.GetValue("SELECT FriendlyName FROM Charts WHERE idCharts=" + ds.Tables("Template").Rows(i).Item("ChartsInTemplate").ToString.Split(",")(j).ToString) + ","
Next
STR_ChartInTemplateName = STR_ChartInTemplateName.Substring(0, STR_ChartInTemplateName.Length - 1)
EL_Template.INT_idTemplate = ds.Tables("Template").Rows(i).Item("idTemplate")
EL_Template.STR_Template = ds.Tables("Template").Rows(i).Item("Template")
EL_Template.STR_ChartsInTemplateValue = GlobalFunction.TestDbNULLString(ds.Tables("Template").Rows(i).Item("ChartsInTemplate"))
EL_Template.STR_ChartsInTemplateName = STR_ChartInTemplateName
EL_Template.BOOL_Private = ds.Tables("Template").Rows(i).Item("Private")
EL_Template.INT_idUser = GlobalFunction.TestDbNULLDecimal(ds.Tables("Template").Rows(i).Item("idUser"))
LIST_Template.Add(EL_Template)
Next
Response.Write(JsonConvert.SerializeObject(LIST_Te mplate)) 'returning JSON data

End Sub

End Class


Meanwhile, I don't know how you could run, because all is linked to my database and I cannot attach it to the thread.

Daniil
Apr 20, 2012, 1:09 PM
Well, yes, we expects some simplified sample which we could copy, paste and run.

I don't think a database is required to reproduce the problem. You should be able to replace it with some dummy data.

Please look at this technique, it should help you to prepare a sample.
How to prepare a sample (http://forums.ext.net/showthread.php?13672&p=56687&viewfull=1#post56687)

feanor91
Apr 20, 2012, 1:24 PM
I'm just trying to making one now

Edit:

Is there somewhere a complet example in VB that I could use, because I had never made program like this, I didn't know how to construct a store with its data from VB code.

Daniil
Apr 20, 2012, 1:39 PM
Is there somewhere a complet example in VB that I could use, because I had never made program like this, I didn't know how to construct a store with its data from VB code.

There are online C#/VB converters on the internet. Sometimes I used them with success.

feanor91
Apr 20, 2012, 2:04 PM
Here a new example.

It loads, but my stores are not filed...Didn't know why. It is the closest to what I want to achive in my application.



<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>


<script runat="server">

protected void Page_Load(object sender, DirectEventArgs e)
{
// Load the data into the Store and DataBind.
this.stoChartsName.DataSource = this.stoChartsNameData;
this.stoChartsName.DataBind();
this.stoChartsTemplate.DataSource = this.stoChartsTemplateData;
this.stoChartsTemplate.DataBind();
}

private object[] stoChartsNameData
{
get
{
return new object[]
{
new object[] {12,"Abandon rate"},
new object[] {11,"Activity time split"},
new object[] {16,"Average handle time"},
new object[] {17,"Average seconds to answer"},
new object[] {22,"Back order value"},
new object[] {14,"Cost per contact"},
new object[] {24,"Costs (Transport & Waehouse)"},
new object[] {20,"Delivery attempt"},
new object[] {3,"ETFQ"},
new object[] {2,"ETTR"},
new object[] {13,"First call resolution"},
new object[] {23,"Inventory days"},
new object[] {25,"Inventory value"},
new object[] {15,"Occupancy"},
new object[] {6,"OOBF"},
new object[] {18,"Orders"},
new object[] {19,"Parcels shipped"},
new object[] {21,"Product driving back order"},
new object[] {9,"Product split"},
new object[] {1,"Repair by month"},
new object[] {4,"Repair cost"},
new object[] {5,"Stock out"},
new object[] {10,"Type of repair split"},
new object[] {7,"User requests calls & mail"},
new object[] {8,"User requests letters & fax"}
};
}
}


private object[] stoChartsTemplateData
{
get
{
return new object[]
{
new object[] {1,"Service","Activity time split,ETFQ,ETTR,OOBF,Product split,Repair by month,Repair cost,Stock out,Type of repair split,User requests calls & mail,User requests letters & fax","11,3,2,6,9,1,4,5,10,7,8",false,20},
new object[] {2,"Logistic","Back order value,Costs (Transport & Warehouse),Delivery attempt,Inventory days,Inventory value,Orders,Parcels shipped,Product driving back order","22,24,20,23,25,18,19,21",false,20},
new object[] {3,"Service & Logistic","Activity time split,ETFQ,ETTR,OOBF,Product split,Repair by month,Repair cost,Stock out,Type of repair split,User requests calls & mail,User requests letters & fax,Back order value,Costs (Transport & Waehouse),Delivery attempt,Inventory days,Inventory value,Orders,Parcels shipped,Product driving back order","11,3,2,6,9,1,4,5,10,7,8,22,24,20,23,25,18,19,21",false,20},
new object[] {4,"Call center","Abandon rate,Average handle time,Average seconds to answer,Cost per contact,First call resolution,Occupancy","12,16,17,14,13,15",false,20},
new object[] {6,"All charts","Abandon rate,Activity time split,Average handle time,Average seconds to answer,Back order value,Cost per contact,Costs (Transport & Warehouse),Delivery attempt,ETFQ,ETTR,First call resolution,Inventory days,Inventory value,Occupancy,OOBF,Orders,Parcels shipped,Product driving back order,Product split,Repair by month,Repair cost,Stock out,Type of repair split,User requests calls & mail,User requests letters & fax","12,11,16,17,22,14,24,20,3,2,13,23,25,15,6,18,19,21 ,9,1,4,5,10,7,8",false,20}
};
}
}

</script>

<!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 type="text/javascript">
var cancelAddRecord = function ()
{

//var gridName = returnName( this );
var grid = this.grid;

grid.editingPlugin.cancelEdit();
var s = grid.getSelectionModel().getSelection();

for ( var i = 0, r; r = s[i]; i++ )
{
grid.store.remove( r );
};
grid.store.reload();
};

var addNewRecord = function ()
{


var gridName = this.id.substr( 6 );
var grid = Ext.getCmp( "grd" + gridName );

grid.editingPlugin.cancelEdit();

switch ( gridName )
{

case "Template":
grid.store.insert( 0, {
STR_Template: "New template name",
STR_ChartsInTemplate: "",
BOOL_Private: false,
INT_idUser: 0
} );
break;

}

grid.getView().refresh();
grid.editingPlugin.startEdit( 0, 0 );
};

RendercboCharts = function ( value, p, record )
{
return record.data.STR_ChartsInTemplateName;
};

</script>

</head>


<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" RethrowAjaxExceptions="True"></ext:ResourceManager>

<ext:Store ID="stoChartsName" runat="server" AutoLoad="True">
<Reader>
<ext:ArrayReader />
</Reader>
<Model>
<ext:Model ID="Model2" runat="server">
<Fields>
<ext:ModelField Name="INT_idCharts" Type="Int" Mapping="INT_idCharts" />
<ext:ModelField Name="STR_FriendlyName" type="String" mapping="STR_FriendlyName"/>
</Fields>
</ext:Model>
</Model>
</ext:Store>

<ext:Desktop
ID="MyDesktop"
runat="server">
<DesktopConfig ID="DesktopConfig1" runat="server">
</DesktopConfig>

<Modules>
<%-- Template window--%>
<ext:DesktopModule ModuleID="Template">
<Window>
<ext:Window
runat="server"
Icon="Table"
Width="800"
Height="380"
Layout="Fit"
Hidden="True"
ExpandOnShow="True"
MinHeight="100"
MinWidth="100"
Maximizable="False"
Resizable="False"
TitleCollapse="True"
Title="Chart template definition"
Collapsible="True">
<Items>
<ext:GridPanel
ID="grdTemplate"
runat="server"
Cls="x-grid-custom"
AutoScroll="False"
ColumnLines="True" >
<Store>
<ext:Store ID="stoChartsTemplate" runat="server" WarningOnDirty="False">
<Reader>
<ext:ArrayReader />
</Reader>
<Model>
<ext:Model ID="Model1" runat="server">
<Fields>
<ext:ModelField Name="INT_idTemplate" />
<ext:ModelField Name="STR_Template" />
<ext:ModelField Name="STR_ChartsInTemplateName" />
<ext:ModelField Name="STR_ChartsInTemplateValue" />
<ext:ModelField Name="BOOL_Private" />
<ext:ModelField Name="INT_idUser" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel6" runat="server">
<Columns>
<ext:Column Runat="server" ID="idTemplate" DataIndex="INT_idTemplate" MenuDisabled="True" Fixed="True" Groupable="False" Hideable="False" Resizable="False" Sortable="False" Width="30" Text="ID" Hidden="True">
</ext:Column>
<ext:Column Runat="server" Flex="1" ID="Template" DataIndex="STR_Template" MenuDisabled="True" Fixed="True" Groupable="False" Hideable="False" Resizable="False" Sortable="true" MinWidth="200" Text="Template">
<Editor>
<ext:TextField runat="server"></ext:TextField>
</Editor>
</ext:Column>
<ext:Column Runat="server" ID="ChartsInTemplate" DataIndex="STR_ChartsInTemplateValue" MenuDisabled="True" Fixed="True" Groupable="False" Hideable="False" Resizable="False" Sortable="true" Width="500" Text="Charts in template">
<Editor>
<ext:MultiCombo
ID="MultiCombo1"
Enabled="true"
runat="server"
Editable="false"
Width="500"
StoreID="stoChartsName"
AllowBlank="False"
EmptyText="Please choose a value..."
DisplayField="STR_FriendlyName"
ValueField="INT_idCharts">
<ListConfig ID="ListConfig33" runat="server" Cls="top-list">
</ListConfig>
</ext:MultiCombo>
</Editor>
<Renderer Fn="RendercboCharts" />
</ext:Column>
<ext:BooleanColumn
runat="server"
ID="Private"
DataIndex="BOOL_Private"
Width="200"
MenuDisabled="True"
Resizable="False"
Sortable="False"
Text="Template is Private"
TrueText="Yes"
FalseText="No" Fixed="True">
<Editor>
<ext:Checkbox ID="Changebox2" runat="server"></ext:Checkbox>
</Editor>
</ext:BooleanColumn >
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel6" runat="server">
</ext:RowSelectionModel>
</SelectionModel>
<TopBar>
<ext:Toolbar ID="Toolbar3" runat="server">
<Items>
<ext:Button ID="btnAddTemplate" runat="server" Text="Add a template" Icon="Add">
<Listeners>
<Click Fn="addNewRecord" />
</Listeners>
</ext:Button>
<ext:Button ID="btnDelTemplate" runat="server" Text="Remove a template" Icon="Delete">
<%-- <DirectEvents>
<Click OnEvent="btnDelTemplate_Click">
<ExtraParams>
<ext:Parameter Name="data" Value="#{grdTemplate}.getRowsValues({selectedOnly : true})" Mode="Raw" Encode="true"></ext:Parameter>
</ExtraParams>
</Click>
</DirectEvents> --%>
</ext:Button>
</Items>
</ext:Toolbar>
</TopBar>
<View>
<ext:GridView ID="GridView12" runat="server" />
</View>
<Plugins>
<ext:RowEditing ID="RowEditing5" runat="server" >
<%-- <DirectEvents>
<ValidateEdit OnEvent="UpdateTemplate">
<ExtraParams>
<ext:Parameter Name="data" Value="e.record.data" Mode="raw" Encode="true" ></ext:Parameter>
</ExtraParams>
</ValidateEdit>
</DirectEvents>--%>
<Listeners>
<CancelEdit Fn="cancelAddRecord" />
</Listeners>
</ext:RowEditing>
</Plugins>
</ext:GridPanel>
</Items>
</ext:Window>
</Window>
</ext:DesktopModule>


</Modules>

<StartMenu Height="300" Title="Start Here" runat="server" HideTools="True">
<MenuItems>
<ext:MenuItem Text="Tools" Icon="Wrench">
<Menu>
<ext:Menu ID="mnuTemplate" runat="server">
<Items>
<ext:MenuItem Text="Charts template" Icon="Eye">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('Template').createWindow();" />
</Listeners>
</ext:MenuItem>
</Items>
</ext:Menu>
</Menu>
</ext:MenuItem>
</MenuItems>
</StartMenu>
<TaskBar runat="server" TrayWidth="50">
<TrayClock runat="server" ></TrayClock>
</TaskBar>
</ext:Desktop>

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

Daniil
Apr 20, 2012, 6:10 PM
You should replace DirectEventArgs with EventArgs in the Page_Load signature.

protected void Page_Load(object sender, EventArgs e)

The Stores will be populated with the data.

Also you should remove Mapping with the Model2.

Though I am able to reproduce the problem.

If the issue persists on your side, please update Ext.NET from SVN and re-test.

feanor91
Apr 20, 2012, 6:29 PM
OK, I will try that monday.

But why I have to remove Model2?

And about SVN,I have today (3947 I think) version. You?

Daniil
Apr 20, 2012, 6:45 PM
But why I have to remove Model2?

Only Mapping.


And about SVN,I have today (3947 I think) version. You?

Well, the last is 3948, but it should not affect on the problem.

So, please ensure the sample reproduces the problem.

feanor91
Apr 23, 2012, 8:37 AM
Hello

I have made the changes you said, downloaded the last SVN version (3949) and it seems to work.

I will conduct test on the whole application.

feanor91
Apr 23, 2012, 8:44 AM
OK

Test page works but not the application...

In fact, it is more complicated, sometimes it works, and other not, on some windows it ididn't work at all...Seems to be a random problem.

feanor91
Apr 23, 2012, 2:04 PM
Perhaps I will say something wrong, but the problem seems to be like the mouse was not "captured" by the dropdown list, in fact, the grid selector continue to move when mouse mouve but not the selector in list....

Daniil
Apr 23, 2012, 2:54 PM
Yes, understand. But, unfortunately, still can't reproduce.

Generally, I have no idea what might be wrong.

feanor91
Apr 23, 2012, 3:00 PM
Of course you can't, this example works every time.

But it is really a major problem on my side.

I will try to give something that did'nt work.

feanor91
Apr 23, 2012, 3:06 PM
For yout information, I put the same code (from example but translated into VB) in my new page and it didn't work

feanor91
Apr 23, 2012, 3:32 PM
OK. See:



<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>


<script runat="server">
protected void Page_Load(object sender,EventArgs e)
{
// Load the data into the Store and DataBind.
this.stoChartsName.DataSource = this.stoChartsNameData;
this.stoChartsName.DataBind();
this.stoChartsTemplate.DataSource = this.stoChartsTemplateData;
this.stoChartsTemplate.DataBind();
}

private object[] stoChartsNameData
{
get
{
return new object[]
{
new object[] {12,"Abandon rate"},
new object[] {11,"Activity time split"},
new object[] {16,"Average handle time"},
new object[] {17,"Average seconds to answer"},
new object[] {22,"Back order value"},
new object[] {14,"Cost per contact"},
new object[] {24,"Costs (Transport & Waehouse)"},
new object[] {20,"Delivery attempt"},
new object[] {3,"ETFQ"},
new object[] {2,"ETTR"},
new object[] {13,"First call resolution"},
new object[] {23,"Inventory days"},
new object[] {25,"Inventory value"},
new object[] {15,"Occupancy"},
new object[] {6,"OOBF"},
new object[] {18,"Orders"},
new object[] {19,"Parcels shipped"},
new object[] {21,"Product driving back order"},
new object[] {9,"Product split"},
new object[] {1,"Repair by month"},
new object[] {4,"Repair cost"},
new object[] {5,"Stock out"},
new object[] {10,"Type of repair split"},
new object[] {7,"User requests calls & mail"},
new object[] {8,"User requests letters & fax"}
};
}
}


private object[] stoChartsTemplateData
{
get
{
return new object[]
{
new object[] {1,"Service","Activity time split,ETFQ,ETTR,OOBF,Product split,Repair by month,Repair cost,Stock out,Type of repair split,User requests calls & mail,User requests letters & fax",new int[] { 11, 3, 2, 6, 9, 1, 4, 5, 10, 7, 8 },false,20},
new object[] {2,"Logistic","Back order value,Costs (Transport & Warehouse),Delivery attempt,Inventory days,Inventory value,Orders,Parcels shipped,Product driving back order",new int[] {22,24,20,23,25,18,19,21},false,20},
new object[] {3,"Service & Logistic","Activity time split,ETFQ,ETTR,OOBF,Product split,Repair by month,Repair cost,Stock out,Type of repair split,User requests calls & mail,User requests letters & fax,Back order value,Costs (Transport & Waehouse),Delivery attempt,Inventory days,Inventory value,Orders,Parcels shipped,Product driving back order",new int[] {11,3,2,6,9,1,4,5,10,7,8,22,24,20,23,25,18,19,21}, false,20},
new object[] {4,"Call center","Abandon rate,Average handle time,Average seconds to answer,Cost per contact,First call resolution,Occupancy",new int[] {12,16,17,14,13,15},false,20},
new object[] {6,"All charts","Abandon rate,Activity time split,Average handle time,Average seconds to answer,Back order value,Cost per contact,Costs (Transport & Warehouse),Delivery attempt,ETFQ,ETTR,First call resolution,Inventory days,Inventory value,Occupancy,OOBF,Orders,Parcels shipped,Product driving back order,Product split,Repair by month,Repair cost,Stock out,Type of repair split,User requests calls & mail,User requests letters & fax",new int[] {12,11,16,17,22,14,24,20,3,2,13,23,25,15,6,18,19,2 1,9,1,4,5,10,7,8},false,20}
};
}
}


protected void PanelChange(object sender,EventArgs e)
{}

protected void UpdatePanelPreference(object sender,EventArgs e)
{}

protected void btnRestorePanel_Click(object sender,EventArgs e)
{}

protected void btnShowEntities_Click(object sender,EventArgs e)
{}

protected void UpdateExpandDefault(object sender,EventArgs e)
{}


protected void btnDelTemplate_Click(object sender,EventArgs e)
{}

protected void UpdateTemplate(object sender,EventArgs e)
{}

</script>

<!DOCTYPE html protected "-//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 id="Head1" runat="server">
<title>ResMed Global KPIs</title>

<ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" runat="server" Mode="ScriptFiles" />

<script type="text/javascript">

var cancelAddRecord = function ()
{

//var gridName = returnName( this );
var grid = this.grid;

grid.editingPlugin.cancelEdit();
var s = grid.getSelectionModel().getSelection();

for ( var i = 0, r; r = s[i]; i++ )
{
//grid.store.remove( r );
};
grid.store.reload();
};

var addNewRecord = function ()
{



var gridName = this.id.substr( 6 );
var grid = Ext.getCmp( "grd" + gridName );

grid.editingPlugin.cancelEdit();

switch ( gridName )
{
case "Template":
grid.store.insert( 0, {
STR_Template: "New template name",
STR_ChartsInTemplate: "",
BOOL_Private: false,
INT_idUser: 0
} );
break;

}

grid.getView().refresh();
grid.editingPlugin.startEdit( 0, 0 );
};

RendercboCharts = function ( value, p, record )
{
return record.data.STR_ChartsInTemplateName;
};

</script>

<style type="text/css">
body {
background-repeat: no-repeat;
background-position: center center;
z-index: -1;
}

.top-list {
z-index:25000 !important;
}

.start-button {
background-image: url(images/Icons/vista_start_button.gif) !important;
}

.icon-target {
background-image: url("images/Icons/Target.png") !important;
}

.icon-measure {
background-image: url("images/Icons/Measure.gif") !important;
}

.x-red
{
color:Red;
}

.x-blue
{
color:blue;
}

.desktopEl {
position: absolute !important;
}

.x-grid3-row {
border-color: #1050FF;
border-top-color: #1050FF;
}
.x-grid-with-col-lines .x-grid3-row td.x-grid3-cell {
border-right-color: #1050FF;
border-left-color: #1050FF;
}
.x-grid-with-col-lines .x-grid3-row td.x-grid3-cell {
padding-right: 0;
border-right: 1px solid;
}

.x-grid-custom .x-grid-row TD {
font : 12px/16px "segoe ui",arial,sans-serif;
}

.x-grid-custom .x-column-header {
background : #718CA1 url(images/Grid/header_sprite.png) repeat scroll 0 bottom;
font : 12px/16px "segoe ui",arial,sans-serif;
height : 22px;
border-left-color : #6085A5;
border-right-color : #728BA1;
}

.x-grid-custom .x-column-header-over {
background : #ebf3fd url(images/Grid/header_sprite_over.png) repeat 0 bottom !important;
}

.x-grid-custom .x-column-header div {
color : white;
}

.x-grid-custom .company-link {
color : #0E3D4F;
}

.x-grid-custom .x-column-header-trigger {
background : #718CA1 url(images/Grid/grid3-hd-btn.png) no-repeat left center;
}

.x-grid-custom .x-grid-row-alt {
background-color : #DAE2E8;
}

.x-grid-custom .x-grid-row-over .x-grid-cell {
border-color : #728BA1;
background : url(images/Grid/row-over.png);
}

.x-grid-custom .x-grid-row-selected .x-grid-cell {
background : url(images/Grid/row-selected.png) repeat-x scroll 0 0 #7BBBCF;
border-color : #728BA1;
border-style : solid;
}

.x-grid-custom .x-grid-row-selected TD,
.x-grid-custom .x-grid-row-selected TD .company-link {
color : #fff;
}

.x-grid-custom .x-toolbar .x-toolbar-text {
color : #fff !important;
}

.x-grid-custom .x-toolbar {
background : url(images/Grid/toolbar-bg.png) repeat-x 0 0 !important;
}

.x-grid-custom .x-tbar-loading {
background-image : url(images/Grid/refresh.gif) !important;
}

.x-grid-custom .x-tbar-page-first {
background-image : url(images/Grid/page-first.gif) !important;
}

.x-grid-custom .x-tbar-page-last {
background-image : url(vpage-last.gif) !important;
}

.x-grid-custom .x-tbar-page-next {
background-image : url(images/Grid/page-next.gif) !important;
}

.x-grid-custom .x-tbar-page-prev {
background-image : url(images/Grid/page-prev.gif) !important;
}

.x-grid-custom .x-paging-info {
color : #fff;
}
</style>

</head>

<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" RethrowAjaxExceptions="True">

</ext:ResourceManager>
<%-- Data stores--%>
<ext:Store ID="stoChartsName" runat="server" AutoLoad="True">
<Reader>
<ext:ArrayReader />
</Reader>
<Model>
<ext:Model ID="Model2" runat="server">
<Fields>
<ext:ModelField Name="INT_idCharts" Type="Int" />
<ext:ModelField Name="STR_FriendlyName" type="String" />
</Fields>
</ext:Model>
</Model>
</ext:Store>

<ext:Desktop
ID="MyDesktop"
runat="server">
<DesktopConfig ID="DesktopConfig1" Wallpaper="images/DesktopImages/RmdDesktop.jpg" WallpaperStretch="True" runat="server" Icons="start-button">
</DesktopConfig>

<Modules>

<%-- Template window--%>
<ext:DesktopModule ModuleID="Template">
<Window>
<ext:Window ID="wndTemplate"
runat="server"
Icon="Table"
Width="800"
Height="380"
Layout="Fit"
Hidden="True"
ExpandOnShow="True"
MinHeight="100"
MinWidth="100"
Maximizable="False"
Resizable="False"
TitleCollapse="True"
Title="Chart template definition"
Collapsible="True" CloseAction="Destroy">
<Items>
<ext:GridPanel
ID="grdTemplate"
runat="server"
Cls="x-grid-custom"
AutoScroll="False"
ColumnLines="True">
<Store>
<ext:Store ID="stoChartsTemplate" runat="server" WarningOnDirty="False">
<Reader>
<ext:ArrayReader />
</Reader>
<Model>
<ext:Model ID="Model1" runat="server">
<Fields>
<ext:ModelField Name="INT_idTemplate" />
<ext:ModelField Name="STR_Template" />
<ext:ModelField Name="STR_ChartsInTemplateName" />
<ext:ModelField Name="STR_ChartsInTemplateValue" />
<ext:ModelField Name="BOOL_Private" />
<ext:ModelField Name="INT_idUser" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel ID="cmTemplate" runat="server">
<Columns>
<ext:Column Runat="server" ID="idTemplate" DataIndex="INT_idTemplate" MenuDisabled="True" Fixed="True" Groupable="False" Hideable="False" Resizable="False" Sortable="False" Width="30" Text="ID" Hidden="True">
</ext:Column>
<ext:Column Runat="server" Flex="1" ID="Template" DataIndex="STR_Template" MenuDisabled="True" Fixed="True" Groupable="False" Hideable="False" Resizable="False" Sortable="true" MinWidth="200" Text="Template">
<Editor>
<ext:TextField ID="TextField1" runat="server"></ext:TextField>
</Editor>
</ext:Column>
<ext:Column Runat="server" ID="ChartsInTemplate" DataIndex="STR_ChartsInTemplateValue" MenuDisabled="True" Fixed="True" Groupable="False" Hideable="False" Resizable="False" Sortable="true" Width="500" Text="Charts in template">
<Editor>
<ext:MultiCombo
ID="cboMultiChartsTemplate"
Enabled="true"
runat="server"
Editable="false"
Width="500"
AllowBlank="False"
EmptyText="Please choose a value..."
DisplayField="STR_FriendlyName"
ValueField="INT_idCharts" FireSelectOnLoad="True"
StoreID="stoChartsName">
<ListConfig ID="ListConfig33" runat="server" Cls="top-list">
</ListConfig>
</ext:MultiCombo>
</Editor>
<Renderer Fn="RendercboCharts" />
</ext:Column>
<ext:BooleanColumn
runat="server"
ID="Private"
DataIndex="BOOL_Private"
Width="200"
MenuDisabled="True"
Resizable="False"
Sortable="False"
Text="Template is Private"
TrueText="Yes"
FalseText="No" Fixed="True">
<Editor>
<ext:Checkbox ID="Changebox2" runat="server"></ext:Checkbox>
</Editor>
</ext:BooleanColumn >
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel6" runat="server">
</ext:RowSelectionModel>
</SelectionModel>
<TopBar>
<ext:Toolbar ID="Toolbar3" runat="server">
<Items>
<ext:Button ID="btnAddTemplate" runat="server" Text="Add a template" Icon="Add">
<Listeners>
<Click Fn="addNewRecord" />
</Listeners>
</ext:Button>
<ext:Button ID="btnDelTemplate" runat="server" Text="Remove a template" Icon="Delete">
<DirectEvents>
<Click OnEvent="btnDelTemplate_Click">
<ExtraParams>
<ext:Parameter Name="data" Value="#{grdTemplate}.getRowsValues({selectedOnly : true})" Mode="Raw" Encode="true"></ext:Parameter>
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
</Items>
</ext:Toolbar>
</TopBar>
<View>
<ext:GridView ID="GridView12" runat="server" ToFrontOnShow="False" />
</View>
<Plugins>
<ext:RowEditing ID="RowEditing5" runat="server" >
<DirectEvents>
<ValidateEdit OnEvent="UpdateTemplate">
<ExtraParams>
<ext:Parameter Name="data" Value="e.record.data" Mode="raw" Encode="true" ></ext:Parameter>
</ExtraParams>
</ValidateEdit>
</DirectEvents>
<Listeners>
<CancelEdit Fn="cancelAddRecord" />
</Listeners>
</ext:RowEditing>
</Plugins>
</ext:GridPanel>
</Items>
</ext:Window>
</Window>
</ext:DesktopModule>


<%-- dataGrid window--%>
<ext:DesktopModule ModuleID="Data" AutoRun="True">
<Window>
<ext:Window ID="Window1"
runat="server"
icon="Table"
X="1"
Y="1"
Hidden="True"
ExpandOnShow="True"
MinHeight="640"
MinWidth="480"
Title="Entity data"
Layout="FitLayout"
Width="1024"
Height="600"
Collapsible="true"
TitleCollapse="true" Maximized="True">
<Content>
<ext:TabPanel ID="tabMain" runat="server" >
<Items>
<ext:Panel ID="tabOSA" runat="server" Title="OSA" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
<ext:Panel ID="tabMASK" runat="server" Title="Masks" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
<ext:Panel ID="tabVEN" runat="server" Title="Ventilation" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
<ext:Panel ID="tabTPP" runat="server" Title="3rd Party products" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
<ext:Panel ID="tabATS" runat="server" Title="Activity Type split" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
<ext:Panel ID="tabTRS" runat="server" Title="Type of repair split" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
<ext:Panel ID="tabPS" runat="server" Title="Product split" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
<ext:Panel ID="tabFCC" runat="server" Title=" For Call centers" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
<ext:Panel ID="tabLO_OM" runat="server" Title="Order metrics" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
<ext:Panel ID="tabLO_AVA" runat="server" Title="Availability" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
<ext:Panel ID="tabFI" runat="server" Title="Financials" Layout="FitLayout" Closable="true" CloseAction="Hide">
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:Panel>
</Items>
<DirectEvents>
<Show OnEvent="PanelChange"></Show>
<Close OnEvent="UpdatePanelPreference"></Close>
</DirectEvents>
</ext:TabPanel>
</Content>
<TopBar>
<ext:Toolbar ID="tbEntities" runat="server" >
<Items>
<ext:Panel ID="Panel1" runat="server" Layout="HBoxLayout" BaseCls="x-plain" Width="800px" Height="25px">
<LayoutConfig>
<ext:HBoxLayoutConfig Align="Middle" />
</LayoutConfig>
<Items>
<ext:Button ID="btnRestorePanel" runat="server" Text="Restore panel">
<DirectEvents>
<Click OnEvent="btnRestorePanel_Click"></Click>
</DirectEvents>
</ext:Button>
<ext:Button ID="btnShowEntities" runat="server" Text="Show all entities">
<DirectEvents>
<Click OnEvent="btnShowEntities_Click"></Click>
</DirectEvents>
</ext:Button>
<ext:Panel ID="Panel2" runat="server" BaseCls="x-plain" Flex="1" />
<ext:Checkbox ID="chkExpandDefault" runat="server" FieldLabel="Expand my entity">
<DirectEvents>
<Change OnEvent="UpdateExpandDefault"></Change>
</DirectEvents>
</ext:Checkbox>
<ext:Panel ID="Panel9" runat="server" BaseCls="x-plain" Flex="3" />
<ext:Label ID="Label1" runat="server" Text="Red : estimated value" Cls="x-red"></ext:Label>
<ext:Label ID="Label2" runat="server" Text="Blue : measured value" Cls="x-blue"></ext:Label>
</Items>
</ext:Panel>
</Items>
</ext:Toolbar>
</TopBar>
</ext:Window>
</Window>
</ext:DesktopModule>

</Modules>

<StartMenu ID="StartMenu1" Height="300" Title="Start Here" runat="server" HideTools="True">
<MenuItems>
<ext:MenuItem Text="About..." Icon="Information">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('About').createWindow();" />
</Listeners>
</ext:MenuItem>
<ext:MenuItem Text="Help" Icon="Help">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('Help').createWindow();" />
</Listeners>
</ext:MenuItem>
<ext:MenuSeparator />
<ext:MenuItem Text="Enter monthly data" Icon="Add">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('Data').createWindow();" />
</Listeners>
</ext:MenuItem>
<ext:MenuItem Text="Dashboard" Icon="Eye">
<Listeners>
<Click Handler="#{wndDashboard}.show();" />
</Listeners>
</ext:MenuItem>
<ext:MenuItem Text="Print charts" Icon="Printer">
<Menu>
<ext:Menu ID="Menu1" runat="server">
<Items>
<ext:MenuItem Text="Service" Icon="Eye">
<Listeners>
<Click Handler="#{wndProductCharts}.show();" />
</Listeners>
</ext:MenuItem>
<ext:MenuItem Text="Call center" Icon="Eye">
<Listeners>
<Click Handler="#{wndCallCenterCharts}.show();" />
</Listeners>
</ext:MenuItem>
<ext:MenuItem Text="Logistics" Icon="Eye">
<Listeners>
<Click Handler="#{wndLogisticCharts}.show();" />
</Listeners>
</ext:MenuItem>
</Items>
</ext:Menu>
</Menu>
</ext:MenuItem>
<ext:MenuItem Text="Tools" Icon="Wrench">
<Menu>
<ext:Menu ID="mnuTemplate" runat="server">
<Items>
<ext:MenuItem Text="Charts template" Icon="Eye">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('Template').createWindow();" />
</Listeners>
</ext:MenuItem>
<ext:MenuItem id="mnuAdministration" Text="Administration" Icon="Wrench" HideOnClick="false" Visible="false">
<Menu>
<ext:Menu ID="Menu2" runat="server">
<Items>
<ext:MenuItem Text="World region" Icon="Table">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('Region').createWindow();" />
</Listeners>
</ext:MenuItem>
<ext:MenuItem Text="Country" Icon="Table">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('Country').createWindow();" />
</Listeners>
</ext:MenuItem>
<ext:MenuItem Text="Entities" Icon="Table">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('Entities').createWindow();" />
</Listeners>
</ext:MenuItem>
<ext:MenuItem Text="Users" Icon="Table">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('Users').createWindow();" />
</Listeners>
</ext:MenuItem>
</Items>
</ext:Menu>
</Menu>
</ext:MenuItem>
</Items>
</ext:Menu>
</Menu>
</ext:MenuItem>
</MenuItems>
</StartMenu>

<TaskBar ID="TaskBar1" runat="server" TrayWidth="50">
<TrayClock ID="TrayClock1" runat="server" ></TrayClock>
</TaskBar>
</ext:Desktop>

<%-- Charts windows--%>
<div>
<ext:Window
Title='Dashboard'
runat="server"
AutoDataBind="true"
Modal="false"
ID="wndDashboard"
Maximized="true"
TitleCollapse="true"
Hidden="false" Collapsible="True" MinWidth="800" MinHeight="600" AutoRender="False">
</ext:Window>

<ext:Window
Title='Product charts'
runat="server"
AutoDataBind="true"
Modal="false"
ID="wndProductCharts"
Width="900"
Height="670"
Hidden="false" AutoRender="False">
</ext:Window>

<ext:Window
Title='Call center charts'
runat="server"
AutoDataBind="true"
Modal="false"
ID="wndCallCenterCharts"
Width="900"
Height="670"
Hidden="false" AutoRender="False">
</ext:Window>

<ext:Window
Title='Logistic charts'
runat="server"
AutoDataBind="true"
Modal="false"
ID="wndLogisticCharts"
Width="900"
Height="670"
Hidden="false" AutoRender="False">
</ext:Window>
</div>


</form>
</body>

</html>


Here this code conduct to the problem (and the one in the related thread on combobox element not selected) you have one exemple with multiple problem.

I let only the needed code.

Hope this will conduct to the problem on your side. Perhaps you have to try more than one time because, sometime (in my production code) it works, but during conception of this code, it always had the problem.

For the CSS part (to see related thread here : http://forums.ext.net/showthread.php?18544-Proble-with-combobox-in-window&p=80169&posted=1#post80169), you will have to change the URL of the image

To see in action use the tool->Template menu (other menu will not works)

Edit 1: update code to make store working
Edit 2 : updated code to have an array of int for multi combo value to have the vline selected in the dropdown list

Daniil
Apr 23, 2012, 8:05 PM
To see in action use the tool->Template menu (other menu will not works)

Do you mean "Charts template"?

I'm getting:

"The resource cannot be found."
Requested URL: /jsonDAL/ReturnJsonTemplate.aspx

feanor91
Apr 24, 2012, 8:04 AM
Yes.

I have change the code, I forgot to change the json reader to array reader in the code. Now it must works.

And I always have the problem with the dropdownlist.

Edit : I have update Ext version to current (3950) but no change.

Daniil
Apr 24, 2012, 12:05 PM
I think

z-index: 25000;
is too small.

Please try to increase:

.top-list {
z-index: 99999 !important;
}

feanor91
Apr 24, 2012, 12:25 PM
Thank you very much, it was that.

Combobox works now.