LoadOnDemand space between words

3 posts, 0 answers
  1. Intro
    Intro avatar
    18 posts
    Member since:
    Jan 2007

    Posted 19 Jul 2010 Link to this post

    Hi,

    We have a LoadOnDemand ComboBox (2008.3.1114.35) with Header and ItemTemplates. When a user searches a text comprised of multiple words with space between words, spaces are encoded to %20 in text value of RadComboBoxItemsRequestedEventArgs object.  Furthermore, this generates other ItemRequested events, only this time '%' is encoded as '%25.' and continues for some time. (i.e. sample text, generates event for sample%20text, then sample%2520text, then sample%252520text etc.)

    Code snippet of ComboBox is included below, .cs file is not included as it only contains comparison of text to empty string.

    This occurs only sometimes, sometimes spaces are not encoded.  Are the users supposed to handle encoded chars separately or is this a bug ?

    Thanks in advance,
    Oner

    *****************************************************************************************************************************
    <telerik:RadComboBox ID="rcbCompanies" runat="server"
        Skin="Hay" Width="158" DropDownWidth="360"
        ShowToggleImage="False" AllowCustomText="True"
        DataTextField="Name" DataValueField="ID"
        EnableLoadOnDemand="True" OnItemsRequested="rcbCompanies_ItemsRequested"
    >
        <HeaderTemplate>
            <table width="360px">
                <tr>
                    <td align="left" style="width: 130px">
                        Company Name
                    </td>
                    <td align="left" style="width: 100px">
                        Category Name
                    </td>
                    <td align="left" style="width: 130px">
                        Parent Company Name
                    </td>
                </tr>
            </table>
        </HeaderTemplate>
        <ItemTemplate>
            <table width="360px">
                <tr>
                    <td align="left" style="width: 130px">
                        <%# DataBinder.Eval(Container.DataItem, "Name")%>
                    </td>
                    <td align="left" style="width: 100px">
                        <%# DataBinder.Eval(Container.DataItem, "CategoryName")%>
                    </td>
                    <td align="left" style="width: 130px">
                        <%# DataBinder.Eval(Container.DataItem, "ParentName")%>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </telerik:RadComboBox>
    *****************************************************************************************************************************
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 23 Jul 2010 Link to this post

    Hi Oner,

    This was a bug which we fixed at some point in the later development of RadComboBox.

    Can you upgrade to a later version, let say 2008.3.1314, which is the first official version having the fix?

    Best wishes,
    Simon
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. PPT
    PPT avatar
    2 posts
    Member since:
    Jan 2012

    Posted 26 Dec 2012 Link to this post

    Happened to me with 2011.3.1115.40 of the RadControls that are part of Sitefinity 4.4.2117.0 SE.
    Does not happen consistently... but enough to be noticed.

Back to Top