This is a migrated thread and some comments may be shown as answers.

Listbox not rendering when i use BringToView

3 Answers 50 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Doug
Top achievements
Rank 1
Doug asked on 20 Dec 2012, 12:24 PM
Hi

I have a page with a listbox working as a chat box.
When I open the page and i get my data asynchronously I would like to BringToView on the end of this list. But when I touch it, and scroll manually it appears. I have to note that it is not happening every time.

I figured out that if I add a delay for for example 300 miliseconds before bringing to view fixes this... only that in this case it i weird as the list jumps by itself... and I wouldn't really use this solution

I have attached a sample application demonstrating this:
http://www.mapcat.net/public/344838_ID524488.zip

Best Regards Doug

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 20 Dec 2012, 12:26 PM
Hello Doug,

I cannot find the attachment here. Can you please make sure that you're correctly attaching your sample.

If you try to upload a project here, you will need to open a new support ticket.

Regards,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Doug
Top achievements
Rank 1
answered on 20 Dec 2012, 12:31 PM
Yes I couldn't attach it there so I was uploading it... I wasn't expecting such a fast reply.... I've edited my post, added a link for download.
0
Todor
Telerik team
answered on 27 Dec 2012, 02:05 PM
Hi Doug,

Try calling the BringIntoView after the control is loaded:
public MainPage()
{
    InitializeComponent();
    this.DataContext = this.mainViewModel;
    Loaded += MainPage_Loaded;
}
 
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
    this.dataBoundListBox1.BringIntoView(this.mainViewModel.DataItems[this.mainViewModel.DataItems.Count - 1]);
}

Let me know if you still experience issues.

Regards,
Todor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
DataBoundListBox
Asked by
Doug
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Doug
Top achievements
Rank 1
Todor
Telerik team
Share this question
or