[FIXED] [3.1.0] ComboBox Space key select the first item

Page 1 of 2 12 LastLast
  1. #1

    [FIXED] [3.1.0] ComboBox Space key select the first item

    Hello

    I have this problem (see the link)

    http://www.sencha.com/forum/showthre...box-type-SPACE
    Last edited by Dimitris; Feb 10, 2015 at 12:45 PM.
  2. #2
    Hi @foswha,

    Welcome to the Ext.NET forums!

    Thank you for the report! I think this problem has been already fixed in SVN.

    Please download the sources from SVN trunk and build the solution.
    http://svn.ext.net/premium/trunk

    How to download the Ext.NET sources from SVN
  3. #3

    Incremental Search

    Sorry the problem is with this code than is a incrmental search, when you type for example 4 chars and then press space bar this trigger select item (sorry my inglish) soo i can't continuo searching this problems is with 3.x version there is no problem wirh 2.x version

    <ext:ComboBox ID="SeachBox" runat="server" DisplayField="nomb" ValueField="codigo" MarginSpec="0 2 0 0"   
                                FieldLabel="Usuario" LabelWidth="45"  EmptyText="Escriba tres caracteres..." 
                                TypeAhead="false" Width="450" PageSize="10" HideBaseTrigger="true" MinChars="3" Icon="Magnifier">
                                <ListConfig LoadingText="Buscando..." ID="SeachBoxctl32">
                                    <ItemTpl ID="ItemTpl1" runat="server">
                                        <Html>
                                            <div class="search-item">
                                             <h3>{nomb}</h3>{aula}
                                         </div>
                                        </Html>
                                    </ItemTpl>
                                </ListConfig>
                                <Store>
                                    <ext:Store ID="Store1" runat="server" AutoLoad="false">
                                        <Proxy>
                                            <ext:AjaxProxy Url="..\components\StudentSeachBox.ashx?edus4s5d4sas1212asas">
                                                <ActionMethods Read="POST" />
                                                <Reader>
                                                    <ext:JsonReader RootProperty="students" TotalProperty="total" />
                                                </Reader>
                                            </ext:AjaxProxy>
                                        </Proxy>
                                        <Parameters>
                                            <ext:StoreParameter Name="aula" Value="#{AulaHidden}.getValue()" Mode="Raw" />
                                            <ext:StoreParameter Name="tabla" Value="#{TablaHidden}.getValue()" Mode="Raw" />
                                        </Parameters>
                                        <Model>
                                            <ext:Model ID="Model3" runat="server">
                                                <Fields>
                                                    <ext:ModelField Name="nomb" />
                                                    <ext:ModelField Name="codigo" />
                                                    <ext:ModelField Name="aula" />
                                                </Fields>
                                            </ext:Model>
                                        </Model>
                                    </ext:Store>
                                </Store>
                                <Listeners>
                                    <Select Handler="
                                                    App.direct.getData(#{SeachBox}.getValue(), {
                                                    eventMask: {
                                                        showMask: true,
                                                        msg: 'Cargando...'
                                                    }
                                                });"/>
                                </Listeners>
                       
                            </ext:ComboBox>
    Last edited by Daniil; Jan 29, 2015 at 4:57 PM.
  4. #4
    Repeat myself, I think this problem has been already fixed in SVN. Please clarify have you tried to update?
  5. #5
    Daniil

    I freely downloaded from svn trunk I re build it and the same problem remains
  6. #6
    Please run this in a browser's JavaScript console. What does it return?
    Ext.getVersion();
    I still cannot reproduce. I am trying with exactly your code except these two changes required to run it:

    1. Removed this, because there is no AulaHidden and TablaHidden in your code snipped.
    <Parameters>
        <ext:StoreParameter Name="aula" Value="#{AulaHidden}.getValue()" Mode="Raw" />
        <ext:StoreParameter Name="tabla" Value="#{TablaHidden}.getValue()" Mode="Raw" />
    </Parameters>
    2. Changed the AjaxProxy's Url to
    <ext:AjaxProxy Url="StudentSeachBox.ashx">
    and set up this handler:
    using System.Web;
    using Ext.Net;
    
    namespace Work3
    {
        public class StudentSeachBox : IHttpHandler
        {
    
            public void ProcessRequest(HttpContext context)
            {
                HttpContext.Current.Response.ContentType = "text/html";
    
                HttpContext.Current.Response.Write(JSON.Serialize(new
                {
                    students = new object[]
                    {
                        new 
                        {
                            nomb = "Some nomb",
                            codigo = "Some codigo",
                            aula = "Some aula"
    
                        },
    
                        new 
                        {
                            nomb = "Some",
                            codigo = "Some",
                            aula = "Some"
    
                        }
                    }
                }));
            }
    
            public bool IsReusable
            {
                get
                {
                    return false;
                }
            }
        }
    }
    I am pretty sure both the changes doesn't affect on issue at all.

    My steps:

    1. Type "Some".
    2. Type a space.
    3. It doesn't select an item; the focus is still inside the input field; I can continue typing.

    Tested with the latest Ext.NET from SVN trunk and in IE10, Chrome and FireFox.
  7. #7
  8. #8
    It means that you use Ext.NET 3.0, not the latest from SVN trunk. ExtJS version is 5.1.0... there.

    I freely downloaded from svn trunk I re build it and the same problem remains
    Please clarify have you referred the new dlls in your project?
  9. #9
    Dear Daniil

    I did it this way (see the picture) and then opened it in vs2013 and gave him Rebuild , then copy the DLL to my solution
    (ext.dll it only weighs 58kb) I reference it to my solution and now have several erros please wich are the steps to download and generate SVN correctly apologize is the first time that I do this
    Attached Thumbnails Click image for larger version. 

Name:	svn.jpg 
Views:	3 
Size:	87.7 KB 
ID:	19982  
  10. #10
    and now have several erros
    What are the errors?
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 10
    Last Post: Apr 18, 2016, 6:26 AM
  2. Replies: 1
    Last Post: Oct 10, 2013, 8:12 PM
  3. I can not select any item in combobox
    By marco.amusquivar in forum 1.x Help
    Replies: 1
    Last Post: Mar 21, 2012, 8:09 PM
  4. Replies: 0
    Last Post: Sep 20, 2010, 8:56 PM
  5. Select a item in a Combobox
    By eliezer in forum 1.x Help
    Replies: 1
    Last Post: Apr 16, 2009, 12:23 PM

Posting Permissions