Filter DropDownList

4 posts, 2 answers
  1. Dasash
    Dasash avatar
    3 posts
    Member since:
    Nov 2010

    Posted 07 Apr 2011 Link to this post

    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
  2. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 07 Apr 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dasash
    Dasash avatar
    3 posts
    Member since:
    Nov 2010

    Posted 07 Apr 2011 Link to this post

    Hi Thanks For the your poat
    but How U Can Perform Filter On Item That Bounded
  5. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 07 Apr 2011 Link to this post

    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
Back to Top