Completed
Last Updated: 18 Feb 2015 14:51 by ADMIN
If a RadGridView instance is not disposed explicitly and it is left for the finalizer to dispose, a null reference exception will be thrown. This can happen if the grid is not in the control tree of a form. The exception is caused by the fact that the SelfReferenceDataProvider is disposed twice in this case.
Completed
Last Updated: 17 Feb 2015 17:57 by ADMIN
Workaround: 

        RadImageShape hint;

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            InitializeComponent();

            hint = radGridView1.TableElement.RowDragHint;
            new Windows7Theme();
            radGridView1.ThemeName = "Windows7";

            radGridView1.TableElement.RowDragHint = hint;
          }
Completed
Last Updated: 16 Feb 2015 15:19 by ADMIN
The issue appears when selecting multiple cells using mouse drag outside of the bounds of the control. 
Add a large number of columns (100) and a few rows, press the first cell and drag quickly as far to the right as possible. 
When you scroll back and check the selection, you will see that some cells are not selected.
Completed
Last Updated: 11 Feb 2015 14:37 by ADMIN
ADD. RadGridView - add ability to move the column with the expanders to different position then the first one

Resolution: 
Set the SelfReferenceExpanderColumn property of the MasterTemplate to the preferred column. Here is the code snippet: 
radGridView1.MasterTemplate.SelfReferenceExpanderColumn = this.radGridView1.MasterTemplate.Columns[4];
Completed
Last Updated: 29 Jan 2015 17:10 by ADMIN
To reproduce:
- Open the Search Row sample in the demo application.
- Type some text in the search textbox.
- Using the context menu of the search textbox add some unicode control characters.
Completed
Last Updated: 27 Jan 2015 13:20 by ADMIN
private void radGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
    GridColorPickerEditor colorEditor = e.ActiveEditor as GridColorPickerEditor;
    if (colorEditor!=null)
    {
        GridColorPickerElement colorPicker = colorEditor.EditorElement  as GridColorPickerElement;
        colorPicker.ReadOnly = true;
    }
}

Please refer to the attached gif file.

Workaround:
private void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
{
    if (e.EditorType == typeof(GridColorPickerEditor))
    {
        e.Editor = new GridColorPickerEditor();
    }
}
Completed
Last Updated: 26 Jan 2015 15:06 by ADMIN
To reproduce:
- Add grid to a form and populate it with data.
- Show and hide the the excel like filtering several times.
Completed
Last Updated: 26 Jan 2015 14:37 by ADMIN
To reproduce:
- Add GridViewCheckBoxColumn and set the EnableHeaderCheckBox property to true.
- Mark all check boxes and change the data source of the grid (use one where not all values are set to true).

Workaround:
Add new column when the data source is changed.
Completed
Last Updated: 26 Jan 2015 14:17 by ADMIN
To reproduce:
- Add checkbox column to a grid and enable filtering.
- Filter on other column so there are no rows visible.
- The header cell checkbox is checked automatically.

Workaround:
void radGridView_CreateCell(object sender, GridViewCreateCellEventArgs e)
{
    if (e.CellType == typeof(GridCheckBoxHeaderCellElement))
    {
        e.CellElement = new GridCheckBoxHeaderCellElement(e.Column,e.Row);

        ((GridCheckBoxHeaderCellElement)e.CellElement).CheckBox.ToggleStateChanging += CheckBox_ToggleStateChanging;
    }
}

void CheckBox_ToggleStateChanging(object sender, StateChangingEventArgs args)
{
    if (radDevices.ChildRows.Count == 0)
    {
        args.Cancel = true;
    }
}
Completed
Last Updated: 26 Jan 2015 14:01 by ADMIN
To reproduce: 
- Bind the grid to a self reference data, it should contain nullable bool value as well.
- Add checkbox column:
GridViewCheckBoxColumn chkBoxColumn = new GridViewCheckBoxColumn();
chkBoxColumn.EnableHeaderCheckBox = true;
chkBoxColumn.ThreeState = true;
chkBoxColumn.EditMode = EditMode.OnValueChange;

- Start and uncheck and check one of the cells (in a data row)

Workaround:
public class MyGridCheckBoxHeaderCellElement : GridCheckBoxHeaderCellElement
{
    public MyGridCheckBoxHeaderCellElement(GridViewColumn column, GridRowElement row) : base(column,row)
    {
    }

    protected override bool SetCheckBoxState()
    {
        bool hasNullValue = false;
        foreach (GridViewRowInfo row in this.ViewInfo.Rows)
        {
            object cellValue = row.Cells[this.ColumnIndex].Value;
            if (cellValue == null)
            {
                hasNullValue = true;
            }
        }

        if (!hasNullValue)
        {
            return base.SetCheckBoxState();
        }

        SetCheckBoxState(ToggleState.Indeterminate);
        return false;
    }
}
Completed
Last Updated: 20 Jan 2015 15:43 by ADMIN
To reproduce:
- Enable the search row in the 50000 rows example.
- Set the 5 last rows RowIndex value to null.
- Set the filter of the RowIndex column to "Is null" and then to "Is not null"
- Type 499 in the search row.
- Set the filter of the RowIndex column to "Is null" and then to "Is not null" again.

