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

Checkbox Focus when Navigating with Keyboard

4 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Don asked on 08 Mar 2011, 08:36 PM
We have a grid with keyboard navigation turned on and a GridClientSelectcolumn with a check box for selecting. When we use keyboard navigation the focus of the checkbox does not move with the selected row. Therefore when I press the space bar the row that has the checkbox with the focus is selected and the grid scrolls back to that row. Is this expected behavior. I would think the focus would be cleared or at the very least move with the selected row.

Don

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 14 Mar 2011, 10:50 AM
Hello Don,

I would suggest you to review the following online help topic which elaborates on similar scenarios:
http://www.telerik.com/help/aspnet-ajax/grid-synchronize-navigation-selection.html

I hope this helps.

All the best,
Maria Ilieva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Don
Top achievements
Rank 1
answered on 14 Mar 2011, 03:20 PM
I'll try that but what exactly is the code contained in the ActiveRowChange event handler trying to do? This is what's there which makes no sense. Obviously a formatting issue but what is it trying to do?

function ActiveRowChanged(sender, args) {
  if (sender.get_masterTableView().get_selectedItems().length < 1 || sender.get_masterTableViewget_selectedItems()[0get_id() != args.get_idargs.get_tableView().selectItemget(args.get_idscript>


Don
0
Maria Ilieva
Telerik team
answered on 17 Mar 2011, 11:44 AM
Hi Don,

Excuse my previous post. The link I have sent you was wrong as the provided topic is already outdated.
I’m attaching a sample application to this post which covers your requirements. Test it on your side and let me know if this is what you need to achieve.


All the best,
Maria Ilieva
the Telerik team

0
Pavlina
Telerik team
answered on 16 Sep 2011, 11:36 AM
Hello Don,

The suggested approach about how to navigate through the grid items and select them at the same time is no longer applicable. Now this functionality is built-in for RadGrid for ASP.NET AJAX as you can see from the online example below:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/keyboardnavigation/defaultcs.aspx

Best wishes,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
Tags
Grid
Asked by
Don
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Don
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or