This is a migrated thread and some comments may be shown as answers.
Set focus on ListBoxItem
1 Answer 34 Views
This is a migrated thread and some comments may be shown as answers.
figueiredorj
Top achievements
Rank 1
figueiredorj asked on 22 May 2012, 08:23 PM
Hi.

Is there a way to focus being set on a RadListBoxItem? Setting binded selecteItem doesn't seem to work neither forcing selected index...

Thanks

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 28 May 2012, 10:37 AM
Hello Ricardo,

I am attaching a simple project where you can see a simple implementation of how you can select RadListboxItem when you have ObservableCollection bound as an ItemsSource. If you don't have it bound you can just use the Focus method :

(listBox.Items[1] as RadListBoxItem).Focus();

Hope this will help.

Greetings,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Asked by
figueiredorj
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or