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
55
How to format a date in a multi-column combobox
posted

I have a jQuery combobox in which I want to display a name column and a date column.  

 

@(Html

    .Infragistics()

    .Combo()

    .ID("comboEvents")

    .FilteringType(ComboFilteringType.None)

    .ValueKey("eventId")

    .TextKey("name")

    .DropDownMinHeight(50)

    .Width("300px")

    .DataSource(Url.Action("EventListCombo"))

    .ItemTemplate("<div>${name} (${date})</div>")

    .DataBind()

    .Render()

)

 

Obviously the date shows up as a JSON date ("/Date(1315540800000)/").  How can I get the jQuery date format to work within the above itemtemplate?

Parents Reply Children