Hi,

I try to control the minimum number of characters entered in a GeocoderComboBox 
befor the combobox gets filled with suggestions. The combobox is within an item 
in a bbar and I set the option right after setting the xtype. As far as I can 
see from the documentation the default value is set the 3, but even if I do not 
set the minChar option at all the combobox will be filled with suggestions 
right after I punched in the first character.

Is there anything specific that I am missing?

Thanks in advance for your replies,
Tom

bbar: [{
    xtype: "gx_geocodercombo",
    hideTrigger: true,
    emptyText: 'Type address here',
    minChars: 4,
    width: 350,
    layer: locationLayer,
    queryParam: "CQL_FILTER",
    store: new Ext.data.Store({
        reader: new GeoExt.data.FeatureReader({}, [
            {name: 'name', mapping: 'search'},
            {name: 'no_mod', mapping: 'no_mod'},
            {name: 'pm_mod', mapping: 'pm_mod'},
            {name: 'bounds', convert: function(v, feature) {
                return feature.geometry.getBounds().toArray();
             }},
            {name: "lonlat", convert: function(v, feature) {
                return feature.geometry.getBounds().toArray();
            }}
        ]),
        proxy: new GeoExt.data.ProtocolProxy({
            protocol: new OpenLayers.Protocol.Script({
                url: "http://server:port/geoserver/wfs";,
                callbackKey: "format_options",
                callbackPrefix: "callback:",
                params: {
                    service: "WFS",
                    version: "1.1.0",
                    srsName: "EPSG:4326",
                    maxFeatures: 10,
                    request: "GetFeature",
                    typeName: "SYS:test_900913_utf8",
                    outputFormat: "json"
                }
            })
        })
    }
}]
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to