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

RadDropDownListElement ?s

3 Answers 191 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Deasun asked on 17 Jul 2019, 05:00 PM

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.

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 18 Jul 2019, 08:05 AM

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.
0
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
answered on 19 Jul 2019, 11:33 AM

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.

 

0
Dimitar
Telerik team
answered on 22 Jul 2019, 07:50 AM
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.
Tags
DropDownList
Asked by
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Answers by
Dimitar
Telerik team
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Share this question
or