Workaround:
public class MyGridViewSearchRowInfo : GridViewSearchRowInfo
{
    public MyGridViewSearchRowInfo(GridViewInfo viewInfo) : base(viewInfo)
    {
    }

    protected override int GetCurrentCellTraverserColumnIndex()
    {
        if (this.ViewTemplate.MasterTemplate.Owner.CurrentRow == null)
        {
            return -1;
        }
        
        return base.GetCurrentCellTraverserColumnIndex();
    }
}
//change the row like this:
void radGridViewDemo_CreateRowInfo(object sender, GridViewCreateRowInfoEventArgs e)
{
    if (e.RowInfo is GridViewSearchRowInfo)
    {
        e.RowInfo = new MyGridViewSearchRowInfo(e.ViewInfo);
    }
}
Completed
Last Updated: 20 Jan 2015 11:39 by ADMIN
To repriduce:
- Add a grid with Office2007Theme applied and sort by one of the columns
- Set RightToLeft to true
- Make sure the column width is no wider than the text

Workaround:
        void radGridView1_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e) 
        { 
            GridHeaderCellElement headerCell = e.CellElement as GridHeaderCellElement;   

            if (headerCell != null) 
            { 
                if (radGridView1.ThemeName == "Office2007Silver" && e.Column.IsSorted) 
                { 
                    headerCell.Arrow.Alignment = ContentAlignment.TopCenter; 
                    headerCell.Arrow.Margin = new Padding(0, 1, 0, 0); 
                } 
            } 
        }
Completed
Last Updated: 08 Jan 2015 12:02 by ADMIN
To reproduce:
1. Add text box and check box column to the grid. Add a filter descriptor to the text box column
2. Bind it to a DataTable with some data
3. Clear the columns
4. Add the columns once again => the exception will be thrown 

Workaround.

1. Create the following cell element:
    class MyHeaderCell : GridCheckBoxHeaderCellElement
    {
        public MyHeaderCell(GridViewColumn column, GridRowElement row)
            : base(column, row)
        {

        }

        protected override bool SetCheckBoxState()
        {
            if (this.ColumnIndex == -1)
            {
                return false;
            }

            return base.SetCheckBoxState();
        }
    }
2. Subscribe to the grid's CreateCell event
3. Put the modified cell in action:
        void radGridView_CreateCell(object sender, GridViewCreateCellEventArgs e)
        {
            if (e.CellType == typeof(GridCheckBoxHeaderCellElement))
            {
                e.CellType = typeof(MyHeaderCell);
            }
        }
Completed
Last Updated: 07 Jan 2015 16:33 by ADMIN
To reproduce:
- Add combobox column and filter the grid so just one row is visible.
- In CellValueChanged event show a message box.
- Change the value in the combo box column and click in the white space of the grid.

Workaround:
public class MyGridComboBoxCellElement : GridComboBoxCellElement
{
    public MyGridComboBoxCellElement(GridViewColumn column, GridRowElement row) : base(column, row)
    {
    }

    public override void SetContent()
    {
        if (this.ColumnInfo != null)
        {
            base.SetContent();
        }
    }
    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(GridComboBoxCellElement);
        }
    }
}

void radGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e)
{
    if (e.CellType == typeof(GridComboBoxCellElement))
    {
        e.CellElement = new MyGridComboBoxCellElement(e.Column, e.Row);
    }
}
Completed
Last Updated: 29 Dec 2014 11:42 by ADMIN
Add RadPageView with couple pages
Add a grid to one of the pages
Start editing a cell
Click another page item (tab) to change the selected page
=> even though no validation is performed, the selected page is not changed unless a second click is performed. The first click just closes the editor and the second one changes the selected page.
Declined
Last Updated: 26 Dec 2014 15:08 by ADMIN
Currently when RadGridView contains multiple header rows and its layout is being saved, after loading it the grid shows "No data to display" although it is binded to a data source. 

Add a functionality to support saving the layout when RadGridView contains multiple header rows
Declined
Last Updated: 26 Dec 2014 15:06 by ADMIN
Save\Load functionality of the control should work with ColumnGroupsViewDefinition.
Declined
Last Updated: 26 Dec 2014 12:47 by ADMIN
Currently it is not possible to change the table header row height when using column groups view definition.
Completed
Last Updated: 26 Dec 2014 11:59 by ADMIN
Excluding certain properties when layout is being saved
Completed
Last Updated: 26 Dec 2014 11:35 by ADMIN
ADMIN
Created by: Julian Benkov
Comments: 1
Category: GridView
Type: Feature Request
0
1. By default I cannot paste data on the radgrid if I don't have any rows created.For e.g in a grid with no rows I cannot paste data on the radgrid.Is there any setting to chane this behavior?
2. When I copy data from excel and paste in the grid the column order has to be the same as that in the excel.For e.g in the excel the columns are A,B,C and in the grid the order is C,B,A..Then 'paste' copies A' data to C and C's data on excel to column A on the grid.
Is it possible to trap the pasting programmatically to paste A's data in excel to A's column of the grid.ie. one to one. irrespective of the column order mismatch between the excel and the grid?
Also I should be able to paste data to an empty grid by identifying how many rows needs to be created.