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

RadListbox SelectedItem 0 not work

2 Answers 52 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 12 Jun 2013, 10:13 AM
Hi,

I'm Synchronization RadListbox and RadDataForm SelectedItem 0 not highlight i'm trying MS ListBox not problem.

Thanks.
<telerik:RadDataForm x:Name="dataForm" ItemsSource="{Binding Items}"/>
<telerik:RadListBox x:Name="ListBox" ItemsSource="{Binding Items}" SelectedIndex="0" />
 
  
 
        private ICollectionView _items;
        public ICollectionView Items
        {
            get
            {
                if (_items== null)
                {                   
                   Items = new QueryableCollectionView(new ObservableCollection<Contact>(RepositoryBase.Context.Contacts));
                }
                return _items;
            }
            set
            {
                if (Equals(value, _items)) return;
                _items= value;
                NotifyOfPropertyChange(() => Items);
            }
        }

2 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 13 Jun 2013, 03:25 PM
Hello Steve,

We were able to reproduce the issue and therefore we have logged it in our Public Issue Tracking System.
Here you can subscribe and track the progress of fixing it.
The good news is that there is a workaround - setting the SlectedItem through the RadListBox SelectionHelper as shown in the attached project.
It would be great if you can give it a try and let us know if the workaround works for you.

Please, excuse us for the inconvenience. We have added points to your account for the report. Don't hesitate to contact us if you have other questions.



Regards,
Georgi
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Steve
Top achievements
Rank 1
answered on 14 Jun 2013, 07:49 AM
Hi Georgi,

Thanks for report this bug.
Tags
ListBox
Asked by
Steve
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Steve
Top achievements
Rank 1
Share this question
or