Completed
Last Updated: 24 Jan 2018 11:08 by ADMIN
To reproduce:
- Enable the paging and add 1000 rows.
- Press Ctrl + End
- An exception is thrown.

Workaround:

radVirtualGrid1.VirtualGridElement.InputBehavior = new MyBehavior(radVirtualGrid1.VirtualGridElement);

class MyBehavior : VirtualGridInputBehavior
{
    public MyBehavior(RadVirtualGridElement element) : base(element)
    {

    }
    protected override bool HandleEndKey(KeyEventArgs keys)
    {
        this.GridElement.PageIndex = this.GridElement.TotalPages - 1;
      
        return true;
        //return base.HandleEndKey(keys);
    }
}
Completed
Last Updated: 21 Jun 2018 13:59 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: VirtualGrid
Type: Bug Report
1
To reproduce: run the sample project and try to resize some of the columns.

RadVirtualGrid has 10 columns and 500 rows. You will notice the laggind while resizing the columns. Actually the number of the visible cells remains the same after the column's resizing. However, the CellValueNeeded event keeps firing.
Completed
Last Updated: 11 Oct 2018 12:24 by Dimitar
To reproduce: use the following code snippet. Navigate to the last page and press the button to clear the rows. You will notice that the current page index remains 10 although no rows are available in the grid

        public RadForm1()
        {
            InitializeComponent();

            this.radVirtualGrid1.RowCount = 1000;
            this.radVirtualGrid1.ColumnCount = 5;
            this.radVirtualGrid1.CellValueNeeded += radVirtualGrid1_CellValueNeeded;

            this.radVirtualGrid1.EnablePaging = true;
        }

        private void radVirtualGrid1_CellValueNeeded(object sender, Telerik.WinControls.UI.VirtualGridCellValueNeededEventArgs e)
        {
            e.Value = "Item" + e.RowIndex + "." + e.ColumnIndex;
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            this.radVirtualGrid1.RowCount = 0;
            this.radVirtualGrid1.ColumnCount = 5; 
        }

Workaround:  this.radVirtualGrid1.VirtualGridElement.FindDescendant<VirtualGridPagingPanelElement>().PageNumberTextBox.Text = "1";
Completed
Last Updated: 21 Jan 2020 12:02 by ADMIN
Release R1 2019
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: VirtualGrid
Type: Bug Report
1
It is difficult to replicate the issue and it is not always reproduced. When using the splitter between columns[1] and columns[2]  to resize column[1] I found out that releasing the mouse button doesn't cause the splitter to be released, even when clicking on the grid. It seems to work ok once or twice but once it fails then keeps failing.

Workaround:
        private void radVirtualGrid1_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == System.Windows.Forms.MouseButtons.Left)
            {
                this.radVirtualGrid1.Cursor = Cursors.Default;
            }
        }
Unplanned
Last Updated: 16 May 2019 05:12 by ADMIN
To reproduce: please refer to the attached gif file. The CellClick is not fired for the child rows that belong to columns that exceed the width of the parent template.

Workaround: set the AutoSizeColumnsMode property to Fill.

this.radVirtualGrid1.AutoSizeColumnsMode = Telerik.WinControls.UI.VirtualGridAutoSizeColumnsMode.Fill;
Completed
Last Updated: 18 Jan 2019 15:14 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 1
Category: VirtualGrid
Type: Bug Report
1
To reproduce: open the Demo application >> VirtualGrid >> First Look example. Follow the steps illustrated in the attached gif file. You will notice that when you expand a row, the "-" sign is show for a second and then it is returned to "+" although the row is still expanded. 

Workaround:
            this.radVirtualGrid1.CellFormatting += radVirtualGrid1_CellFormatting;
            this.radVirtualGrid1.RowExpanded += radVirtualGrid1_RowExpanded;
            this.radVirtualGrid1.RowCollapsed += radVirtualGrid1_RowCollapsed;



        private void radVirtualGrid1_RowCollapsed(object sender, VirtualGridRowExpandedEventArgs e)
        {
            if (expandedState.ContainsKey(e.RowIndex))
            {
                expandedState[e.RowIndex] = !expandedState[e.RowIndex];
            }
           
            this.radVirtualGrid1.TableElement.SynchronizeRow(e.RowIndex, true);
        }

        Dictionary<int, bool> expandedState = new Dictionary<int, bool>();

        private void radVirtualGrid1_RowExpanded(object sender, VirtualGridRowExpandedEventArgs e)
        {
            if (!expandedState.ContainsKey(e.RowIndex))
            {
                expandedState.Add(e.RowIndex, false);
            }
            expandedState[e.RowIndex] = !expandedState[e.RowIndex];
            this.radVirtualGrid1.TableElement.SynchronizeRow(e.RowIndex, true);
        }

        private void radVirtualGrid1_CellFormatting(object sender, Telerik.WinControls.UI.VirtualGridCellElementEventArgs e)
        {
            VirtualGridIndentCellElement indentCell = e.CellElement as VirtualGridIndentCellElement;
            if (indentCell != null)
            {
                if (expandedState.ContainsKey(e.CellElement.RowIndex) && expandedState[e.CellElement.RowIndex] == true)
                {
                    indentCell.ExpanderItem.SignImage = Properties.Resources.chevron_up;
                }
                else
                {
                    indentCell.ExpanderItem.SignImage = Properties.Resources.chevron_down;
                }
            }

        }
