RadListBoxItem not visible

Thread is closed for posting
2 posts, 0 answers
  1. Jorge Delgado-Lopez
    Jorge Delgado-Lopez avatar
    82 posts
    Member since:
    Aug 2007

    Posted 27 Oct 2008 Link to this post


    I am adding RadListBoxItem(s) to a RadListBox at runtime and I need to scroll to view the last one added. When I set the last one to SelectedItem the RadListBox scrolls to the selected item but only the upper half of the item, I "solved" it before by adding an empty item at the end, but now it is not possible and I need a "real" fix. ScrollControlIntoView can't be used since it takes a Control and the Items are RadItem(s). Any ideas?

    - jorge
  2. Nick
    Nick avatar
    767 posts

    Posted 28 Oct 2008 Link to this post

    Hello Jorge Delgado-Lopez,

    Thank you for contacting us.

    Please see whether the code snippet below can help you in this case:

    private void radButton1_Click(object sender, EventArgs e)  
                RadListBoxItem i = new RadListBoxItem();  
                i.Text = "item text";  

    Do not hesitate to write me back if you have further questions.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top