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

Filter DropDownList

3 Answers 231 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Dasash
Top achievements
Rank 1
Dasash asked on 07 Apr 2011, 08:04 AM
Hi
I Want To Know if i can apply Filter on the item Dynamicly in run time or i need To do It on Data Table That Bound to the Contrl
THX

3 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 07 Apr 2011, 08:44 AM
Hello,

You can use the Filter delegate, like so:
dropDown.Filter = new Predicate<RadListDataItem>(FilterItem);
 
public bool FilterItem(RadListDataItem listItem)
{
    if (someCondition)
    {
        return true;
    }
 
    return false;
}

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Dasash
Top achievements
Rank 1
answered on 07 Apr 2011, 08:58 AM
Hi Thanks For the your poat
but How U Can Perform Filter On Item That Bounded
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 07 Apr 2011, 11:47 AM
Hello again,

Just call dropDown.Rebind()

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
Tags
DropDownList
Asked by
Dasash
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Dasash
Top achievements
Rank 1
Share this question
or