I have multiple horizontal RadListViews on a user control. These RadListViews have ListViewDataItems dynamically added to them. When all the items have been added, by default the RadListView has scrolled to the end, ie. all the way to the right.
How do I prevent this or set the scroll bar to the start?
How do I prevent this or set the scroll bar to the start?
5 Answers, 1 is accepted
0
Hello Sacha,
Thank you for your question.
When you add a new item to RadListView, it becomes current in its data source and RadListView synchronized with it. To prevent the synchronization, you can use the BeginUpdate/EndUpdate method when adding new items:
I hope this helps. In case you have any additional questions, do not hesitate to ask.
Greetings,
Ivan Todorov
the Telerik team
Thank you for your question.
When you add a new item to RadListView, it becomes current in its data source and RadListView synchronized with it. To prevent the synchronization, you can use the BeginUpdate/EndUpdate method when adding new items:
this
.radListView1.BeginUpdate();
this
.radListView1.Items.Add(
"New Item"
);
this
.radListView1.EndUpdate();
I hope this helps. In case you have any additional questions, do not hesitate to ask.
Greetings,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Sacha
Top achievements
Rank 1
answered on 31 May 2012, 02:01 PM
worked perfectly, thanks.
0
Andrey
Top achievements
Rank 1
answered on 24 Jan 2014, 06:31 AM
Hi!
How can I scroll ListView to the specific Item, where listView.ViewType= ListViewType.ListView?
How can I scroll ListView to the specific Item, where listView.ViewType= ListViewType.ListView?
0
Hi Andrey,
Thank you for writing.
To scroll to a specific item in RadListView you can use the ScrollToItem method of the Scroller:
Your question does not seem to be related to the initial subject of the thread, hence I would like to kindly ask you to separate the questions that are not related to each other in separate thread. Thank you for the understanding.
Regards,
Stefan
Telerik
Thank you for writing.
To scroll to a specific item in RadListView you can use the ScrollToItem method of the Scroller:
radListView1.ListViewElement.ViewElement.Scroller.ScrollToItem(radListView1.Items[33]);
Your question does not seem to be related to the initial subject of the thread, hence I would like to kindly ask you to separate the questions that are not related to each other in separate thread. Thank you for the understanding.
Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Andrey
Top achievements
Rank 1
answered on 24 Jan 2014, 02:34 PM
Hi, sorry i was looking topic by keywords. I will keep your advice and separate questions by threads relatively.
Your solution works, thanks!
Your solution works, thanks!