[CLOSED] [#537] Combobox Case Insensitive Value Matching

  1. #1

    [CLOSED] [#537] Combobox Case Insensitive Value Matching

    Hi there

    Is it possible to have the Combobox not be case sensitive when matching values to those in the store?

    For example, the Combobox value is set to "Mr" but the value in the store is "MR", the combo will not select the appropriate record. I'd like it to match Mr and MR, if possible.

    Cheers

    Peter
    Last edited by Daniil; Sep 04, 2014 at 4:43 AM. Reason: [CLOSED] [#537]
  2. #2
  3. #3
    Thanks Daniil.

    You can close the thread, but is there any plans to bring the caseSensitive config option from 4.2.2 to Ext.net?

    Cheers

    Peter
  4. #4
    The property has appeared in ExtJS 4.2.1, so, we can add it. Thank you for pointing that out.

    Though, it is false by default and it actually works. If type "item", it shows all the items. So, it is case insensitive. It should also work like that on your page unless you use some old version of Ext.NET v2.

    Example
    <%@ Page Language="C#" %>
    
    <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", "Item 1" },
                    new object[] { "2", "Item 2" },
                    new object[] { "3", "Item 3" }
                };
            }
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:ComboBox 
                ID="ComboBox1" 
                runat="server" 
                DisplayField="text" 
                ValueField="value"
                QueryMode="Local">
                <Store>
                    <ext:Store runat="server">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="value" />
                                    <ext:ModelField Name="text" />
                                </Fields>
                            </ext:Model>
                        </Model>
                        <Reader>
                            <ext:ArrayReader />
                        </Reader>
                    </ext:Store>
                </Store>
            </ext:ComboBox>
        </form>
    </body>
    </html>
    Anyway, I've created an Issue for missing CaseSensitive property.
    https://github.com/extnet/Ext.NET/issues/537

    The property has been added in the SVN trunk in the revision #5950.

Similar Threads

  1. Replies: 12
    Last Post: Nov 15, 2013, 3:34 AM
  2. [CLOSED] Password matching
    By ViDom in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Jun 21, 2013, 2:41 PM
  3. Replies: 7
    Last Post: Dec 18, 2012, 6:58 PM
  4. [CLOSED] Need ability to search combobox items by lower case or upper case
    By wisdomchuck in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 23, 2012, 1:40 PM
  5. [CLOSED] GridPanel sortable: case insensitive
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 05, 2010, 2:27 PM

Tags for this Thread

Posting Permissions