Unplanned
Last Updated: 16 May 2019 05:55 by ADMIN

Hello, we have found another small bug of the RadVirtualGrid control.

When paging is enabled on child view, one of the component of the paging panel overlap whit is parent.

I attach source code and screenshot.

 

Thanks in advance.

 

Completed
Last Updated: 03 Oct 2019 11:49 by ADMIN
Release R3 2019 SP1 (LIB 2019.3.1007)
Created by: n/a
Comments: 1
Category: VirtualGrid
Type: Bug Report
1

Hi,


I have a problem with the expansion of the last row.

After Row Expanding and Row Collapsing the last or second last row, the last row is not visible because it seems that there I some kind of lock on the scrollbar : it doesn’t scroll down neither with the mouse wheel nor with the button so it is not possible to move on the last row.

If instead you scroll up and then down the row became visible again.

In the attached example project.

 

Regards

 

 

 

Unplanned
Last Updated: 16 Jan 2023 11:40 by ADMIN

RadVirtualGridElement.Paste does not support pasting into new rows.

I want to override RadVirtualGridElement.Paste to allow to to paste into new rows. Except when I do so, the methods to retrieve information from the clipboard (GetHtmlData/GetTextData/GetCsvData ) are private.

So now I have one request, two solutions:

  • Make GetHtmlData/GetTextData/GetCsvData  protected so I can call them when I override Paste.
  • Or split up the Paste method into two sub-methods:
    • One sub-method to retrieve the information from the clipboard which will result in a list of list of strings (like: GetClipboardData())
    • The second sub-method to do the actually Paste the list of list of strings into the grid (like: Paste(List<List<string>> data)). Of course this sub-method must be virtual.

 

Completed
Last Updated: 27 Mar 2023 06:39 by ADMIN
Release R1 2023 SP1
When a CUT operation is executed the control is not visually synchronized with the data cell values.
Duplicated
Last Updated: 13 Mar 2023 14:19 by ADMIN
Created by: Martin
Comments: 3
Category: VirtualGrid
Type: Bug Report
1

I was trying to move the NewRow to the bottom of the RadVirtualGrid. I learned that this is not possible. During my attempts I ran into a bug:

Reproduction steps:

  1. Create a Grid
  2. Set RowCount to (at least) 1.
  3. Pin the NewRow to the bottom: Grid.TableElement.TableElement.SetRowPinPosition(RadVirtualGrid.NewRowIndex, PinnedRowPosition.Bottom);

Expected behavior:

  • Or an exception occurs, telling me only "normal" rows can be pinned.
  • Or nothing changes.
  • Or the NewRow is moved to the bottom (what I was hoping for)

Observed behavior:

  • The NewRow is shown at the top of the grid as well as the bottom of the grid. But only the one at the top is usable:
Unplanned
Last Updated: 06 Mar 2023 08:06 by ADMIN

I was trying to move the NewRow to the bottom of the RadVirtualGrid. This is also supported by its big brother RadGridView. I have now learned that this is not supported by RadVirtualGrid.

Hereby my request: Please support this!

