RadListControl Move item

6 posts, 1 answers
  1. Carol Watson
    Carol Watson avatar
    21 posts
    Member since:
    Jan 2010

    Posted 13 Jul 2011 Link to this post

    At design time I can Add items to the Items Collection and change the order they are displayed.

    Is it possible to do this at run time, if so how.  

    It is possible to do this with a list that is bound to datasource?

  2. Answer
    Peter avatar
    1148 posts

    Posted 15 Jul 2011 Link to this post

    Hello Carol,

    When using the control in data bound mode you should not manipulate the items directly (e.g. you should not call the Insert, Add or Clear methods of the Items collection).

    I would suggest that you prepare the items in the DataLayer (for example, sort them).

    Do not hesitate to contact us if you have other questions.

    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. AJing
    AJing avatar
    19 posts
    Member since:
    Jun 2011

    Posted 21 Nov 2011 Link to this post


       If we through operate the data source(for example, remove and insert,),so that we can change the order they are  displayed (Up and down).However,  The selected Item is always the first Item in RadListControl visible region because of the vertical scroll bar ---what is not expected.

       How to do?
  4. Peter
    Peter avatar
    1148 posts

    Posted 22 Nov 2011 Link to this post

    Hello Ajing,

    Thank you for contacting us.

    As far as I understand, you want to remove the selected item in order to modify the DataSource.
    To achieve this you can set SelectedIndex to -1 before modifying the data source - this will clear the selected item.

    I hope this helps.

    All the best,
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

  5. Arun
    Arun avatar
    1 posts
    Member since:
    Sep 2016

    Posted 07 Sep 2016 Link to this post


    How to remove a particular item from RadDropDownList?

    for eg., I can Add like, rddl_Items.Add("Car")

    IN Vb.Net, I can remove like, rddl_Items.remove("Car")

    Please help.

    Thanks in advance

  6. Hristo
    Hristo avatar
    1508 posts

    Posted 08 Sep 2016 Link to this post

    Hi Arun,

    Thank you for writing.

    You can directly access the Items collection and use either the Remove or RemoveAt methods. The first method received a RadListDataItem as a parameter and the second receives an index.

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

    Hristo Merdjanov
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
Back to Top