This is a migrated thread and some comments may be shown as answers.

Selection by Keyboard

1 Answer 25 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
manuele
Top achievements
Rank 1
manuele asked on 19 Mar 2015, 08:02 AM
Hi,
   is it possibile to scroll the pivotgrid using the keyboard?

Thanks a lot

Manuele

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 23 Mar 2015, 01:35 PM
Hello Manuele,

Thank you for writing.

Your question has already been answered in the support thread you have opened on the same topic. However, I posting the reply here as well as the community can benefit from it. In order to scroll the RadPivotGrid by using the keyboard, you should subscribe to the KeyDown and manipulate the PivotGridElement.VScrollBar.Value property:
this.radPivotGrid1.PivotGridElement.KeyDown += PivotGridElement_KeyDown;

private void PivotGridElement_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyCode == Keys.Down)
    {
        dynamic scrollBar = radPivotGrid1.PivotGridElement.VScrollBar;
 
        if (scrollBar.Value < scrollBar.Maximum - scrollBar.LargeChange)
        {
            radPivotGrid1.PivotGridElement.VScrollBar.Value += 10;
        }
    }
    if (e.KeyCode == Keys.Up)
    {
        dynamic scrollBar = radPivotGrid1.PivotGridElement.VScrollBar;
 
        if (scrollBar.Value > 0)
        {
            radPivotGrid1.PivotGridElement.VScrollBar.Value -= 10;
        }
    }
}

However, navigating the selection with the keyboard is not supported. It is a reasonable request. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item

I hope this information helps. Should you have further questions, I would be glad to help.
 
Regards,
Dess
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PivotGrid and PivotFieldList
Asked by
manuele
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or