Completed
Last Updated: 24 Jan 2018 11:08 by ADMIN
ADMIN
Dimitar
Created on: 06 Jun 2017 05:55
Category: VirtualGrid
Type: Bug Report
1
FIX. RadVirtualGrid - exception when the paging is enabled and one presses Ctrl + End.
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);
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments