ItemUpdated event doesn't seem to be working

2 posts, 0 answers
  1. Rob
    Rob avatar
    1 posts
    Member since:
    Jun 2013

    Posted 21 Dec 2014 Link to this post

    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;
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 22 Dec 2014 Link to this post

    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.

     
  3. DevCraft banner
Back to Top