Completed
Last Updated: 09 Jun 2016 07:45 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 20 Apr 2016 10:36
Category: GridView
Type: Bug Report
0
FIX. RadGridView - application hangs when using self-reference grid with auto size rows and the Breeze theme is applied
To reproduce:

Sub New()
    InitializeComponent()

    ThemeResolutionService.ApplicationThemeName = "Breeze"

    Dim dt As New DataTable
    dt.Columns.Add("Id", GetType(Integer))
    dt.Columns.Add("ParentId", GetType(Integer))
    dt.Columns.Add("Name", GetType(String))

    For index = 1 To 5
        dt.Rows.Add(index, 0, "Parent" & index)
    Next
    Dim rand As New Random
    For index = 6 To 25
        dt.Rows.Add(index, rand.Next(1, 6), "Parent" & index)
    Next
    Me.RadGridView1.Relations.AddSelfReference(Me.RadGridView1.MasterTemplate, "Id", "ParentId")
    Me.RadGridView1.DataSource = dt
    Me.RadGridView1.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill

    Me.RadGridView1.AutoSizeRows = True
End Sub
0 comments