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

Tab stops on one-click checkbox columns

1 Answer 65 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chris Sterner
Top achievements
Rank 1
Chris Sterner asked on 19 Jun 2013, 06:56 PM

I have a custom class which inherits from GridViewDataColumn.  I have a custom checkbox control to place in the grid.  I would like users to be able to toggle the checkbox with a single click.

 

I looked at this topic in the help documentation, http://www.telerik.com/help/silverlight/gridview-checkbox-column-clicks.html.  The second approach described there most closely fits the custom column approach we are using.  So I have placed the checkbox control directly in the non-edit cell in my overridden CreateCellElement method.  The column has IsReadOnly=true set.  Users can now toggle the checkbox with one click.

 

The trouble I am having is with tabstops.  When a neighboring column is in edit mode and tab is pressed, the checkbox column is skipped.  If a neighboring column is read only, is selected, and then tab is pressed, the checkbox column can be tabbed to.  It appears that cells in edit mode and non-editable cells do not tab to each other.  Normally this is fine, but in this case the checkbox can be toggled by the user.  So the user cannot understand why checkbox columns cannot be tabbed to with other editable cells. 

 

Is there some way to get the checkbox column to be a tabstop like other editable cells?  I have tried changing the TabStopMode of the column, but that does not help.

 

This behavior is seen on RadControls for Silverlight version 2013 Q2 0611.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 Jun 2013, 03:20 PM
Hello,

In your scenario, the cell from the custom ReadOnly column is skipped as it cannot enter into Edit mode.

You can redefine how the GridView handles the "Tab" key (and other keys) creating your own custom keyboard provider. Please refer to our online documentation for further details. It also shows some sample code.

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Chris Sterner
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or