Completed
Last Updated: 16 Oct 2014 07:00 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: GridView
Type: Bug Report
0
To reproduce: add a RadGridView and bind it to Employees data table.

1. Group by "Title".
2. Group by "Country".
3. Group by "City".

If you try to expand the "Sales Representative" group, no rows will be displayed. Please refer to the attached gif file, illustrating better the obtained behavior.
Completed
Last Updated: 13 Oct 2014 12:28 by ADMIN
RadGridView scrolls to right when clicking on a cell that is larger than the visible area.
Completed
Last Updated: 13 Oct 2014 09:53 by Jesse Dyck
RadGridView is throwing exception when loading layout that contains a GroupDescriptor with predefined Format with Aggregate function.

Steps to reproduce:

1. Add GroupDescriptor:
        Dim descriptor As New GroupDescriptor
        descriptor.GroupNames.Add("column3", System.ComponentModel.ListSortDirection.Ascending)
        descriptor.Aggregates.Add("Sum(column3)")
        descriptor.Format = "{0}: {1} Total montant : {2:c2}"
        Me.RadGridView1.GroupDescriptors.Add(descriptor)
2. Save Layout
3. Load Layout
Completed
Last Updated: 13 Oct 2014 09:35 by ADMIN
To reproduce:
- just subscribe to the event, sort the grid to fire it and check the property value

Wordaround:
((SortDescriptor)e.NewItems[0]).PropertyName
Declined
Last Updated: 10 Oct 2014 09:00 by Svetlin
The alternating row color in RadGridView does not work when the control is in unbound mode and LoadFrom method is used.

Resolution: 
The issue is duplicated with feedback item FIX. RadGridView - AlternatingRowColor does not work when data is loaded in the RadGridView from a IDataReader
Here is the link to item:  http://feedback.telerik.com/Project/154/Feedback/Details/112656-fix-radgridview-alternatingrowcolor-does-not-work-when-data-is-loaded-in-the-r
Completed
Last Updated: 10 Oct 2014 08:57 by ADMIN
Steps to reproduce:

1. Add a RadGridView to a form.
2. Add a code that would load data in the RadGridView from an IDataReader:
radGridView1.MasterTemplate.LoadFrom(iReader);
3. Set EnableAlternatingRowColor to true and set some AlternatingRowColor
4. Run the project and you will see that the alternating row color is not applied.

Completed
Last Updated: 09 Oct 2014 15:50 by ADMIN
RadDateTimeEditor the entire date cannot be selected when the editor is initialized.
Completed
Last Updated: 09 Oct 2014 10:21 by ADMIN
Setting the custom format is not applied to the cell. To reproduce: 

   Dim customColumn As New GridViewDateTimeColumn()
        customColumn.Width = 200
        customColumn.Name = "custom"
        customColumn.EditorType = GridViewDateTimeEditorType.TimePicker
        customColumn.FormatString = "{0:HH:mm}"
        customColumn.Format = DateTimePickerFormat.Custom
        customColumn.CustomFormat = "HH:mm"
        RadGridView1.MasterTemplate.Columns.Add(customColumn)

        RadGridView1.Rows.Add(DateTime.Now)
Completed
Last Updated: 09 Oct 2014 07:13 by ADMIN
To reproduce:

Declare the following classes:

 public class Test
 {
     public string Name { get; set; }
     public Child Child { get; set; }

 }

 public class Child
 {
     public string ChildName { get; set; }

     public override string ToString()
     {
         return ChildName;
     }
 }



Add the following columns:

gridViewTextBoxColumn1.FieldName = "Name";
gridViewTextBoxColumn1.HeaderText = "column1";
gridViewTextBoxColumn1.Name = "column1";
gridViewTextBoxColumn2.FieldName = "Child";
gridViewTextBoxColumn2.HeaderText = "column2";
gridViewTextBoxColumn2.Name = "column2";
this.radGridView1.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
gridViewTextBoxColumn1,
gridViewTextBoxColumn2});
this.radGridView1.Name = "radGridView1";
this.radGridView1.Size = new System.Drawing.Size(429, 176);
this.radGridView1.TabIndex = 0;
this.radGridView1.Text = "radGridView1";

Bind RadGridView to the following data:

var data = new List<Test>();

for (int i = 0; i < 10; i++)
{
    data.Add(new Test
        {
            Name = "Name" + i,
            Child = new Child
            {
                ChildName = "Child " + i
            }
        });
}



Export to Excel:

ExportToExcelML excelExporter = new ExportToExcelML(radGridView1);
excelExporter.RunExport(System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), @"test.xls"));

You will notice that column2 will not have text



Workaround:

