Completed
Last Updated: 25 Apr 2016 13:01 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 25 Feb 2016 07:52
Category: GridView
Type: Bug Report
0
FIX. RadGridView - application hangs when grouping in UI and a ColumnGroupsViewDefinition is applied
Workaround: suspend columns notifications when preview dropping and resume the notification after the drag drop service has stopped:

Dim svc As RadDragDropService = Me.RadGridView1.GridViewElement.GetService(Of RadDragDropService)()
AddHandler svc.Stopped, svc_Stopped
AddHandler svc.PreviewDragDrop, AddressOf svc_PreviewDragDrop

Private Sub svc_PreviewDragDrop(sender As Object, e As RadDropEventArgs)
    For Each col As GridViewColumn In Me.RadGridView1.Columns
        col.SuspendPropertyNotifications()
    Next
End Sub

Private Function svc_Stopped() As Object
    For Each col As GridViewColumn In Me.RadGridView1.Columns
        col.ResumePropertyNotifications()
    Next
End Function
0 comments