How to apply Ext.Net V2 Combobox control on Html Input control with Combobox Applyto property?

StackOverflow https://stackoverflow.com/questions/18186927

Вопрос

I am trying to apply ext.net V2 combobox on HTML Input control Dynamicly. Its work fine in ext.net V1 but not working with V 2.

new Ext.form.ComboBox({
                                editable: false,
                                store: storeGender,
                                listeners: {
                                    select: function () {
                                        if (this.oldValue == this.value) {
                                            return false;
                                        }
                                        UpdateValues(this.getEl().id, this.value,(_rows - 9));
                                        this.container.addCls('x-grid-dirty-cell');
                                    }
                                },
                                displayField: 'text',
                                valueField: 'value',
                                typeAhead: true,
                                queryMode: 'local',
                                forceSelection: true,
                                triggerAction: 'all',
                                selectOnFocus: true,
                                width: 80,
                                applyTo: 'ctl_' + i + '_' + j
                            });

This issue arrise when upgread my application.

Это было полезно?

Решение

Ext.NET 2 uses ExtJS 4.1 which dropped the support for applyTo and removed it from most components, for a combobox try the configuration property "transform" which does almost the same thing ,check the below links for more info:

applyTo non exist ??

add applyTo to Ext 4.1

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top