Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 13, 2012 05:52 AM by Qin Dian Tang - MSFT
None
0 Points
36 Posts
Jun 11, 2012 11:07 AM|LINK
hi I have 2 RadListBox 's to transfer the items. In RadListBox1 I have the following values :- Ex: Category1 Item1 Item2 Item3 Category2 Itemtest1 Itemtest2 When I select RadlistBox1 to move , it should be in the following format in RadlistBox2 Category1-Item1 Category2-Itemtest1 So i have created following code .aspx :- <telerik:RadListBox ID="lstAot" runat="server" AutoPostBack="false" Width="120px" Height="200px" TransferToID="lstAotselected" AllowTransfer="true" TransferMode="Move" AutoPostBackOnTransfer="true" SelectionMode="Multiple" AllowDelete="false" AllowReorder="false" OnTransferring="lstAot_OnTransferring"> </telerik:RadListBox> <telerik:RadListBox ID="lstAotselected" runat="server" allowtransferondoubleclick="true" causesvalidation="false" height="115px" selectionmode="Multiple" skin="Telerik" width="245px"> </telerik:RadListBox> .aspx.cs protected void lstAot_OnTransferring(object sender, RadListBoxTransferringEventArgs e) { foreach (RadListBoxItem item in lstAot.Items) { if (item.Selected) { if (item.Value != "-") { RadListBoxItem listitem = new RadListBoxItem(); listitem.Text = item.Value.Trim() + "-" + item.Text; listitem.Value = item.Value.Trim(); lstAotselected.Items.Add(listitem); } } lstAot.DataBind(); } } results like below:- Category1-Item1 item1 But i need it in the following format:- Category1-Item1 Please help me for the above scenario.
All-Star
113532 Points
12480 Posts
Microsoft
Jun 13, 2012 05:52 AM|LINK
Hi,
It is a third party control. You need to post the question to its official support forum:
http://www.telerik.com/community/forums.aspx
Thanks,
Visalakshi_B...
None
0 Points
36 Posts
RadListBox Issue
Jun 11, 2012 11:07 AM|LINK
hi
I have 2 RadListBox 's to transfer the items.
In RadListBox1 I have the following values :-
Ex:
Category1
Item1
Item2
Item3
Category2
Itemtest1
Itemtest2
When I select RadlistBox1 to move , it should be in the following format in RadlistBox2
Category1-Item1
Category2-Itemtest1
So i have created following code
.aspx :-
<telerik:RadListBox ID="lstAot" runat="server" AutoPostBack="false" Width="120px" Height="200px" TransferToID="lstAotselected" AllowTransfer="true" TransferMode="Move"
AutoPostBackOnTransfer="true" SelectionMode="Multiple" AllowDelete="false" AllowReorder="false" OnTransferring="lstAot_OnTransferring">
</telerik:RadListBox>
<telerik:RadListBox ID="lstAotselected" runat="server" allowtransferondoubleclick="true" causesvalidation="false"
height="115px" selectionmode="Multiple" skin="Telerik" width="245px">
</telerik:RadListBox>
.aspx.cs
protected void lstAot_OnTransferring(object sender, RadListBoxTransferringEventArgs e)
{
foreach (RadListBoxItem item in lstAot.Items)
{
if (item.Selected)
{
if (item.Value != "-")
{
RadListBoxItem listitem = new RadListBoxItem();
listitem.Text = item.Value.Trim() + "-" + item.Text;
listitem.Value = item.Value.Trim();
lstAotselected.Items.Add(listitem);
}
}
lstAot.DataBind();
}
}
results like below:-
Category1-Item1
item1
But i need it in the following format:-
Category1-Item1
Please help me for the above scenario.
Qin Dian Tan...
All-Star
113532 Points
12480 Posts
Microsoft
Re: RadListBox Issue
Jun 13, 2012 05:52 AM|LINK
Hi,
It is a third party control. You need to post the question to its official support forum:
http://www.telerik.com/community/forums.aspx
Thanks,
If you have any feedback about my replies, please contactmsdnmg@microsoft.com.
Microsoft One Code Framework