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

ItemUpdated event doesn't seem to be working

1 Answer 20 Views
LoopingList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rob
Top achievements
Rank 1
Rob asked on 22 Dec 2014, 01:37 AM
I am trying to create a pretty simple UserControl with 2 LoopingList's that will be used as an FM Radio tuner. One is supposed to display numbers from 88-107 but the LoopingList control only displays 88-96 and then repeats itself.

I have a reproducible sample that I can send, here's a snippet of my code for setting up the LoopingListDataSource

           
_frequencyRangeValues = new List<int>();
 
for (int i = 88; i <= 107; i++)
    _frequencyRangeValues.Add(i);
 
var frequencyRangeEnumerator = _frequencyRangeValues.GetEnumerator();
var frequencyRange = new Telerik.Windows.Controls.LoopingListDataSource(_frequencyRangeValues.Count);
frequencyRange.ItemNeeded += (sender, args) =>
{
    args.Item = new Telerik.Windows.Controls.LoopingListDataItem(_frequencyRangeValues[args.Index].ToString());
};
frequencyRange.ItemUpdated += (sender, args) =>
{
    args.Item.Text = _frequencyRangeValues[args.Index].ToString();
    System.Diagnostics.Debug.WriteLine(args.Item.Text);
};
fmRadioFreqPicker.DataSource = frequencyRange;

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 22 Dec 2014, 04:36 PM
Hi Rob,

We have not encountered similar issue. Would it be possible to send us project, or modify the attached one, so we can reproduce it from our side and address it accordingly.

P.S. You can attach archives by opening support ticket.

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
LoopingList
Asked by
Rob
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or