This is a migrated thread and some comments may be shown as answers.

ComboBox Transfer to ListBox

3 Answers 73 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 21 Dec 2011, 03:08 PM
I'm not sure if this is possible to achieve but I would like the user to be able to select an item from a ComboBox and then have the ability to transfer that item to a list box. Attached is a mockup of what I'm trying to do.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Dec 2011, 05:57 AM
Hello,

One suggestion is you can add one button in between RadComboBox and RadListBox and write the functionality of transfer on button click event. Here is the sample code.
CS:
protected void button1_Click(object sender, EventArgs e)
   {
      string s = RadComboBox1.Text;
      RadListBoxItem item = new RadListBoxItem(s);
      RadListBox1.Items.Add(item);
    }

Thanks,
Princy.
0
William
Top achievements
Rank 1
answered on 28 Dec 2011, 05:03 PM
That'll work, thanks. Is there any way to style the button so it looks like on of the buttons for the RadListBox?
0
Princy
Top achievements
Rank 2
answered on 29 Dec 2011, 06:01 AM
Hello,

One suggestion is you can use CSSClass to apply style to button and set background image as like Listbox button.

Thanks,
Princy.
Tags
ListBox
Asked by
William
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
William
Top achievements
Rank 1
Share this question
or