Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
comboboxfor does not select item from model in version 15.2
posted

I have a comboboxfor like the following:

                    @(Html.Infragistics().ComboFor(item => item.DocumentViewModel.Purpose)
                    .AutoComplete(true)
                    .FilteringType(ComboFilteringType.Local)
                    .FilteringCondition(ComboFilteringCondition.StartsWith)
                    .Width("100%")
                    .Height("34px")
                    .ValueKey("Purpose")
                    .TextKey("Purpose")
                    .DataSourceUrl(Url.Action("purpose-combo-data"))
                    .DataBind()
                    .Render()
                    )

The key and value happens to be same, but I think the problem is that the model has a subclass, and the value passed from the model is not selecting in the combobox. The dropdown list is fine.

This combobox was working well in version 14.2, but I noticed this after upgrading to 15.2