Last Updated: 11 Oct 2023 10:11 by ADMIN
Release R3 20223
Add hit-testing of the MSAA details cell accessible object and expose its text 
Last Updated: 01 Jun 2023 11:20 by ADMIN

In this case, the RadListView control is placed inside a RadSplitContainer. The control is set in DetailsView with enabled TextWrap of the cells. When the splitter is moved the cells with longer text are not sized correctly. 

In this case, we need to force the cells to measure again. To do that we can call the InvalidateMeasure() with true as a parameter and call UpdateLayout() afterward of the ListViewElement.



Last Updated: 08 Aug 2022 10:24 by ADMIN
Release R3 2022 (LIB 2022.2.808)

Use the attached project and start dragging an item to trigger scrolling. As a result, an error occurs. The attached gif file illustrates the steps.


Me.RadListView1.ListViewElement.DragDropService = New CustomListViewDragDropService(Me.RadListView1.ListViewElement)

    Public Class CustomListViewDragDropService
        Inherits ListViewDragDropService

        Public Sub New(owner As RadListViewElement)
        End Sub
        Protected Overrides Sub OnPreviewDragOver(e As RadDragOverEventArgs)
        End Sub
        Protected Overrides Sub HandleMouseMove(mousePos As Point)
            If Not Me.Initialized Then
            End If

            Dim mi As MethodInfo = GetType(RadDragDropService).GetMethod("DoDrag", BindingFlags.Instance Or BindingFlags.NonPublic)
            mi.Invoke(Me, New Object() {mousePos})

            Dim fi2 As FieldInfo = GetType(RadDragDropService).GetField("beginPoint", BindingFlags.Instance Or BindingFlags.NonPublic)
            fi2.SetValue(Me, mousePos)

            Dim fi As FieldInfo = GetType(ListViewDragDropService).GetField("dragHintWindow", BindingFlags.Instance Or BindingFlags.NonPublic)

            Dim dragHintWindow = fi.GetValue(Me)

            If dragHintWindow Is Nothing AndAlso Me.CanCommit Then
            End If

            Dim viewElement As RadListViewElement = Me.Owner
            Dim item As BaseListViewVisualItem = TryCast(Me.DropTarget, BaseListViewVisualItem)

            If item IsNot Nothing AndAlso item.Data IsNot Nothing AndAlso Not item.Data.Owner.Equals(viewElement) Then
                viewElement = item.Data.Owner
            End If

            Dim clientPos As Point = viewElement.PointFromScreen(mousePos)

            If (clientPos.Y < 0 AndAlso viewElement.ViewElement.Orientation = Orientation.Vertical) OrElse (clientPos.X < 0 AndAlso viewElement.ViewElement.Orientation = Orientation.Horizontal) Then
            ElseIf (clientPos.Y > viewElement.Size.Height AndAlso viewElement.ViewElement.Orientation = Orientation.Vertical) OrElse (clientPos.X > viewElement.Size.Width AndAlso viewElement.ViewElement.Orientation = Orientation.Horizontal) Then
            End If
        End Sub
    End Class

Last Updated: 17 Feb 2022 12:21 by Suresh
1. Set radListView ViewType to DetailsView
2. Add a few ListViewDataItems
3. Run the app and inspect the control with the inspect.exe tool

You will see that the last item is not accessible by the tool. 

Note that if you hide the column headers (ShowColumnHeaders property) you will be able to access all ListViewDataItems.
Last Updated: 09 Jul 2021 11:20 by ADMIN
Release R3 2021
Created by: Stoyan
Comments: 3
Category: ListView
Type: Bug Report

System.NullReferenceException: 'Object reference not set to an instance of an object.' when removing items from the list:

 public Form1()
     for (var i = 0; i < 30; i++)
         var item = new ListViewDataItem();
         radListView2.Items.Insert(0, item);
         item[0] = i;
         item[1] = i;
         item[2] = i;
         item[3] = i;
private void radButton1_Click(object sender, EventArgs e)

        foreach (var lvi in radListView2.Items.ToArray())

Last Updated: 23 Dec 2020 16:06 by ADMIN
Release R1 2021
Created by: ASM
Comments: 1
Category: ListView
Type: Bug Report

Just to report a little typo in RadListViewElement:


Protected Overrides Sub OnCurrecntItemChanged(args As ListViewItemEventArgs)



Last Updated: 15 Jun 2020 09:10 by ADMIN
Release R2 2020 SP1

This problem is even reproducible in our Demo application >> Virtual Grid >> Web service example. You will notice that when you scroll to the bottom, the waiting indicator is not being animated when the DPI scaling is higher than 100%.

If you apply the same gif file in a PictureBox it gets animated when using 150% DPI scaling.

Last Updated: 19 Mar 2020 14:39 by ADMIN
Release R2 2020 (LIB 2020.1.323)
Last Updated: 19 Mar 2020 14:38 by ADMIN
Release R2 2020 (LIB 2020.1.323)
The issue can be reproduced if the control is not grouped when deleting the items in the data source.
Last Updated: 11 Nov 2019 14:17 by ADMIN
Release R1 2020 (LIB 2019.3.1111)

Please refer to the attached sample project and follow the steps illustrated in the gif file.

Note: if the vertical  scrollbar is visible, the editor is activated as expected. 


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