Subscribe to the ExcelCellFormatting event:

void excelExporter_ExcelCellFormatting(object sender, Telerik.WinControls.UI.Export.ExcelML.ExcelCellFormattingEventArgs e)
{
    if (e.ExcelCellElement.Data.DataItem.GetType().IsClass)
    {
        e.ExcelCellElement.Data.DataItem = e.ExcelCellElement.Data.DataItem.ToString();
    }
}
Completed
Last Updated: 08 Oct 2014 15:01 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: GridView
Type: Feature Request
0
Resolution: 
Please use the following code snippet to replace RadGridViewDragDropService: 
this.radGridView1.GridViewElement.RegisterService(new CustomDragDropService(this.radGridView1.GridViewElement));  
Completed
Last Updated: 08 Oct 2014 13:12 by ADMIN
To reproduce:
- Create a RadGridView with 3 columns.
- Set ShowRowHeaderColumn to false.
- Set GridViewAutoSizeColumnsMode to Fill.
- Select a cell and hit the TAB key multiple times. Notice the entire grid shift left and right.
Completed
Last Updated: 08 Oct 2014 09:20 by ADMIN
This method should return true if successful.
Completed
Last Updated: 08 Oct 2014 07:15 by ADMIN
To reproduce:
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        BindGrid()
    End Sub

    Private Sub BindGrid()
        Dim r As New Random()
        Dim table As New DataTable()
        table.Columns.Add("ID", GetType(Integer))
        table.Columns.Add("Name", GetType(String))
        table.Columns.Add("Bool", GetType(Boolean))

        For i As Integer = 0 To 39
            table.Rows.Add(i, "Row " & i, If(r.[Next](10) > 5, True, False))
        Next

        Me.RadGridView1.DataSource = table
    End Sub

    Dim saveName As Integer

    Private Sub RadGridView1_CellEndEdit(sender As Object, e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles RadGridView1.CellEndEdit
        If e.Column.Name = "Name" Then
            saveName = RadGridView1.CurrentRow.Cells("ID").Value
            BindGrid()
        End If
    End Sub

    Private Sub RadGridView1_DataBindingComplete(sender As Object, e As Telerik.WinControls.UI.GridViewBindingCompleteEventArgs) Handles RadGridView1.DataBindingComplete
        For Each row As GridViewRowInfo In RadGridView1.Rows
            If row.Cells("ID").Value = saveName Then
                row.IsCurrent = True
                RadGridView1.TableElement.EnsureRowVisible(row)
                Exit For
            End If
        Next
    End Sub
WORKAROUND:
Rebind the grid in the CellValueChanged event instead of the CellEndEdit event:

    Private Sub RadGridView1_CellValueChanged(sender As Object, e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles RadGridView1.CellValueChanged
        If e.Column.Name = "Name" Then
            saveName = RadGridView1.CurrentRow.Cells("ID").Value
            BindGrid()
        End If
    End Sub
Completed
Last Updated: 01 Oct 2014 13:13 by ADMIN
Currently one cannot set the column chooser items properties permanently since they are recreated every time the chooser is shown or item is added/removed.

Resolution: 
You can subscribe to the ColumnChooserItemElementCreating event and edit the column chooser items.
Completed
Last Updated: 01 Oct 2014 13:12 by ADMIN
By design the  MinHeight property is not respected in ColumnGroupsViewDefinition.

The right way to apply MinHeight in the ColumnGroupsViewDefinition is setting the GridViewColumnGroup's RowSpanProperty and GridViewColumnGroupRow's MinHeight property. For example:

            this.columnGroupsView = new ColumnGroupsViewDefinition();
            this.columnGroupsView.ColumnGroups.Add(new GridViewColumnGroup("General") { RowSpan = 40 });
            this.columnGroupsView.ColumnGroups.Add(new GridViewColumnGroup("Details") { RowSpan = 40 });
            this.columnGroupsView.ColumnGroups[1].Groups.Add(new GridViewColumnGroup("Address") { RowSpan = 40 });
            this.columnGroupsView.ColumnGroups[1].Groups.Add(new GridViewColumnGroup("Ime Tam") { RowSpan = 40 });
            this.columnGroupsView.ColumnGroups[0].Rows.Add(new GridViewColumnGroupRow() { MinHeight = 40 });             
            this.columnGroupsView.ColumnGroups[0].Rows.Add(new GridViewColumnGroupRow() { MinHeight = 40 });
            this.radGridView1.Columns["ContactName"].RowSpan = 40;
            this.columnGroupsView.ColumnGroups[0].Rows[0].Columns.Add(this.radGridView1.Columns["CustomerID"]);
            this.columnGroupsView.ColumnGroups[0].Rows[0].Columns.Add(this.radGridView1.Columns["ContactName"]);         
            this.columnGroupsView.ColumnGroups[0].Rows[1].Columns.Add(this.radGridView1.Columns["CompanyName"]);
            this.columnGroupsView.ColumnGroups[1].Groups[0].Rows.Add(new GridViewColumnGroupRow() { MinHeight = 40 });             
            this.columnGroupsView.ColumnGroups[1].Groups[0].Rows[0].Columns.Add(this.radGridView1.Columns["City"]);             
            this.columnGroupsView.ColumnGroups[1].Groups[0].Rows[0].Columns.Add(this.radGridView1.Columns["Country"]);
            this.columnGroupsView.ColumnGroups[1].Groups[1].Rows.Add(new GridViewColumnGroupRow() { MinHeight = 40 });          
            this.columnGroupsView.ColumnGroups[1].Groups[1].Rows[0].Columns.Add(this.radGridView1.Columns["Phone"]);
Completed
Last Updated: 01 Oct 2014 13:09 by ADMIN
When RadGridView is in right to left mode and the data is grouped, the layout of the items that represent the group field names is incorrect - the close button overlays the text.

WORKAROUND:

        public Form83()
        {
            new RadControlSpyForm().Show();
            InitializeComponent();

            this.radGridView1.GroupByChanged += radGridView1_GroupByChanged;
        }

        void radGridView1_GroupByChanged(object sender, Telerik.WinControls.UI.GridViewCollectionChangedEventArgs e)
        {
            foreach (GroupFieldElement fieldElement in this.radGridView1.GridViewElement.GroupPanelElement.GetDescendants(
                delegate(RadElement element) { return element is GroupFieldElement; }, Telerik.WinControls.TreeTraversalMode.BreadthFirst))
            {
                fieldElement.TextAlignment = ContentAlignment.MiddleRight;
            }
        }
Completed
Last Updated: 01 Oct 2014 12:59 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 1
Category: GridView
Type: Bug Report
0
Steps at design time:
1.Add a RadGridView to the from and change its Dock property to Fill.
2.Change its AutoSizeColumnsMode property to Fill.
3.Chage the Form.Size property to Width = 527 and Height = 346.

Use the following code:
public Form1()
{
    InitializeComponent();

    DataTable dt = new DataTable("Items");

    dt.Columns.Add("Id", typeof(int));
    dt.Columns.Add("Description", typeof(string));
    dt.Columns.Add("Price", typeof(decimal));
    dt.Columns.Add("Supplier", typeof(string));

    for (int i = 0; i < 10; i++)
    {
        dt.Rows.Add(i, "Description" + i, i * 0.25, "Supplier" + i);
    }

    radGridView1.DataSource = dt;
}

Workaround: set the AutoSizeColumnsMode property to Fill in the Form.Load event:
private void Form1_Load(object sender, EventArgs e)
{
    radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
}
Completed
Last Updated: 01 Oct 2014 12:59 by ADMIN
To reproduce:

public Form1()
{
    InitializeComponent();
    radGridView1.ToolTipTextNeeded += radGridView1_ToolTipTextNeeded;
}

private void radGridView1_ToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
{
    GridDataCellElement cell = sender as GridDataCellElement;
    if (cell != null)
    {
        e.ToolTipText = cell.Value.ToString();
        toolTipText = e.ToolTipText;
        e.ToolTip.OwnerDraw = true;
        e.ToolTip.Draw += ToolTip_Draw;
        e.ToolTip.Popup += ToolTip_Popup;
    }
}

private void ToolTip_Popup(object sender, PopupEventArgs e)
{
    e.ToolTipSize = TextRenderer.MeasureText(toolTipText + "   ", newFont);
}

Font newFont = new Font("Arial", 15f, FontStyle.Bold);
string toolTipText = string.Empty;

private void ToolTip_Draw(object sender, DrawToolTipEventArgs e)
{
    e.Graphics.FillRectangle(SystemBrushes.Control, e.Bounds);
    e.DrawBorder();         
    using (StringFormat sf = new StringFormat())
    {
        sf.Alignment = StringAlignment.Center;
        sf.LineAlignment = StringAlignment.Far;
        sf.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.None;
        sf.FormatFlags = StringFormatFlags.NoClip;

        e.Graphics.DrawString(e.ToolTipText, newFont, Brushes.Red, e.Bounds, sf);
    }
}

Completed
Last Updated: 01 Oct 2014 12:59 by ADMIN
If one sets AutoSizeRows to true and AllowSearchRow to true the layout of RadGridView throws an exception.