Completed
Last Updated: 26 Apr 2016 12:54 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 23 Mar 2016 10:45
Category: VirtualGrid
Type: Bug Report
0
FIX. RadVirtualGrid - last column/row is clipped/missing when specifying column/row width with greater number of rows/columns
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.
Attached Files:
0 comments