RadListBox with check boxes

2 posts, 0 answers
  1. Ela
    Ela avatar
    26 posts
    Member since:
    Jul 2010

    Posted 02 Sep 2011 Link to this post

    How to clear selection/uncheck the check boxes on the client side? The clearSelection() does not work.

    Thank you.

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Sep 2011 Link to this post

    Hello Ela,
    That the following client side code to achieve your requirement.

    Javascript:
    function Uncheck()
    {
       var listBox = $find('<%= RadListBox2.ClientID%>');
       var items = listBox.get_items();
     
    for (var i = 0; i < listBox.get_items().get_count(); i++)
         {
            if(items.getItem(1).get_checked())
             items.getItem(i).set_checked(false);
         }
    }

    Also take a look into the following help article for more on RadListBox client side API.
    Client-side Basics
    RadListBoxItem client API
    RadListBox client API

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top