Hello. We recently upgraded to the 2011 Q1 release and I am having some issues with the gridview.
1) The vertical scrollbar does not appear anymore.
2) Not all of the columns show in the property builder. The columns are displayed in the grid, but they are not in the list in the property builder. The ones that do not show up are custom columns.
1) The vertical scrollbar does not appear anymore.
2) Not all of the columns show in the property builder. The columns are displayed in the grid, but they are not in the list in the property builder. The ones that do not show up are custom columns.
4 Answers, 1 is accepted
0

Richard Slade
Top achievements
Rank 2
answered on 07 Apr 2011, 04:13 PM
Hello Bob,
I'm not able to replicate your issue under the latest version at the moment. Please could you post a small exmaple using the format code block that demonstrates your issue and I'll be happy to take a look at it for you.
Thanks
Richard
I'm not able to replicate your issue under the latest version at the moment. Please could you post a small exmaple using the format code block that demonstrates your issue and I'll be happy to take a look at it for you.
Thanks
Richard
0

Bob
Top achievements
Rank 1
answered on 07 Apr 2011, 04:42 PM
I am not sure exactly what you are looking for. I have a grid which is docked in a content panel. When the size of the grid exceeds the size of the panel, a scroll bar would appear in the older release. Since upgrading, it does not. The horizontal and vertical scroll settings are set to Auto Hide.
0

Richard Slade
Top achievements
Rank 2
answered on 07 Apr 2011, 04:51 PM
Hello Bob,
As I mentioned, if you can provide a sample that replicates this behavior, then I can take a look at the issue. The exmaple I have included below has a form, then a panel on the form, and a RadGridView in the panel and the scrollbars appear correctly.
Regards,
Richard
As I mentioned, if you can provide a sample that replicates this behavior, then I can take a look at the issue. The exmaple I have included below has a form, then a panel on the form, and a RadGridView in the panel and the scrollbars appear correctly.
using
System.ComponentModel;
using
System.Windows.Forms;
using
Telerik.WinControls.UI;
public
partial
class
Form1 : Form
{
private
BindingList<Person> people =
new
BindingList<Person>();
private
RadPanel panel1;
private
RadGridView radGridView1;
public
Form1()
{
InitializeComponent();
panel1 =
new
RadPanel();
radGridView1 =
new
RadGridView();
panel1.Dock = DockStyle.Fill;
radGridView1.Dock = DockStyle.Fill;
panel1.Dock = DockStyle.Fill;
panel1.Controls.Add(radGridView1);
this
.Controls.Add(panel1);
people.Add(
new
Person(1,
"Richard"
));
people.Add(
new
Person(2,
"Chris"
));
people.Add(
new
Person(
null
,
"Bob"
));
people.Add(
new
Person(1,
"Richard"
));
people.Add(
new
Person(2,
"Chris"
));
people.Add(
new
Person(
null
,
"Bob"
));
people.Add(
new
Person(1,
"Richard"
));
people.Add(
new
Person(2,
"Chris"
));
people.Add(
new
Person(
null
,
"Bob"
));
radGridView1.AutoGenerateColumns =
false
;
GridViewTextBoxColumn idColumn =
new
GridViewTextBoxColumn();
idColumn.FieldName =
"Id"
;
idColumn.HeaderText =
"Id"
;
GridViewTextBoxColumn nameColumn =
new
GridViewTextBoxColumn();
nameColumn.FieldName =
"Name"
;
nameColumn.HeaderText =
"Name"
;
radGridView1.Columns.Add(idColumn);
radGridView1.Columns.Add(nameColumn);
radGridView1.DataSource = people;
}
}
public
class
Person
{
public
Person(
int
? id,
string
name)
{
this
.Name = name;
this
.Id = id;
}
public
string
Name
{
get
;
set
; }
public
int
? Id
{
get
;
set
; }
}
Regards,
Richard
0

Bob
Top achievements
Rank 1
answered on 07 Apr 2011, 05:04 PM
Never mind. I figured it out. The Autosize property was set to True. Not sure why that causes the scroll bars not to show up. I set it to False and everything works now. Thanks.