Two Databound ComboBox duplicate entries in first

2 posts, 0 answers
  1. Dédé
    Dédé avatar
    60 posts
    Member since:
    May 2009

    Posted 16 Jun 2009 Link to this post

    Hi,

    I have 2 ComboBox bound to same SqlDataSource.

    When showing page, the first ComboBox shows items twice.

    Using version : 2009.1.527.35
    Code :
        <asp:SqlDataSource ID="srcOriginUsers" runat="server"  
            ConnectionString=""  
            SelectCommand="Dir.sp_DirectoryUserSelect" SelectCommandType="StoredProcedure" > 
        </asp:SqlDataSource> 
     
                                <telerik:RadComboBox ID="lstFrom1" runat="server" DataSourceID="srcOriginUsers"  
                                    DataTextField="FirstName" DataValueField="Id" AppendDataBoundItems="true"
                                    <Items> 
                                        <telerik:RadComboBoxItem runat="server" Text="Aucun" /> 
                                    </Items> 
                                    <ItemTemplate> 
                                        <asp:Label ID="lbTitle" runat="server" Text='<%# Eval("LbTitle") %>' /> <asp:Label ID="lblFirstName" runat="server" Text='<%# Eval("FirstName") %>' /> <asp:Label ID="lblLastName" runat="server" Text='<%# Eval("LastName") %>' /> 
                                    </ItemTemplate> 
                                </telerik:RadComboBox> 
                                <telerik:RadComboBox ID="lstFrom2" runat="server" DataSourceID="srcOriginUsers"  
                                    DataTextField="FirstName" DataValueField="Id" AppendDataBoundItems="true"
                                    <Items> 
                                        <telerik:RadComboBoxItem runat="server" Text="Aucun" /> 
                                    </Items> 
                                    <ItemTemplate> 
                                        <asp:Label ID="lbTitle" runat="server" Text='<%# Eval("LbTitle") %>' /> <asp:Label ID="lblFirstName" runat="server" Text='<%# Eval("FirstName") %>' /> <asp:Label ID="lblLastName" runat="server" Text='<%# Eval("LastName") %>' /> 
                                    </ItemTemplate> 
                                </telerik:RadComboBox> 
     

    Thanks.
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 18 Jun 2009 Link to this post

    Hi Damien,

    I tried reproducing this issue with the latest Internal Build of Telerik.Web.UI and everything worked normally - no duplication of Items.

    Please open a support ticket and send us a page (or a project) where the issue is observable - we will investigate it and will provide further information/guidance.

    Kind regards,
    Simon
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top