[CLOSED] Proble with combobox in window

Page 1 of 3 123 LastLast
  1. #1

    [CLOSED] Proble with combobox in window

    Hello

    dropdown list of combobox seem to not works as wenated :

    Chrome:
    dropdown pass behind window
    Click image for larger version. 

Name:	cboPb.jpg 
Views:	127 
Size:	72.8 KB 
ID:	4145

    IE:
    items in dropdown list are not selectable
    Click image for larger version. 

Name:	cboPbIE.jpg 
Views:	103 
Size:	57.3 KB 
ID:	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
    Click image for larger version. 

Name:	cboPbFF.jpg 
Views:	83 
Size:	62.0 KB 
ID:	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;
    }
    Last edited by Daniil; Apr 24, 2012 at 11:42 AM. Reason: [CLOSED]
  2. #2
    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.
  3. #3
    Hi,

    I am unable to reproduce. Could you provide a full sample?
  4. #4
    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_Charts)) '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.Cookies("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_Template)) '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.
  5. #5
    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
  6. #6
    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.
  7. #7
    Quote Originally Posted by feanor91 View Post
    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.
  8. #8
    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>
  9. #9
    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.
  10. #10
    OK, I will try that monday.

    But why I have to remove Model2?

    And about SVN,I have today (3947 I think) version. You?
Page 1 of 3 123 LastLast

Similar Threads

  1. Add a combobox to Window
    By fac in forum 1.x Help
    Replies: 0
    Last Post: Feb 15, 2012, 6:05 AM
  2. Window with ComboBox in IE8
    By SouthDeveloper in forum 1.x Help
    Replies: 1
    Last Post: Oct 13, 2009, 6:41 PM
  3. Replies: 2
    Last Post: Aug 10, 2009, 5:28 PM
  4. Replies: 5
    Last Post: Jun 16, 2009, 1:27 PM
  5. how to reload ComboBox from Ext Window
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 26, 2008, 2:15 PM

Posting Permissions