Aug 06, 2012, 11:38 AM
[CLOSED] Fill dynamic ComboBox data on server side
Dear all,
I'm trying to creat dynamic comboBox on server side(c#) as :
Please see the attached Picture
I'm trying to creat dynamic comboBox on server side(c#) as :
ComboBox cbMixedClass = new ComboBox();
cbMixedClass.Store.Add(stClassGenderTypes);
cbMixedClass.ValueField = "ClassGenderType_ID";
cbMixedClass.DisplayField = "ClassGenderTypesName";
cbMixedClass.FieldLabel = "الماده مختلطة";
cbMixedClass.Mode = DataLoadMode.Remote;
cbMixedClass.ID = "cbMixedClass_" + (classesCount + 1);
cbMixedClass.AllowBlank = false;
cbMixedClass.Width = 316;
cbMixedClass.SetValue(offeringSubjectClass.ClassGenderType_ID);
cbMixedClass.Listeners.Select.Fn = "mixedClassSelect";
the comboBox dosn't show any data when i open the page but if i do that in java script the combobox show data without any problem asPlease see the attached Picture
var cbMixedClass = new Ext.form.ComboBox({
store: stClassGenderTypes,
valueField: 'ClassGenderType_ID',
displayField: 'ClassGenderTypesName',
mode: 'local',
fieldLabel: 'الماده مختلطة',
typeAhead: true,
forceSelection: true,
triggerAction: 'all',
id: 'cbMixedClass_' + i,
allowBlank: false,
width: 316,
listeners:
{
select: {
fn: mixedClassSelect
}
}
})
Thank you in advance
Last edited by Daniil; Aug 07, 2012 at 8:06 AM.
Reason: [CLOSED]