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

Two Databound ComboBox duplicate entries in first

1 Answer 66 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Dédé
Top achievements
Rank 1
Dédé asked on 16 Jun 2009, 10:04 AM
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.

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 18 Jun 2009, 08:04 AM
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.
Tags
ComboBox
Asked by
Dédé
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or