Jun 13, 2012, 12:58 PM
[CLOSED] Multiple Combo-boxes - Same Store - Odd Behavior
I have a grid with a RowEditing plugin. When in edit mode, I have four of the fields which each have a combo-box editor (employee names/ids) which all use the EmployeeData store. Each of the combo-boxes have unique IDs are are configured in the markup. When using the combo-boxes in simple, drop-down and mousing to select an item, they all work fine. However, if I use the type-ahead feature and type a name in one box, they all are filtered for that value. I don't think this is normal behavior. However, I am not sure what to expect when using a single store. For clarification here is the store:
Here is one combo:
Column - different data index, different text
Combo - different ID
@(Html.X.Store().ID("EmployeeData") _
.DataSource(ViewData("Employees")) _
.Reader(Sub(rdr)
rdr.Add(New Ext.Net.JsonReader())
End Sub) _
.Model(Sub(mdl)
mdl.Add(Html.X.Model.Fields(Sub(flds)
flds.Add("Selected", Ext.Net.ModelFieldType.Boolean)
flds.Add("Text")
flds.Add("Value", Ext.Net.ModelFieldType.Int)
End Sub).IDProperty("Value"))
End Sub))
Here is one combo:
cols.Add(Html.X.Column().DataIndex("DrafterEmployeeID").Text("Drafter").Renderer(New Ext.Net.Renderer() With {.Fn = "employeeRenderer"}).Editor(Sub(edt)
Dim cbo As New Ext.Net.ComboBox
With cbo
.ID = "DrafterEmployeeID"
.StoreID = "App.EmployeeData"
.MultiSelect = False
.AutoDataBind = True
.QueryMode = DataLoadMode.Local
.TypeAhead = True
.DisplayField = "Text"
.ValueField = "Value"
End With
edt.Add(cbo)
End Sub))
Again, the only differences in the 4 colums are:Column - different data index, different text
Combo - different ID
Last edited by Daniil; Jun 13, 2012 at 6:59 PM.
Reason: [CLOSED]