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

No Tab Stop on specific column cells

2 Answers 25 Views
This is a migrated thread and some comments may be shown as answers.
Gone2TheDogs
Top achievements
Rank 1
Veteran
Gone2TheDogs asked on 15 Feb 2018, 06:08 PM

Is there a way to remove tabstops on some column's cells and not others?

Many of the users will only be using a keyboard and the form I'm building has a gridview with only 2 columns out of 12 that only need to tabbed through.

 

 

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 16 Feb 2018, 11:49 AM
Hi Bob,

To achieve this you need to create new GridDataRowBehavior which will allow you to manually handle the Tab. This way you will be to select the desired column. The following snippet shows how you can implement similar behavior:
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
    public RadForm1()
    {
        InitializeComponent();
        BaseGridBehavior gridBehavior = radGridView1.GridBehavior as BaseGridBehavior ;
        gridBehavior.UnregisterBehavior(typeof(GridViewDataRowInfo));
        gridBehavior.RegisterBehavior(typeof(GridViewDataRowInfo), new CustomGridRowBehavior());
    }
 
   
}
internal class CustomGridRowBehavior : GridDataRowBehavior
{
    
 
    protected override bool ProcessTabKey(KeyEventArgs keys)
    {
        if (this.GridControl.CurrentCell.ColumnIndex == 0)
        {
            this.GridControl.GridNavigator.SelectLastColumn();
        }
        return base.ProcessTabKey(keys);
    }
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Gone2TheDogs
Top achievements
Rank 1
Veteran
answered on 16 Feb 2018, 12:11 PM
Thank you, Dimitar. Very much appreciated.
Asked by
Gone2TheDogs
Top achievements
Rank 1
Veteran
Answers by
Dimitar
Telerik team
Gone2TheDogs
Top achievements
Rank 1
Veteran
Share this question
or