Won't Fix
Last Updated: 21 Jan 2016 17:02 by ADMIN
ADMIN
Hristo Valyavicharski
Created on: 01 Sep 2015 15:20
Category: AutoCompleteBox
Type: Bug Report
1
HTML Encoded entry is not rendered in the drop down's list

		
2 comments
ADMIN
Hristo Valyavicharski
Posted on: 21 Jan 2016 17:01
You can use Server Templates to display HTML Encoded content:

  <telerik:RadAutoCompleteBox runat="server" ID="auto" DataTextField="Text" DataValueField="Value">
            <DropDownItemTemplate>
                 <%# System.Web.HttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "Text"))%>
            </DropDownItemTemplate>
        </telerik:RadAutoCompleteBox>  

public partial class DebugPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        List<Item> items = new List<Item>();

        items.Add(new Item() { Value = "1", Text = "pe1@sad.com" });
        items.Add(new Item() { Value = "2", Text = "<pe3@sad.com>" });

        auto.DataSource = items;
    }
}

public class Item
{
    public string Value { get; set; }
    public string Text { get; set; }
}

Emanuele
Posted on: 18 Jan 2016 22:37
I would really need you to fix this bug otherwise I cannot update to the latest dev version. I am still with 2014....
Can you please fix this urgently?

Thank you,