Jun 11, 2014, 2:15 PM
TypeAhead issue [RAZOR]
I have searched the forums and seen where other people's issues have been resolved... however, mine is still not working. What am I doing wrong? I have tried toggling delay on/off, triggeraction on/off, minchars set/not set, querymode local/remote... no matter what combination of options I try, the typeahead feature is not ever working... the combobox just shows the top of the list and that's it. I am auto loading my store directly from the model... thoughts?
Html.X().ComboBox()
.ID("cboBIAAppSelection")
.Width(400)
.MarginSpec("0 0 0 5")
.TypeAhead(true)
.TypeAheadDelay(500)
.QueryMode(DataLoadMode.Local)
.TriggerAction(TriggerAction.All)
.MinChars(0)
.SelectOnFocus(true)
.EmptyText("")
.Editable(false)
.ListConfig(new BoundList { Cls = "biaDropdown" })
.FieldLabel("Select BIA App")
.LabelCls("biaFormLabel")
.DisplayField("PortalAppName")
.ValueField("PortalAppID")
.Store(
Html.X().Store()
.DataSource(Model.BIA_Apps.OrderBy(o => o.PortalAppName))
.AutoLoad(true)
.Model(Html.X().Model()
.Fields(
new ModelField("PortalAppID", ModelFieldType.String),
new ModelField("PortalAppName", ModelFieldType.String)
)
)
)