I cant get the igCombo to show the dropdown button
it is there but grey
@{IEnumerable<Intranet.mvc.Models.Status> List = ViewBag.Status;}@(Html.Infragistics().ComboFor(m => m.Status).TextKey("Status1").TextKeyType(ComboDataType.String).ValueKey("ID").ValueKeyType(ComboDataType.Number).DropDownOnFocus(true).Mode(ComboMode.DropDown).ShowDropDownButton(true).ValidatorOptions(option => option.Required(true)).DataSource(List).DataBind().Render())
Hi Christian Sandoy,
Can you clarify what the problem with the grey button is? Because the default theme shows grey button, when hovered it becomes blue etc. Are you able to open the Drop Down list?
Thanks,
Yes I am unable to open the drop Down list
It's weird.
On first sight your implementation seems fine to me. Any errors inside the browser console? Have you checked the script tag which is injected to instantiate igCombo?
The code in the browser look like this
<span id="Arrangementet.Omvisning"><input name="Arrangementet.Omvisning" type="hidden" /></span><script type="text/javascript">//<!--<![CDATA[$(function () {$('#Arrangementet\\.Omvisning').igCombo({ filterExprUrlKey: 'filter', selectedItems: [{value:0}], textKey: 'OmvisType', textKeyType: 'string', valueKey: 'ID', valueKeyType: 'number', dropDownOnFocus: true, mode: 'dropdown', showDropDownButton: true, inputName: 'Arrangementet.Omvisning', loadOnDemandSettings: null, dataSource: [{"OmvisType":"Ingen","ID":0},{"OmvisType":"ARoS","ID":1},{"OmvisType":"ARoS mini","ID":2},{"OmvisType":"Kunst","ID":3},{"OmvisType":"Særudstilling","ID":4}] });});//]]>--></script>
Hi Christian,
It's probably something with the resources, because I've copy/pasted your code on my side and it's working just fine.
Can you sent us your solution so we can check if everything is ok with your references. Or at least isolated sample (we don't need your business data of course)
I created a new mvc project in vs 2013 (.net 4.5)When I use comboFor I got this error : Entry Point not found exceptionbut when i use combo no error
Then I created the same project in vs 2012there comboFor worked as it should
Hello Christian,
The new MVC project in VS 2013 (.net 4.5) uses System.Web.Mvc.dll version 5. Since the Infragistics.Web.Mvc.dll 4.13.1.* is compiled against System.Web.Mvc.dll v 4 there are problems when using Infragistics.Web.Mvc.dll v 4.13.1.* in VS 2013. That's why we will release a new version of Infragistics.Web.Mvc.dll which is compiled against System.Web.Mvc.dll v 5 in order to support VS 2013. This will happen in the next service release for 13.1.
Best regards,Martin PavlovInfragistics, Inc.
I found that I need to load the styleschhets i correct order like this
<link href="~/Content/themes/overcast/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" />
<link href="~/Content/IG/structure/infragistics.css" rel="stylesheet" />
Strange is in my test project it did not matter, maybe because I only have only one control on the page
Oops looked at runtime ver. not version which is 5.0
The System.Web.Mvc.dll in the project is ver. 4.0.30319