Hi All,
I am trying to display items in one source RadListBox and transfer to destination RadListBox.
Here is my code
and in the page_load event I am doing this
I have 3 problems here
1. Where I transfer the items from source to destination in the destination listbox the tooltip is not appearing.
2. The delete button in destination listbox is is always disabled
3. For some items in the destination the tooltip content is also displayed in the item text.
Please help to resolve these issues. Thanks in advance.
I am trying to display items in one source RadListBox and transfer to destination RadListBox.
Here is my code
... |
<tr> |
<td> |
<asp:Label ID="Label3" runat="server" Text="Search items :"></asp:Label> <asp:TextBox ID="txtSearch" runat="server" onkeyup="highlightItems();"></asp:TextBox> |
<telerik:RadListBox ID="rlbSource" runat="server" AllowTransfer="true" CssClass="listBoxText" |
Height="200px" SelectionMode="Multiple" TransferToID="rlbDestination" Width="450px" AllowTransferOnDoubleClick="true"> |
<ButtonSettings ShowTransferAll="false" VerticalAlign="Middle"/> |
<ItemTemplate> |
<asp:Label ID="Label4" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SYSTEM_DESCRIPTION") %>' SkinID="valuetext"></asp:Label> |
<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Label4" RelativeTo="Element" |
Position="BottomCenter" RenderInPageRoot="true" Width="300" CssClass="listBoxText"> |
<b>System Particulars :</b><br /> |
<%# DataBinder.Eval(Container.DataItem, "SYSTEM_PARTICULARS")%> |
<br /><b>Maker :</b><br /> |
<%# DataBinder.Eval(Container.DataItem, "MAKER")%> |
<br /><b>City :</b><br /> |
<%# DataBinder.Eval(Container.DataItem, "CITY")%> |
<br /><b>Country :</b><br /> |
<%# DataBinder.Eval(Container.DataItem, "COUNTRY")%> |
</telerik:RadToolTip> |
</ItemTemplate> |
</telerik:RadListBox> |
</td> |
<td> |
<telerik:RadListBox runat="server" ID="rlbDestination" Height="200px" Width="450px" |
CssClass="listBoxText" AllowDelete="True" SelectionMode="Multiple"> |
<ItemTemplate> |
<asp:Label ID="Label4" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SYSTEM_DESCRIPTION") %>' SkinID="valuetext"></asp:Label> |
<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Label4" RelativeTo="Element" |
Position="BottomCenter" RenderInPageRoot="true" Width="300" CssClass="listBoxText"> |
<b>System Particulars :</b><br /> |
<%# DataBinder.Eval(Container.DataItem, "SYSTEM_PARTICULARS")%> |
<br /><b>Maker :</b><br /> |
<%# DataBinder.Eval(Container.DataItem, "MAKER")%> |
<br /><b>City :</b><br /> |
<%# DataBinder.Eval(Container.DataItem, "CITY")%> |
<br /><b>Country :</b><br /> |
<%# DataBinder.Eval(Container.DataItem, "COUNTRY")%> |
</telerik:RadToolTip> |
</ItemTemplate> |
</telerik:RadListBox> |
</td> |
</tr> |
... |
and in the page_load event I am doing this
if (!Page.IsPostBack) |
{ |
rlbSource.TransferMode = ListBoxTransferMode.Copy; |
rlbDestination.DataBind(); |
rlbDestination.EmptyMessage = "No items added"; |
} |
rlbSource.DataSource = //call the function that returns a datatable. |
rlbSource.DataValueField = "SYSTEM_CODE"; |
rlbSource.DataTextField = "SYSTEM_DESCRIPTION"; |
rlbSource.DataBind(); |
I have 3 problems here
1. Where I transfer the items from source to destination in the destination listbox the tooltip is not appearing.
2. The delete button in destination listbox is is always disabled
3. For some items in the destination the tooltip content is also displayed in the item text.
Please help to resolve these issues. Thanks in advance.