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

listbox insid listview ...can we do it ?

2 Answers 35 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Berrabah
Top achievements
Rank 1
Berrabah asked on 21 May 2012, 10:16 PM
Hi,
I wanna to use 2 sqldatasource for a listview, the first for the listview and the second one for a listbox that exist insid the listview (the two sql datasource bind two tables with a Id fk)
Thank  you

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 May 2012, 06:29 AM
Hi,

Here is the sample code that I tried to show a ListBox inside ListView.
aspx:
<telerik:RadListView ID="RadListView1" ItemPlaceholderID="EmployeesContainer" DataSourceID="SqlDataSource1" runat="server">
  <LayoutTemplate>
    <asp:PlaceHolder ID="EmployeesContainer" runat="server" />
  </LayoutTemplate>
  <ItemTemplate>
   <telerik:RadListBox ID="RadListBox1" runat="server" DataSourceID="SqlDataSource2" DataTextField="EmployeeID" DataValueField="EmployeeID"></telerik:RadListBox>
  </ItemTemplate>
</telerik:RadListView>

Thanks,
Shinu.
0
Berrabah
Top achievements
Rank 1
answered on 04 Jun 2012, 06:06 AM
Hi  Shinu and thank you for your poste,
Can you please explaint that pore clearly with an example and code behind cause I dont see what are you looking to tell it please .
Thank you again 
Tags
ListView
Asked by
Berrabah
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Berrabah
Top achievements
Rank 1
Share this question
or