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

RadGridView scrollbar not scrolling

7 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 21 Jan 2011, 04:42 AM
I have placed a RadGridview in a toolWindows of a RadDock.
When I click on the down/up arrow of the scrollbar, it worked. As soon as I drag the scrollbar, either up or down. It stopped working thereafter.

Am I missing something?

7 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 21 Jan 2011, 10:15 AM
Hello Oliver,

This should work just fine. What version of the controls are you using?

Here is a very simple exmaple to try in a new project.

Designer File
<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.RadDock1 = New Telerik.WinControls.UI.Docking.RadDock()
        Me.DocumentContainer1 = New Telerik.WinControls.UI.Docking.DocumentContainer()
        Me.ToolWindow1 = New Telerik.WinControls.UI.Docking.ToolWindow()
        Me.ToolTabStrip1 = New Telerik.WinControls.UI.Docking.ToolTabStrip()
        Me.RadGridView1 = New Telerik.WinControls.UI.RadGridView()
        CType(Me.RadDock1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.RadDock1.SuspendLayout()
        CType(Me.DocumentContainer1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.ToolWindow1.SuspendLayout()
        CType(Me.ToolTabStrip1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.ToolTabStrip1.SuspendLayout()
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'RadDock1
        '
        Me.RadDock1.ActiveWindow = Me.ToolWindow1
        Me.RadDock1.Controls.Add(Me.ToolTabStrip1)
        Me.RadDock1.Controls.Add(Me.DocumentContainer1)
        Me.RadDock1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.RadDock1.DocumentManager.DocumentInsertOrder = Telerik.WinControls.UI.Docking.DockWindowInsertOrder.InFront
        Me.RadDock1.IsCleanUpTarget = True
        Me.RadDock1.Location = New System.Drawing.Point(0, 0)
        Me.RadDock1.MainDocumentContainer = Me.DocumentContainer1
        Me.RadDock1.Name = "RadDock1"
        Me.RadDock1.Padding = New System.Windows.Forms.Padding(5)
        '
        '
        '
        Me.RadDock1.RootElement.MinSize = New System.Drawing.Size(25, 25)
        Me.RadDock1.Size = New System.Drawing.Size(613, 463)
        Me.RadDock1.SplitterWidth = 4
        Me.RadDock1.TabIndex = 0
        Me.RadDock1.TabStop = False
        Me.RadDock1.Text = "RadDock1"
        '
        'DocumentContainer1
        '
        Me.DocumentContainer1.Location = New System.Drawing.Point(209, 5)
        Me.DocumentContainer1.Name = "DocumentContainer1"
        '
        '
        '
        Me.DocumentContainer1.RootElement.MinSize = New System.Drawing.Size(25, 25)
        Me.DocumentContainer1.Size = New System.Drawing.Size(399, 453)
        Me.DocumentContainer1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Fill
        Me.DocumentContainer1.SplitterWidth = 4
        Me.DocumentContainer1.TabIndex = 0
        Me.DocumentContainer1.TabStop = False
        '
        'ToolWindow1
        '
        Me.ToolWindow1.Controls.Add(Me.RadGridView1)
        Me.ToolWindow1.Location = New System.Drawing.Point(1, 24)
        Me.ToolWindow1.Name = "ToolWindow1"
        Me.ToolWindow1.Size = New System.Drawing.Size(198, 427)
        Me.ToolWindow1.Text = "ToolWindow1"
        '
        'ToolTabStrip1
        '
        Me.ToolTabStrip1.Controls.Add(Me.ToolWindow1)
        Me.ToolTabStrip1.Location = New System.Drawing.Point(5, 5)
        Me.ToolTabStrip1.Name = "ToolTabStrip1"
        '
        '
        '
        Me.ToolTabStrip1.RootElement.MinSize = New System.Drawing.Size(25, 25)
        Me.ToolTabStrip1.SelectedIndex = 0
        Me.ToolTabStrip1.Size = New System.Drawing.Size(200, 453)
        Me.ToolTabStrip1.TabIndex = 1
        Me.ToolTabStrip1.TabStop = False
        '
        '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(198, 427)
        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(613, 463)
        Me.Controls.Add(Me.RadDock1)
        Me.Name = "Form1"
        Me.Text = "Form1"
        CType(Me.RadDock1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.RadDock1.ResumeLayout(False)
        CType(Me.DocumentContainer1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ToolWindow1.ResumeLayout(False)
        CType(Me.ToolTabStrip1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ToolTabStrip1.ResumeLayout(False)
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
  
    End Sub
    Friend WithEvents RadDock1 As Telerik.WinControls.UI.Docking.RadDock
    Friend WithEvents ToolWindow1 As Telerik.WinControls.UI.Docking.ToolWindow
    Friend WithEvents RadGridView1 As Telerik.WinControls.UI.RadGridView
    Friend WithEvents ToolTabStrip1 As Telerik.WinControls.UI.Docking.ToolTabStrip
    Friend WithEvents DocumentContainer1 As Telerik.WinControls.UI.Docking.DocumentContainer
  
End Class

Form1.vb
Imports Telerik.WinControls.UI
  
Public Class Form1
  
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.RadGridView1.Columns.Add(New GridViewTextBoxColumn("A"))
        Me.RadGridView1.Columns.Add(New GridViewTextBoxColumn("B"))
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
        Me.RadGridView1.Rows.Add("A1", "B1")
        Me.RadGridView1.Rows.Add("A2", "B2")
    End Sub
End Class

Let me know if that works for you.
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 23 Jan 2011, 05:43 PM
Hello,

did this help? If so please remember to mark as answer. If you need further help please let me know
Richard
0
Oliver
Top achievements
Rank 1
answered on 24 Jan 2011, 01:50 AM
Hi Richard,

Sorry for the late reply. I did try you suggested solution. Tried it before I submitted this thread. The scrolling worked without any problems.
However, on another project, I had other controls on the document tab strip. That didn't work. The RadGridView worked fine until I drag the scroll bar. I suspect by dragging the scroll bar on the RadGridView, triggered something else.
0
Richard Slade
Top achievements
Rank 2
answered on 24 Jan 2011, 10:09 AM
Hello Oliver,

If you could post a sample of this issue, I'll be very happy to take a look at it for you.
Regards,
Richard
0
Martin Vasilev
Telerik team
answered on 26 Jan 2011, 01:47 PM
Hi Oliver,

Since we also cannot reproduce the described issue on our side, I would second the reply of Richard: Could you please open a new support ticket and send us a small sample application, which demonstrates the strange behavior. This will allow us to further your case further and provide you with accurate assistance.

All the best,
Martin Vasilev
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
Larry
Top achievements
Rank 2
answered on 09 Mar 2011, 05:17 PM
I am having the exact same problem.  I did not notice this until I upgraded my project to the most recent version of Winforms using the "Project Update Utility".
0
Martin Vasilev
Telerik team
answered on 15 Mar 2011, 07:26 AM
Hello Larry,

Thank you for writing.

Could you please open a new support ticket and send me a small sample project, which demonstrates the issue? I am still struggling to reproduce it on my side and this prevents me from investigating it  further.

Kind regards,
Martin Vasilev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Oliver
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Oliver
Top achievements
Rank 1
Martin Vasilev
Telerik team
Larry
Top achievements
Rank 2
Share this question
or