May 09, 2018, 11:26 AM
[CLOSED] After Migration its not working-Combobox.
Hi All,
in Ext 2.5 version below code works fine but in latest version (4.5.1) its not working. Its very difficult to manage the ID's. Because same reference model is used while submitting the request to database.
in Ext 2.5 version below code works fine but in latest version (4.5.1) its not working. Its very difficult to manage the ID's. Because same reference model is used while submitting the request to database.
X.ComboBox()
.CellCls("contact-fieldleft")
.ID("Userbase.CommunicationPreference.Id") //Problem is here
.FieldLabel("Communication Preference<span class='red'>*</span>")
.InputWidth(inputFieldWidth).Width(cellWidth)
.Editable(true)
.ForceSelection(true)
.TypeAhead(false)
.AllowBlank(false)
.QueryMode(DataLoadMode.Local)
.TriggerAction(TriggerAction.All)
.EmptyText("-- Select Communication Preference --")
.ValueField("id")
.DisplayField("name")
.Store(X.Store()
.AutoLoad(true)
.Model(X.Model()
.IDProperty("Id")
.Fields(
new ModelField("id", ModelFieldType.String) { Mapping = "Id" },
new ModelField("name", ModelFieldType.String) { Mapping = "Name" }
)).BuildProxy("~/DataCache/GetAllCommunicationPreferenceAjaxData/")
Last edited by fabricio.murta; Aug 01, 2018 at 12:40 PM.