PDA

View Full Version : [CLOSED] Combobox and Case Sensitive Search + EnableRegEx



Zdenek
Jan 18, 2015, 3:06 PM
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


<%@ 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>

Dimitris
Jan 22, 2015, 3:20 PM
Hello,

I think it is an open issue.

The related discussion is here: http://forums.ext.net/showthread.php?25889-OPEN-320-RegEx-Case-sensitive