This is a migrated thread and some comments may be shown as answers.

LoadOnDemand space between words

2 Answers 47 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Intro
Top achievements
Rank 1
Intro asked on 19 Jul 2010, 04:35 PM
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 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 23 Jul 2010, 01:13 PM
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
0
PPT
Top achievements
Rank 1
answered on 26 Dec 2012, 06:06 AM
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.

Tags
ComboBox
Asked by
Intro
Top achievements
Rank 1
Answers by
Simon
Telerik team
PPT
Top achievements
Rank 1
Share this question
or