Hi
I am using the Radlistview like a list of checkboxes and I can select multiple items out of it.
How can I get the selected values on a Button click event?
Here is my aspx code:
I am using the Radlistview like a list of checkboxes and I can select multiple items out of it.
How can I get the selected values on a Button click event?
Here is my aspx code:
<telerik:RadListView ID="rlv_Aircraft" runat="server" |
AllowMultiItemSelection="True" ClientDataKeyNames="name" |
DataSourceID="SqlDataSource_Aircraft" Skin="Black" |
DataKeyNames="name" > |
<LayoutTemplate> |
<div class="RadListView RadListView_Black"> |
<table cellspacing="0" style="width:40px;"> |
<tbody> |
<tr ID="itemPlaceholder" runat="server"> |
</tr> |
</tbody> |
</table> |
</div> |
</LayoutTemplate> |
<ItemTemplate> |
<tr class="rlvI"> |
<td width="20px"> |
<asp:Button ID="SelectButton" runat="server" CommandName="Select" |
CssClass="rlvBSel" Text=" " /> |
</td> |
<td width="60px"> |
<asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' /> |
</td> |
<td> |
</td> |
</tr> |
</ItemTemplate> |
<AlternatingItemTemplate> |
<tr class="rlvA"> |
<td width="20px"> |
<asp:Button ID="SelectButton" runat="server" CommandName="Select" |
CssClass="rlvBSel" Text=" " /> |
</td> |
<td width="60px"> |
<asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' /> |
</td> |
<td> |
</td> |
</tr> |
</AlternatingItemTemplate> |
<EmptyDataTemplate> |
<div class="RadListView RadListView_Black"> |
<div class="rlvEmpty"> |
There are no items to be displayed.</div> |
</div> |
</EmptyDataTemplate> |
<SelectedItemTemplate> |
<tr class="rlvISel"> |
<td width="20px"> |
<asp:Button ID="DeselectButton" runat="server" CommandName="Deselect" |
CssClass="rlvBSel" Text=" " /> |
</td> |
<td width="60px"> |
<asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' /> |
</td> |
<td> |
</td> |
</tr> |
</SelectedItemTemplate> |
</telerik:RadListView> |