I've created a Harmony patch (which works for me); it might help you if you decide to support it:

	static class MoveNewRowToBottom
	{
		[HarmonyPatch(typeof(VirtualGridTableElement), "InvalidatePinnedRows")]
		static class VirtualGridTableElement_InvalidatePinnedRows
		{
			static private bool _isInvalidating;

			static private bool Prefix(VirtualGridTableElement __instance)
			{
				if (_isInvalidating)
					return false;
				_isInvalidating = true;

				__instance.ViewElement.TopPinnedRows.DisposeChildren();
				__instance.ViewElement.BottomPinnedRows.DisposeChildren();

				var viewInfo = __instance.ViewInfo;
				var rowsViewState = __instance.RowsViewState;
				var topPinnedItems = rowsViewState.TopPinnedItems;
				var bottomPinnedItems = rowsViewState.BottomPinnedItems;

				if (viewInfo.ShowFilterRow)
					if (!topPinnedItems.Contains(RadVirtualGrid.FilterRowIndex) && !bottomPinnedItems.Contains(RadVirtualGrid.FilterRowIndex))
						rowsViewState.SetPinPosition(RadVirtualGrid.FilterRowIndex, PinnedRowPosition.Top);

				if (viewInfo.ShowNewRow)
					if (!topPinnedItems.Contains(RadVirtualGrid.NewRowIndex) && !bottomPinnedItems.Contains(RadVirtualGrid.NewRowIndex))
						rowsViewState.SetPinPosition(RadVirtualGrid.NewRowIndex, PinnedRowPosition.Top);

				if (viewInfo.ShowHeaderRow)
					if (!topPinnedItems.Contains(RadVirtualGrid.HeaderRowIndex) && !bottomPinnedItems.Contains(RadVirtualGrid.HeaderRowIndex))
						rowsViewState.SetPinPosition(RadVirtualGrid.HeaderRowIndex, PinnedRowPosition.Top);

				var elementProvider = __instance.RowScroller.ElementProvider;

				var topPinnedRows = __instance.ViewElement.TopPinnedRows;
				foreach (int topPinnedRow in topPinnedItems.SortTopRowIndexes())
				{
					VirtualGridRowElement pinnedRow = (VirtualGridRowElement)elementProvider.GetElement(topPinnedRow, null);
					topPinnedRows.Children.Add(pinnedRow);
					pinnedRow.Attach(topPinnedRow, null);
				}

				var bottomPinnedRows = __instance.ViewElement.BottomPinnedRows;
				foreach (int bottomPinnedRow in bottomPinnedItems.SortBottomRowIndexes())
				{
					VirtualGridRowElement pinnedRow = (VirtualGridRowElement)elementProvider.GetElement(bottomPinnedRow, null);
					bottomPinnedRows.Children.Add(pinnedRow);
					pinnedRow.Attach(bottomPinnedRow, null);
				}

				_isInvalidating = false;
				return false;
            }
		}

		static private IEnumerable<int> SortTopRowIndexes(this ReadOnlyCollection<int> topRowIndexes)
		{
			var specialRowIndex = topRowIndexes.Where(index => index < 0).ToList();
			if (specialRowIndex.Contains(RadVirtualGrid.HeaderRowIndex))
				yield return RadVirtualGrid.HeaderRowIndex;
			if (specialRowIndex.Contains(RadVirtualGrid.NewRowIndex))
				yield return RadVirtualGrid.NewRowIndex;
			if (specialRowIndex.Contains(RadVirtualGrid.FilterRowIndex))
				yield return RadVirtualGrid.FilterRowIndex;
			foreach (var index in topRowIndexes.Where(index => index >= 0))
				yield return index;
		}

		static private IEnumerable<int> SortBottomRowIndexes(this ReadOnlyCollection<int> bottomRowIndexes)
		{
			foreach (var index in bottomRowIndexes.Where(index => index >= 0))
				yield return index;
			var specialRowIndex = bottomRowIndexes.Where(index => index < 0).ToList();
			if (specialRowIndex.Contains(RadVirtualGrid.FilterRowIndex))
				yield return RadVirtualGrid.FilterRowIndex;
			if (specialRowIndex.Contains(RadVirtualGrid.NewRowIndex))
				yield return RadVirtualGrid.NewRowIndex;
			if (specialRowIndex.Contains(RadVirtualGrid.HeaderRowIndex))
				yield return RadVirtualGrid.HeaderRowIndex;
		}
	}

Unplanned
Last Updated: 14 Feb 2024 10:54 by Bert
When the user clicks an already selected row while pressing the Ctrl key, the row should be removed from the current selection.
Unplanned
Last Updated: 11 Mar 2024 11:28 by Bert
radVirtualGrid1.VirtualGridElement.SetColumnPinPosition(0, PinnedColumnPosition.Left);
radVirtualGrid1.VirtualGridElement.SetColumnPinPosition(2, PinnedColumnPosition.Left);
Unplanned
Last Updated: 11 Mar 2024 11:51 by ADMIN
The EnsureRowVisible() method does not calculate the correct position of the scroll for a child view row in the hierarchy view.
Unplanned
Last Updated: 03 Apr 2024 08:17 by ADMIN

The problem also occurs, if you just start the form. For example, on 175% (without drag).

 

Unplanned
Last Updated: 05 Apr 2024 10:36 by ADMIN

This behavior is observed when the VisualStudio2022Light theme is applied. For example, this is not observed in the Fluent theme.

Completed
Last Updated: 16 Feb 2016 10:58 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: VirtualGrid
Type: Bug Report
0

			
Completed
Last Updated: 26 Apr 2016 12:54 by ADMIN
When a row/column is resized, and we scroll to the last row/column, they are cut off, due to an error in the item spacing calculation

To reproduce:
            radVirtualGrid1.RowCount = 1000;
            radVirtualGrid1.ColumnCount = 50;

            radVirtualGrid1.MasterViewInfo.SetRowHeight(50, 30);

            for (int i = 0; i < 50; i++)
            {
                radVirtualGrid1.MasterViewInfo.SetColumnWidth(i, 60);
            }

        void radVirtualGrid1_CellValueNeeded(object sender, VirtualGridCellValueNeededEventArgs e)
        {
            e.Value = e.RowIndex + " " + e.ColumnIndex;
        }

Workaround: set the RadVirtualGrid.TableElement.ColumnWidth property to 60 instead of using the SetColumnWidth method and set the radVirtualGrid1.MasterViewInfo.RowSpacing to 0 to overcome the row issue.