RadDropDownListElement ?s

4 posts, 0 answers
  1. Deasun
    Deasun avatar
    33 posts
    Member since:
    May 2019

    Posted 17 Jul 2019 Link to this post

    Is this the same as RadDropDownList?

    Or two different objects.

    I am trying to see if RadDropDownListElement is capable of doing multi-selects on the drop down list.

    I see this in docs online: radDropDownList1.DropDownListElement.SelectionMode = SelectionMode.MultiExtended

    But not seeing this for the RadDropDownListElement.

    Can I use the RadDropDownList in the radRibbonbarbuttongroup?

    Thanks.

  2. Dimitar
    Admin
    Dimitar avatar
    2960 posts

    Posted 18 Jul 2019 Link to this post

    Hello Deasun,

    They share the same functionality, the difference is that the control is only a wrapper for the element and the DropDownListElement is actually the inner RadDropDownListElement:

    public RadForm1()
    {
        InitializeComponent();
        radDropDownList1.DropDownListElement.SelectionMode = SelectionMode.MultiExtended;
    
        radDropDownListElement1.SelectionMode = SelectionMode.MultiExtended;
    }
    
    

    I hope this helps. Should you have any other questions, do not hesitate to ask.

    Regards, Dimitar
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Deasun
    Deasun avatar
    33 posts
    Member since:
    May 2019

    Posted 19 Jul 2019 Link to this post

    Thanks.

    Found: SelectionMode = SelectionMode.MultiExtended in the properties window. Blind as a bat I didnt see that before.

    Question, Can it have checkboxes listed before the item so the user can check it off?

    It seemed like I had to hold down Ctrl+mouseclick the item to select it.

    But the DDL disappears each time. I then have to click the dropdown btn to see the items to select the next one.

    Not nice way for the user to have to do that.

    Thanks for your reply.

     

  4. Dimitar
    Admin
    Dimitar avatar
    2960 posts

    Posted 22 Jul 2019 Link to this post

    Hello Deasun,

    You can use the RadCheckedDropDownList for this instead. Here is how you can add it to the ribbon bar: 
    var checkedDDL = new RadCheckedDropDownListElement();
    for (int i = 0; i < 10; i++)
    {
        checkedDDL.Items.Add("Item" + i);
    }
    this.radRibbonBarGroup2.Items.Add(checkedDDL);

    I hope this helps. Should you have any other questions, do not hesitate to ask.
     
    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top