how to restrict duplication of items in RadListBox in WinForms Q3 2009 SP1

2 posts, 0 answers
    4 posts
    Member since:
    Dec 2009

    Posted 11 May 2010 Link to this post

    i use the RadListBox that comes with WinForms Q3 2009 SP1 in my C# project. One major difficulty i face now is i want to  perform a condition on adding items to the radListBox. i.e, all items must be added only duplication of same item must be present. In the standard listbox of Windows Forms i used if(!listbox1.item.contains(s)) to enter a string s, but i need to know how to implement this using RadListBox.
  2. Dobry Zranchev
    Dobry Zranchev avatar
    348 posts

    Posted 14 May 2010 Link to this post


    Thank you for contacting us. We have the same method in the RadListBox.Items collection

    This method accepts a RadListBoxItem instance. If you want to check whether an item has the text that you are looking for, you should create your own method that checks whether the collection contains an item with this text. I hope this will help you.

    If you have additional questions, feel free to ask.

    Dobry Zranchev
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top