I have a tab strip with a pair of listboxes (sources and destination) on each. I have one additional single listbox on another tab. This other listbox consolidates all of the selected items from each of the other listboxes under the other tabs. I am having trouble getting the consolidated ("lbYourChoices") show the added items. I have no trouble transferring to the paired listbox, but my issue is updating the other lb. I have tried everything I can think of. I am sure I am missing the obvious:
Thanks!
function ClientTransferring(sender, e)
{
var lbChoices = $find("<%= lbYourChoices.ClientID %>");
var newitems = lbChoices.get_items();
e.set_cancel(
true);
var items = e.get_items();
for (var i = 0; i < items.length; i++)
{
var item = items[i];
var itemx = new Telerik.Web.UI.RadListBoxItem();
itemx = items[i];
if (item.get_text() != "Select item(s)") {
lbChoices.trackChanges();
lbChoices.get_items().add(itemx);
lbChoices.commitChanges();
sender.transferItem(item, e.get_sourceListBox(), e.get_destinationListBox());
}
}
}
<telerik:RadPageView ID="RadPageView7" runat="server">
<telerik:RadListBox ID="lbYourChoices" runat="server" AllowDelete="True"
style="top: 15px; left: 0px; height: 150px; width: 225px"
Height="175px" Width="225px" AutoPostBack="True">
</telerik:RadListBox>
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageView1" runat="server">
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
RepeatDirection="Horizontal"
style="top: 15px; font-family: Arial, Helvetica, sans-serif; font-size: x-small">
<asp:ListItem Selected="True">List View</asp:ListItem>
<asp:ListItem>Tree View</asp:ListItem>
</asp:RadioButtonList>
<telerik:RadListBox ID="RadListBox3" runat="server" AllowTransfer="True"
DataKeyField="item_id" DataSortField="item_id" DataSourceID="obj_Accounts"
DataTextField="item_name" DataValueField="item_id"
style="top: 15px; left: 0px; height: 150px; width: 175px"
TransferToID="RadListBox4" Height="150px"
AllowTransferOnDoubleClick="True" EnableDragAndDrop="True" Width="180px"
OnClientTransferring="ClientTransferring">
</telerik:RadListBox>
<telerik:RadListBox ID="RadListBox4"
style="top: 15px; left: 0px; height: 150px; width: 175px"
AllowTransferOnDoubleClick="True" EnableDragAndDrop="True" runat="server"
Height="150px" Width="180px"
AutoPostBack="True"
AutoPostBackOnTransfer="True"></telerik:RadListBox>
<asp:ObjectDataSource ID="obj_Accounts" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetByDimensionName"
TypeName="fvTempDAL.DimensionItemsDataSetTableAdapters.DimensionItems">
<SelectParameters>
<asp:Parameter DefaultValue="Accounts" Name="DimensionName" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<br />
</telerik:RadPageView>