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

Gridview Scrollbar Stops working

4 Answers 114 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 24 Jan 2011, 08:06 PM
Hi all,

I have a GridView which works fine initially..   I use a command button to open an edit form and on closing it refreshes and rebind the datasource.  All the data refreshes correctly, but I lose the ability to scroll vertically using either the up/down arrows, clicking the bar itself, or using the mouse wheel. 

Clicking on the "bar" and dragging still scrolls, but that is the only way to scroll at that point.

Thanks,

Matt

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 24 Jan 2011, 10:29 PM
Hello Matt,

I have tried a basic example of this but I haven't been able to replicate your issue. Please could you try the following code (intended for Q3 2010 SP1 Controls) and let me know if that works for you.

Form 1:
Imports Telerik.WinControls.UI
  
Public Class Form1
  
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim list As New List(Of Person)
        For i As Integer = 0 To 100
            list.Add(New Person(i, "Person " & i.ToString()))
        Next
  
        Me.RadGridView1.DataSource = list
        Dim command As New GridViewCommandColumn()
        command.HeaderText = "Button"
        Me.RadGridView1.Columns.Insert(0, command)
    End Sub
  
    Private Sub RefreshData()
  
        Dim list As New List(Of Person)
        For i As Integer = 10 To 110
            list.Add(New Person(i, "Person " & i.ToString()))
        Next
        Me.RadGridView1.DataSource = Nothing
        Me.RadGridView1.DataSource = list
    End Sub
  
    Private Sub RadGridView1_CommandCellClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadGridView1.CommandCellClick
        Dim form2 As New Form2()
  
        If form2.ShowDialog = DialogResult.OK Then
            RefreshData()
        End If
    End Sub
End Class
  
Public Class Person
  
    Public Sub New(ByVal id As Integer, ByVal name As String)
        Me.Name = name
        Me.Id = id
    End Sub
  
    Public Property Name As String
    Public Property Id As Integer
End Class

Form 1 Designer
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form
  
    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub
  
    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
  
    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.RadGridView1 = New Telerik.WinControls.UI.RadGridView()
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'RadGridView1
        '
        Me.RadGridView1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.RadGridView1.Location = New System.Drawing.Point(0, 0)
        Me.RadGridView1.Name = "RadGridView1"
        Me.RadGridView1.Size = New System.Drawing.Size(318, 313)
        Me.RadGridView1.TabIndex = 0
        Me.RadGridView1.Text = "RadGridView1"
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(318, 313)
        Me.Controls.Add(Me.RadGridView1)
        Me.Name = "Form1"
        Me.Text = "Form1"
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
  
    End Sub
    Friend WithEvents RadGridView1 As Telerik.WinControls.UI.RadGridView
  
End Class


Form 2
Public Class Form2
  
    Private Sub RadButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton1.Click
        Me.DialogResult = DialogResult.OK
        Me.Close()
    End Sub
End Class

Form2 Designer
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form2
    Inherits System.Windows.Forms.Form
  
    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub
  
    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
  
    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.RadButton1 = New Telerik.WinControls.UI.RadButton()
        CType(Me.RadButton1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'RadButton1
        '
        Me.RadButton1.Location = New System.Drawing.Point(83, 108)
        Me.RadButton1.Name = "RadButton1"
        Me.RadButton1.Size = New System.Drawing.Size(130, 24)
        Me.RadButton1.TabIndex = 0
        Me.RadButton1.Text = "RadButton1"
        '
        'Form2
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(284, 262)
        Me.Controls.Add(Me.RadButton1)
        Me.Name = "Form2"
        Me.Text = "Form2"
        CType(Me.RadButton1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
  
    End Sub
    Friend WithEvents RadButton1 As Telerik.WinControls.UI.RadButton
End Class

Regards,

Richard
0
Jack
Telerik team
answered on 27 Jan 2011, 11:15 AM
Hi Matt,

The described issue was present in some old versions of RadControls for WinForms. It is addressed in our latest release - Q3 2010 SP1. That is why I recommend that you try our latest release. If the issue continues to appear, please send us your application so we can test and locate the issue.

Should you have any other questions, please write back.

All the best,
Jack
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
David Culliton
Top achievements
Rank 1
answered on 19 Apr 2011, 07:05 PM
Just upgraded to the newest release and am experiencing the same issue. i have a grid attached to an sql datasource. If i change the data parameters with a dropdown combo and refill the dataset - i can no longer scroll. If i modify and refill on saving data - I can no longer scroll.
0
Jack
Telerik team
answered on 22 Apr 2011, 10:38 AM
Hi David Culliton,

Thank you for reporting this.

We marked this issue as addressed and I was not able to reproduce it using our latest release. We just released the Q1 2011 SP1 release. Could you please confirm whether the issue appears in this version? If this is true, please send us your application and we will try to locate the issue.

I am looking forward to your reply.
 
All the best,
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Matt
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Jack
Telerik team
David Culliton
Top achievements
Rank 1
Share this question
or