Jan 18, 2015, 3:06 PM
[CLOSED] Combobox and Case Sensitive Search + EnableRegEx
Hello
I have a toruble with EnableRegEx
once set to true, I can match "inside the string", howvever only case sensitive
if set back to false, its case insensitive
Problem can be demonstrated using code below
So I would like to
type "mra" and get filtered "Ferda Mravenec"
It works only if I type "Mra"
Thanks
Zdenek
I have a toruble with EnableRegEx
once set to true, I can match "inside the string", howvever only case sensitive
if set back to false, its case insensitive
Problem can be demonstrated using code below
So I would like to
type "mra" and get filtered "Ferda Mravenec"
It works only if I type "Mra"
Thanks
Zdenek
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
Store store = this.ComboBox1.GetStore();
store.DataSource = new object[]
{
new object[] { "1", "Ferda Mravenec" },
new object[] { "2", "Brouk Pytlik" },
new object[] { "3", "Slunicko Sedmitecne" },
};
store.DataBind();
}
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:ComboBox
ID="ComboBox1"
runat="server"
QueryMode="Local"
CaseSensitive="false"
EnableRegEx="true">
<Store>
<ext:Store runat="server">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="value" />
<ext:ModelField Name="text" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
</ext:ComboBox>
</body>
</html>
Last edited by Daniil; Jan 30, 2015 at 1:43 PM.
Reason: [CLOSED]