This question is locked. New answers and comments are not allowed.
Hi all,
I just started evaluating Kendo UI for JSP and I am very impressed by the quality of your concept.
I have implemented the Autocomplete, ComboBox and DropDownList tags successfully, but I would like to highlight matches of the input value with the list items.
My first try was to provide an extra field in the response data with embedded HTML markup, but that is being converted into entities: <em> becomes <em>. Is there a way to turn this kind of conversion off?
To be sure, I found the example for client side formatting:
String template = "<
span
class=\"k-state-default\" style=\"background-image: url(../resources/web/Customers/#:data.customerId#.jpg\"></
span
>" +
"<
span
class=\"k-state-default\"><
h3
>#: data.contactName #</
h3
><
p
>#: data.companyName #</
p
></
span
>";
String valueTemplate = "<
span
class=\"selected-value\" style=\"background-image: url(../resources/web/Customers/#:data.customerId#.jpg\") ></
span
>" +
"<
span
>#:data.contactName#</
span
>";
%>
<
div
class
=
"demo-section k-content"
>
<
h4
>Customers</
h4
>
<
kendo:dropDownList
name
=
"customers"
headerTemplate="<%=headerTemplate%>" template="<%=template%>" valueTemplate="<%=valueTemplate%>"
However, I've not managed to transfer this into JSP syntax.
Could you please help me with this?
Best regards