Can't find get_checkedItems() client side api

5 posts, 0 answers
  1. Terry lin
    Terry lin avatar
    3 posts
    Member since:
    Aug 2009

    Posted 28 Oct 2009 Link to this post

    I can' t find the get_checkedItems() method in the client side RadListBox object & the get_checked method in RadListBoxItem object.
    The telerik library version i'm using is 2009.2.701.35.  Maybe they are in the Q2 sp1? Can someone answer? Thanks.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Oct 2009 Link to this post

    Hi Terry,

    I tried following code in order to the checked item in client side (Version: 2009, 2, 701, 20) and it is working fine for me.

    ASPX:
     
    <telerik:RadListBox CheckBoxes="true" runat="server" ID="RadListBox1" Height="200px" Width="230px"
        <Items> 
          . . . 
        </Items> 
    </telerik:RadListBox> 

    JavaScript:
     
    <script type="text/javascript"
        function getChecked() { 
            var listBox = $find('<%= RadListBox1.ClientID %>'); 
            alert(listBox.get_checkedItems().length); 
            alert(listBox.get_checkedItems()[0].get_text()); // First selected item 
            alert(listBox.get_checkedItems()[0].get_checked()); 
        } 
    </script> 
    Cold you provide the code that you tried if that is different from this?

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Terry lin
    Terry lin avatar
    3 posts
    Member since:
    Aug 2009

    Posted 28 Oct 2009 Link to this post

    Thanks Shinu.
    I made a mistake, the object I got is a combobox but not the listbox, how stupid i'm, thanks again
  5. Mark Galbreath
    Mark Galbreath avatar
    171 posts
    Member since:
    Jul 2009

    Posted 17 Nov 2009 Link to this post

    Of course, your original question was, "Where is the documentation?"
  6. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 18 Nov 2009 Link to this post

    Hello Mark Galbreath,

    You can find RadListBox's client-side API documentation here.

    Sincerely yours,
    Simon
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017