ScrollViewer bug when grouping

6 posts, 0 answers
  1. Radiation
    Radiation avatar
    13 posts
    Member since:
    Jul 2012

    Posted 19 Jul 2013 Link to this post

    There is a bug in RadListBox when using GroupStyle. When I select any an item from second group, radlistbox scrolls to first item in second group. This makes double click on an items almost imposible.

    I wrote a simple sample demonstrating the behaviour with comparison to regular listbox

    <Window x:Class="RadControlsWpfApp2.MainWindow"
      xmlns:local="clr-namespace:RadControlsWpfApp2"
      Title="MainWindow" Height="350" Width="525">
      <Window.DataContext>
        <local:MainWindowVM />
      </Window.DataContext>
      <Grid>
     
        <StackPanel Orientation="Horizontal">
          <ListBox x:Name="listbox" ItemsSource="{Binding CollectionView}" IsSynchronizedWithCurrentItem="False" DisplayMemberPath="Name" FontSize="20" MinWidth="150">
            <ListBox.GroupStyle>
              <GroupStyle  />
            </ListBox.GroupStyle>
          </ListBox>
     
     
     
          <telerik:RadListBox x:Name="radlistbox" ItemsSource="{Binding CollectionView}"  DisplayMemberPath="Name" FontSize="20" MinWidth="150" Margin="20,0,0,0">
            <telerik:RadListBox.GroupStyle>
              <GroupStyle  />
            </telerik:RadListBox.GroupStyle>
          </telerik:RadListBox>
        </StackPanel>
      </Grid>
    </Window>

    using System.Collections.Generic;
    using System.Windows.Data;
     
    namespace RadControlsWpfApp2
    {
      public class MainWindowVM
      {
        public List<ItemVM> Collection { get; set; }
     
        public ListCollectionView CollectionView    {      get;      set;    }
     
        public MainWindowVM()
        {
          Collection = new List<ItemVM>
          {
            new ItemVM { Group = "A", Name = "Item 1" },
            new ItemVM { Group = "A", Name = "Item 2" },
            new ItemVM { Group = "A", Name = "Item 3" },
            new ItemVM { Group = "A", Name = "Item 4" },
            new ItemVM { Group = "A", Name = "Item 5" },
            new ItemVM { Group = "A", Name = "Item 6" },
            new ItemVM { Group = "B", Name = "Item 1" },
            new ItemVM { Group = "B", Name = "Item 2" },
            new ItemVM { Group = "B", Name = "Item 3" },
            new ItemVM { Group = "B", Name = "Click Here!" },
            new ItemVM { Group = "B", Name = "Item 5" },
            new ItemVM { Group = "B", Name = "Item 6" },
          };
     
          var view = new ListCollectionView(Collection);
          view.GroupDescriptions.Add(new PropertyGroupDescription("Group"));
          CollectionView = view;
        }
     
     
      }
     
      public class ItemVM
      {
        public string Group { get; set; }
        public string Name { get; set; }
      }
    }


  2. Radiation
    Radiation avatar
    13 posts
    Member since:
    Jul 2012

    Posted 19 Jul 2013 Link to this post

    There is also another bug. The RadListBox is not visible in Visual Studio designer!

    Using VS2012 Update 2, telerik radcontrols v2013.2.611.45
  3. UI for WPF is Visual Studio 2017 Ready
  4. Daniel
    Daniel avatar
    23 posts
    Member since:
    May 2009

    Posted 22 Jul 2013 Link to this post

    No answer?
  5. Ventzi
    Admin
    Ventzi avatar
    114 posts

    Posted 24 Jul 2013 Link to this post

    Hello Andrej,

    Thank you for reporting this bugs.

    We've logged it into our bug tracking system and we hope we will be able to fix it for Q3 this year, but can't promise that it will be done for this short period.

    Your Telerik points were updated for your cooperation and we're sorry for the inconvenience caused.

    Regards,
    Ventzi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Guy
    Guy avatar
    18 posts
    Member since:
    Oct 2012

    Posted 17 Apr 2015 in reply to Ventzi Link to this post

    Hi

    We have got the same problem with a grouped RadListBox - is there any solution or workaround to this? We are using 2015.1.401.40.

    Thanks,

    Guy

  7. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 21 Apr 2015 Link to this post

    Hello Guy,

    The issue hasn't been fixed yet and unfortunately there isn't any proper workaround that we could suggest you. However, we have logged it in our Feedback portal. On the following link you could vote for the item and track its status:
    http://feedback.telerik.com/Project/143/Feedback/Details/156570-radlistbox-is-not-able-to-scroll-to-item-when-the-items-are-grouped

    We apologize for any caused inconvenience. 

    Regards,
    Nasko
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready