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

ScrollViewer bug when grouping

5 Answers 128 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Radiation
Top achievements
Rank 1
Radiation asked on 19 Jul 2013, 10:31 AM

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; }
  }
}


5 Answers, 1 is accepted

Sort by
0
Radiation
Top achievements
Rank 1
answered on 19 Jul 2013, 10:36 AM
There is also another bug. The RadListBox is not visible in Visual Studio designer!

Using VS2012 Update 2, telerik radcontrols v2013.2.611.45
0
Daniel
Top achievements
Rank 1
answered on 22 Jul 2013, 02:35 PM
No answer?
0
Ventzi
Telerik team
answered on 24 Jul 2013, 03:39 PM
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 >>
0
Guy
Top achievements
Rank 2
answered on 17 Apr 2015, 09:53 AM

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

0
Nasko
Telerik team
answered on 21 Apr 2015, 03:36 PM
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.

 
Tags
ListBox
Asked by
Radiation
Top achievements
Rank 1
Answers by
Radiation
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Ventzi
Telerik team
Guy
Top achievements
Rank 2
Nasko
Telerik team
Share this question
or