View Full Version : giving a id property in a form element which is in modal window.

26 Jan 2011, 4:55 AM
I am giving 'id' property for a form element(combobox) which is in modal window. When same modal window is opened for second time by clicking on different edit button. the combobox is getting dissappered and and label is repeated trice.

new Ext.form.ComboBox({
fieldLabel: 'Users',

I am accessing the element using default id as below.
Please tell me how can I give custom Id to the element which is called at different places(on click of the edit buttons at different places same form modal window is opened).

26 Jan 2011, 4:38 PM
1. Never call like this : Ext.getCmp('ext-comp-1018'); This change... :-)
2. Try to give different value for id and hiddenName. Also hiddenName must be different than valueField. Even try without id, if you don't have some special handlers on it...
3. Look if you don't use "users" as id or some in your grid, from which you open your modal window...