ComboBox Transfer to ListBox

4 posts, 0 answers
  1. William
    William  avatar
    72 posts
    Member since:
    Jun 2011

    Posted 21 Dec 2011 Link to this post

    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.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Dec 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. William
    William  avatar
    72 posts
    Member since:
    Jun 2011

    Posted 28 Dec 2011 Link to this post

    That'll work, thanks. Is there any way to style the button so it looks like on of the buttons for the RadListBox?
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 29 Dec 2011 Link to this post

    Hello,

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

    Thanks,
    Princy.
Back to Top