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

Use arrowkeys in RadPageView in Explorerbar mode

1 Answer 64 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Hamid
Top achievements
Rank 1
Hamid asked on 22 Sep 2012, 12:29 PM
Hi,
I use RadPageView in ExplorerBar mode and at run time add to it pages and in pages add one RadRadScrollablePanel and add many buttons to RadScrollablePanel depending datas in database, all of this run correct and show all buttons correct, but when i want to move between buttons, when i press up key of arrowkeys, below button of selected button select and when press down key of arrowkeys, the top button of the selected button selected. how can i correct this? thanks many.

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 26 Sep 2012, 03:08 PM
Hello Hamid,

Thank you for contacting us.

When you use arrow keys to navigate between controls, the focus is moved in ascending order of their TabIndex properties. Therefore, you need to set this property of all the buttons in the order they are arranged. For example:
for (int i = 0; i < 10; i++)
{
    RadButton button = new RadButton();
    button.Text = "Button " +i;
    button.TabIndex = i ;
    this.radPageViewPage1.Controls.Add(button)
}

I hope you find this useful. Feel free to ask if you have any additional questions.

Regards,
Ivan Todorov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
PageView
Asked by
Hamid
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or