Jan 29, 2015, 3:41 AM
[FIXED] [3.1.0] ComboBox Space key select the first item
Last edited by Dimitris; Feb 10, 2015 at 12:45 PM.
<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>
Ext.getVersion();
I still cannot reproduce. I am trying with exactly your code except these two changes required to run it:<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.