hi
How do I remove or delete item from listbox using command name? Thanks a lot
Here is my code:
<telerik:RadListBox ID="lbProductList" runat="server" Width="100%" EnableViewState="true" ViewStateMode="Enabled" Skin="Metro" style="top: 0px; left: 0px" AutoPostBack="True" EnableDragAndDrop="True">
<ItemTemplate>
<table>
<tr>
<td class="leftbox"><asp:Image ID="Image1" CssClass="circularsmall" runat="server" EnableViewState="true" ImageUrl='<%# "~/images.ashx?id=" + Eval("PhotoThumb")%>' /></td>
<td class="rightbox"><div class="semibold" style="word-wrap:break-word"><%# Eval("ProductName")%></div>
<div>
<asp:LinkButton ID="lnkDelete" CommandName="remove" Text="Remove" style="text-decoration:none;color:darkgray;font-size:smaller" runat="server"></asp:LinkButton></div>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:RadListBox>
How do I remove or delete item from listbox using command name? Thanks a lot
Here is my code:
<telerik:RadListBox ID="lbProductList" runat="server" Width="100%" EnableViewState="true" ViewStateMode="Enabled" Skin="Metro" style="top: 0px; left: 0px" AutoPostBack="True" EnableDragAndDrop="True">
<ItemTemplate>
<table>
<tr>
<td class="leftbox"><asp:Image ID="Image1" CssClass="circularsmall" runat="server" EnableViewState="true" ImageUrl='<%# "~/images.ashx?id=" + Eval("PhotoThumb")%>' /></td>
<td class="rightbox"><div class="semibold" style="word-wrap:break-word"><%# Eval("ProductName")%></div>
<div>
<asp:LinkButton ID="lnkDelete" CommandName="remove" Text="Remove" style="text-decoration:none;color:darkgray;font-size:smaller" runat="server"></asp:LinkButton></div>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:RadListBox>