I'm using Ignite 2018.1 with the included MVC5 helper dll (Assembly Infragistics.Web.Mvc, Version=5.18.1.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb)
This Razor code:
@(Html.DefaultComboUnbound("ddlAllChangeTypes", "AllChangeTypes", "Key", "Value", Model.ChangeTypeDescriptions.ToList(), null) .PlaceHolder("Select to apply to all") .AddOrAppendClientEvent(ComboClientEvents.SelectionChanged, Html.IgEventHandler("ddlAllChangeTypesSelectionChanged")) .DataBind() .Render() )
Renders to this javascript function:
$(function() { $('#ddlAllChangeTypes').igCombo({ filterExprUrlKey: 'filter', compactData: true, placeHolder: 'Select to apply to all', enableClearButton: false, allowCustomValue: false, dropDownOnFocus: true, width: '100%', valueKey: 'Key', textKey: 'Value', inputName: 'AllChangeTypes', loadOnDemandSettings: { enabled: false }, dataSource: [{ "Key": 0, "Value": "Soft change" }, { "Key": 1, "Value": "Hard change" }], selectionChanged: function(evt, ui) { ts1599461760.ddlAllChangeTypesSelectionChanged(evt, ui) } }); });
As noted in the documentation for igCombo the placeholder setting it generated is incorrect and does not work anymore.https://www.igniteui.com/help/api/2018.1/ui.igcombo
Hi,
I have logged an issue about this in our internal tracking system. Until this is resolved and released in next version, I suggest that you use jQuery to set the locale.placeHolder option:
$('#ProcTarget').igCombo("option", "locale", { placeHolder: "Select to apply to all" })
Please let me know if you have further questions, I will be glad to help.
Hello Hristo,
Has this issue been fixed yet? We are currently on the most recent hotfix of 17.2 and are seeing this problem as well.
We were able to workaround it in Razor using:
.Locale("{placeHolder: '<Select an Import Type>'}")
instead of:
.PlaceHolder("<Select an Import Type>")
However, there are a lot of places we need to update this, so we would prefer a fix rather then a workaround if possible.
Thanks,
Paul