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

Positionnement dans la liste en utilisation "FindItem"

1 Answer 22 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Alain Cabot
Top achievements
Rank 1
Alain Cabot asked on 08 Nov 2010, 03:08 PM
Hello
I have a screen with a RadListBox where users are able to search through the list with a button and a search button below. The user enters the search value and fact find.
I am able to find the right items with my search button and using the following method "FindItem" of control.

My problem is that if I have a scrollbar because I have a lot of information in the list find the item is in the bottom of the list, the control does not set the list to see who is selected by programming .

If it is not clear, I have an example I can send you.

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 11 Nov 2010, 10:36 AM
Hi Alain Cabot,

I believe that you can use one of the following client side methods to scroll the listbox to the selected item:

var item = $find("RadListBox1").getItem(10);
 
item.scrollIntoView();
/* or */
item.ensureVisible();

I suggest that you give it a try.

Sincerely yours,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ListBox
Asked by
Alain Cabot
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or