Hello,I am trying to render a combo using the following:-
@Html.LabelFor(model => model.Source, new { @class = "editor-label" }) @(Html.Infragistics().ComboFor(model => model.Source) .ID("ProcedureCombo") .Mode(ComboMode.Editable) .HtmlAttributes(new Dictionary<string, object> { { "class", "editor-field" } }) .Width("205px") .FilteringType(ComboFilteringType.Local) .FilteringCondition("startsWith") .RenderMatchItemsCondition(ComboRenderMatchItemsCondition.StartsWith) .AutoComplete(true) .DataSource(ViewBag.Datasources) .DataBind() .Render())
When the combo is rendered to a model with an existing value and the combo box is opened, the only item in the list is the one which is selected
If you clear the combos value then the intended behavior returns, and the full contents of the list are displayed.Is this a known issue or am I doing something wrong?Thanks,
Sean
Hi, Sean.
This bug was fixed and if you download the latest service release, you will not have this problem. Please write me if you still have some problems.
Best regards,
Nikolay Alipiev
Hello Sean,
I have created a support ticket on your behalf with number CAS-120079-K2D4Q2. It is linked with development issue #147059 - When Combo MVC wrapper is used and local filtering is used, if we select a default value then the combo list contains only the selcted item.
You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing this case on the web site.
Please let me know if you need more information.
Thank you for the help and for the detailed information. I was able to reproduce the issue and this is already logged as a bug in our system. We will try to fix it with our next service release. It seems the problem is only when the filtering is local, then if we select a value - the combo list is already filtered. For the moment if it's suitable for your case you can use the remote filtering, because it seems it is working:
.FilteringType(ComboFilteringType.Remote)
I will keep you posted when the big is fixed and the service release is out. Thanks again for the cooperation and for using our controls.
Hi Nikolay,
I can reproduce this behavior using:-
Ignite UI /Infragistics.Web.Mvc Version: 4.13.1.2143Google Chrome Version 28.0.1500.71 mInternet Explorer 10.0.9200.16635
I have attached a simple sample which replicates this behavior using a List<string> and a List<SelectListItem> with the keys set.Thanks,
It is possible this to be a bug, we are going to test it. It will be great if you have a sample or more additional information like browser version of the controls you are using and build number. Thanks in advance.
I'm asking because for the moment I cannot reproduce this bug and there is no records of such behavior. Even so it seems like the combo is filtered with that default value and that's why when the drop down is opened then the items are already filtered. Which is not a normal behavior for sure. I tested this sample Auto-suggest and Filtering, and in the Model, in addition I've selected the value using the both ways presented in the code. It is working they fine and not filtering the items a priori.
ComboModel comboViewModel = new ComboModel();...// Set using Text propertycomboViewModel.Text = "BudgetsByNominal";
//Set by selecting itemint[] arr = new int[1];arr[0] = 3;comboViewModel.SelectedIndexes = arr;
So you can try this. When we have the time we will test it and will notify you if this is a bug. As I said, any additional information will help us.
Thanks,
Nikolay