Jan 12, 2019, 2:34 PM
[OPEN] [#1622] [4.7.1] assign Store to MultiSelectorSearch of MultiSelector
Hello
i want to Use a component that can select multi item and user can search between all items in model i found MultiSelector in Webform(aspx) but i cant Find any sample in mvc.
with this code store loaded in MultiSelector
cannot convert from 'Ext.Net.Store.Builder' to 'System.Action<Ext.Net.StoreCollection<Ext.Net.Sto re>>
how can i assign Store to MultiSelectorSearch
i want to Use a component that can select multi item and user can search between all items in model i found MultiSelector in Webform(aspx) but i cant Find any sample in mvc.
with this code store loaded in MultiSelector
Html.X().MultiSelector().Width(300).Height(200)
.FieldName("Title").MultiSelect(true).AutoScroll(true)
.AllowDeselect(true).Selectable(true)
.Store( Html.X().Store().ID("RoleStore")
.DataSource(Model)
.Model(
Html.X().Model()
.Fields(
new ModelField("Title", ModelFieldType.String)
)
)
).Search(Html.X().MultiSelectorSearch().Store(Html.X().Store().ID("RoleStore")
.DataSource(Model)
.Model(
Html.X().Model()
.Fields(
new ModelField("Title", ModelFieldType.String)
)
)
)
)
but when i want assign store to MultiSelectorSearch i get error like this cannot convert from 'Ext.Net.Store.Builder' to 'System.Action<Ext.Net.StoreCollection<Ext.Net.Sto re>>
how can i assign Store to MultiSelectorSearch
Last edited by fabricio.murta; Jan 17, 2019 at 1:15 PM.