Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

mutiComboBox issue

$
0
0
Hello,

Thank you for this new release 5.0. You did a great job.

I was looking at the mutiComboBox as show in the example:
http://www.smartclient.com/smartgwt/showcase/#multicombobox_category

I implemented the component and I was wondering it is normal that once I typed "abc" in the input field, I cannot deleted the first letter anymore. The field stays with the letter "a". So I cannot look for an item starting with "b"

Furthermore, I adapted the sample as the following:

Code:

        final MultiComboBoxItem codeItem = new MultiComboBoxItem("code", "Code");
        codeItem.setOptionDataSource(CodeXmlDS.getInstance());
        codeItem.setDisplayField("code");
        codeItem.setValueField("code");
        codeItem.setAutoFetchData(true);
        codeItem.setLayoutStyle(initialLayoutStyle);

Code:

public class CodeXmlDS extends DataSource {
    private static CodeXmlDS instance = null;

    public static CodeXmlDS getInstance() {
        if (instance == null) {
            instance = new CodeXmlDS("codeDS");
        }
        return instance;
    }

    public CodeXmlDS(String id) {
        setID(id);
        setRecordXPath("/List/r");
        DataSourceTextField codeField = new DataSourceTextField("code", "Code", 10, true);
        setFields(codeField);

        setDataURL("data/code.data.xml");

        setClientOnly(true);
    }

}

Find the data of my datasource in attachement.

I would like to add the code "1.1". However, once I typed "1", the form automatically select the value (c.f. screenshot). How can I prevent the form to automatically select "1" and allow me to select "1.1"?

Thanks you for your help

Regards,
Samuel

Here is my configuration:
- Smartgwt version: Isomorphic SmartClient/SmartGWT Framework (v10.0p_2014-10-21/PowerEdition Deployment 2014-10-21)

- Internet explorer 10.0.9200

Attached Images
File Type: png Capture.PNG (1.6 KB)
Attached Files
File Type: xml code.data.xml (10.0 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles