Issues caused by updated version

2 posts, 0 answers
  1. A
    A avatar
    1 posts
    Member since:
    Aug 2016

    Posted 08 Aug 2016 Link to this post

    Using an older version of telerik, we have a control formed like so:

    <asp:DropDownList ID="ddlField" Visible="false" runat="server" AutoPostBack="true"
        Height="20px" Width="126px" AppendDataBoundItems="True" DataSourceID="FieldLookupDS"
        DataTextField="FieldName" DataValueField="FieldPk" CausesValidation="True">
    <telerik:RadComboBox runat="server" ID="radCbField" DataSourceID="FieldLookupDS"
        DataTextField="FieldName" DataValueField="FieldPk" Width="130px" AllowCustomText="true"
            <asp:CheckBox runat="server" ID="cbField" AutoPostBack="true" Text='<%#Eval("FieldName")%>' />

    Without change, the old version of the telerik controls allow us to select multiple items in a drop down list with checkboxes, while the default option field remains in place. After updating to a newer version of telerik, clicking on the checkboxes themselves maintains he same effect, but clicking on the label makes that label appear in the option field instead of the desired default prompt. This has been verified by simply switching the versions we are using. 

    Is there any guidance on how to re-implement this functionality in newer versions? 

  2. Ivan Danchev
    Ivan Danchev avatar
    1302 posts

    Posted 11 Aug 2016 Link to this post


    If I understand correctly what you are trying to achieve, you want the ComboBox not to show the selected item's text in its input, instead to show "Select". You can do that by subscribing to the OnClientSelectedIndexChanged the event and in its handler set the ComboBox' Text with the set_text() method:
    <telerik:RadComboBox runat="server" ID="radCbField" DataSourceID="FieldLookupDS"
        DataTextField="FieldName" DataValueField="FieldPk" Width="130px" AllowCustomText="true"
        Text="Select" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged">

    function OnClientSelectedIndexChanged(sender, args) {

    Ivan Danchev
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top