Telerik Product and Version
|
Q3 2015 and above
|
Supported Browsers and Platforms
|
All currently supported browsers by the suite, but with some limitations in IE, Firefox and Safari
|
Components/Widgets used (JS frameworks, etc.)
|
|
Project Description
This Code Library demonstrates how to use an extension to the RadGrid functionality that will handle tabbing through input elements in the data items and enabled frozen columns.
A common scenario is to put all items in edit mode and allow the user to change multiple values in multiple rows before saving the changes, but if you have frozen columns, the tabbing will be handled by the browser and will break the scrolling of the control. Due to the nature of this scenario it is not possible to handle all browsers and all scenarios, especially in regards of SHIFT+TAB (which should focus the previous element), but the attached extension will move the scrollbar correctly when you press the tab key and will not hide the frozen columns (which is the normal behavior with frozen columns).
Implementation
To enable the tabbing with frozen columns you just need to include the attached .js file in your project and pass the Grid object to the RadGridFrozenColumnsExtension.Apply method with the grid's OnGridCreated event handler:
The markup:
And the JS:
Limitations
SHIFT+TAB will work only in Chrome and in all other browsers tabbing back is disabled. However, If you have input elements in your frozen columns you could enable the tabbing back by removing the following lines from the
gridTabbingWithFrozenColumns.js file: