I am using the combobox in a datatable. The values appear correctly in the combobox, but once I sel

I am using the combobox in a datatable. The values appear correctly in the combobox, but once I select the value and the editor closes, the datatable shows the id instead of the value.

Here i am loading options using "url"

this.config.suggest = {
    view: "suggest",
    body: {
        url: function () {
            return webix.ajax().headers({
                Accept: 'application/json; charset=utf-8'
            }).get("abc/childelements/0/58/1").then(function (data) {
                var recs = data.json().ROOT && data.json().ROOT.I;
                Ext.each(recs, function (item) {
                    item.id = item.ID;
                    item.value = item.TEXT;
                });
                return recs;
            });
        }
    }
};

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion