Completed
Last Updated: 23 May 2019 13:20 by ADMIN
Release R2 2019 SP1 (LIB 2019.2.527)
nirav
Created on: 21 Mar 2019 16:09
Category:
Type: Bug Report
1
RadListView - group items are cut off in IconView

Hi,

This is related to ticket#1401471 , the other ticket was accidentally closed. Please see the screen shot using the below settings mentioned i was able to achieve the Icon display but grouping is not showing correctly, is there setting for grouping also to display correctly?

https://www.telerik.com/account/support-tickets/view-ticket/1401471


radListView1.CheckBoxesPosition = CheckBoxesPosition.Top

The text and the image alignment can be set in the VisualItemFormatting event:
Private Sub RadListView1_VisualItemFormatting(ByVal sender AsObjectByVal As ListViewVisualItemEventArgs)
    Dim item = TryCast(e.VisualItem, IconListViewVisualItem)
    If item IsNot Nothing Then
        item.TextImageRelation = TextImageRelation.TextAboveImage
        item.TextAlignment = ContentAlignment.MiddleCenter
        item.ImageAlignment = ContentAlignment.MiddleCenter
    End If
End Sub

 

1 comment
ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 22 Mar 2019 07:53
Hello, Nirav,

The illustrated layout on the provided screenshot doesn't look correct. I was able to replicate it in a sample project with the following basic code snippet: 

Sub New()
 
    InitializeComponent()
 
    For index = 1 To 10
        Me.RadListView1.Items.Add("Item" & index)
        Me.RadListView1.Items.Last().Image = My.Resources.folder
    Next
 
    RadListView1.ShowCheckBoxes = True
    RadListView1.EnableGrouping = True
    RadListView1.ShowGroups = True
    Dim groupByType As New GroupDescriptor(New SortDescriptor() {New SortDescriptor("Text", ListSortDirection.Descending)})
    RadListView1.GroupDescriptors.Add(groupByType)
 
    Me.RadListView1.ViewType=ListViewType.IconsView
    Me.RadListView1.CheckBoxesPosition = CheckBoxesPosition.Bottom  
End Sub



I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to increase the height in the GroupItemSize and ItemSize properties: 

Me.RadListView1.GroupItemSize= New Size(100,30)
Me.RadListView1.ItemSize= New Size(200,100)
 

 

I hope this information helps. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.