Remove Items

5 posts, 1 answers
  1. Cush
    Cush avatar
    88 posts
    Member since:
    Apr 2010

    Posted 11 Jul 2011 Link to this post

    Hi All

    I have two list boxes on a page one is availiablelist the other is selected list,
    i need to be able to clear the selected list and pass its values back to the availiable list based on a check box value!
    I have tried looping each item but this seems to throw an exception?
    For Each SelItem AS RadListBoxItem in Selectedlist
      
    availiablelist.Items.Add(SelItem)
      
    Next

    Could somone give me som guidance on how best to achive this please.

    Many Thanks

    Regards

    Cush
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 13 Jul 2011 Link to this post

    Hello,

    I am sending you a sample project for your scenario.

    Hope it helps.

    Kind regards,
    Peter Filipov
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Cush
    Cush avatar
    88 posts
    Member since:
    Apr 2010

    Posted 13 Jul 2011 Link to this post

    Hi Peter

    Thank you very much for getting back to me and for the sample project.
    However having read my post again i havent explained the situation very well!

    As before i have two list boxes "availiable records" & "selected records", the user selects items from the availiable list and passes them to the selected list, i need to be able to clear all the items in the selected list and pass them back to the availiable list if the user selects a checkbox (Which is not in either list)?

    I hope this makes sense??

    I would appriciate your help on this.

    Many Thanks

    Cush
  5. Answer
    Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 15 Jul 2011 Link to this post

    Hi Cush,

    I am sending you the sample project changed. It implements the scenario from your last post on 13-Jul-2011.

    Regards,
    Peter Filipov
    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!

  6. Cush
    Cush avatar
    88 posts
    Member since:
    Apr 2010

    Posted 15 Jul 2011 Link to this post

    Hi Peter

    Many thanks for the reply and the example,
    It worked a treat.

    Thank you

    Best Regards

    Cush
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017