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
65
Issue with ItemTemplate for combo
posted

Hi IG,

I am having issues displaying data in ItemTemplate. The fix described in this post http://es.infragistics.com/community/forums/p/67312/340703.aspx#340703 did not work for me.
I am using MVC helper as following:

@(Html.Infragistics().Combo("subTaskDropdown", this.Model)

.ValueKey("Id")

.TextKey("Name")

.CompactData(false)

.DataSourceUrl("subtask-combo-data")

.DataBind().FilteringType(ComboFilteringType.Local)

.RenderMatchItemsCondition(ComboRenderMatchItemsCondition.Contains)

.FilteringCondition("contains")

.CaseSensitive(false)

.AutoComplete(false)

.DropDownWidth(300)

.Width("300")

.CascadingSettings(settings => settings.ParentComboID("#taskDropdown").ParentComboKey("TaskId"))

.AddClientEvent("filtered", "subtaskFiltered")

.AddClientEvent("selectionChanged", "subtaskSelectionChanged")

.NullText("Select SubTask:")

.ItemTemplate("<span class='ComboText'>${Name}</span><span>${OperationType}</span>")

.Render()

The "OperationType" value in item template is never displayed, no matter how I specify the template. I can only see data items specified as value and key, so CompactData(false) does not work here.

Controller code returns data source with OperationType always populated.

What am I missing?

Thanks

 

Parents
No Data
Reply
  • 3995
    Offline posted

    Hello Nikolay Sitnikov,

     

    Can you please ensure that infragistics.templating.js is referenced ?

     

    Regards,

    Deyan Kamburov

    Infragistics, Inc 

Children