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

RadDropDownList - Filtering or Enabling/Disabling Items at runtime

1 Answer 596 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 14 Jan 2016, 09:31 PM

I have a Windows application written in VB.Net.  It has a RadDropDownList control that has Items added to it at Design time.

I would like to Filter the items in the RadDropDownList control or disable/enable some items in the RadDropDownList control depending on the data in the other controls on the WinForm.

I have tried looking at the documentation but it is not clear on how to filter the RadDropDownList or find some items to be enabled or disabled in the RadDropDownList when the control has items added at design time not at runtime.

I am using version 2015.3.1104.40 of the RadDropDownList.

 Please help.  Thanks!

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 18 Jan 2016, 04:18 PM
Hello Keith,

Thank you for writing.

Filtering the items or disabling some items does not depend on whether the RadListDataItem has been added in the designer or at run-time.

Filtering can be set by using a predicate and its Filter property or via a FilterExpression, more information is available here: http://docs.telerik.com/devtools/winforms/dropdown,-listcontrol-and-checkeddropdownlist/dropdownlist/filtering.html.

I am sending you attached an example project which I believe should get you going. In the sample, the items are filtered depending on the value of a RadToggleSwitch control. I am also sending you a gif file showing the result on my end.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DropDownList
Asked by
Keith
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or