I have a simple grid with 3 columns: section, question, and answer. Only answer column is editable. I need to:
1) hide group column(section)
2) don't allow user select a row and only allow a navigation in Answer column with Up/Down/Enter key down events
Please look at my example
and correct the code to get it working as it is required
4 Answers, 1 is accepted
To hide a column, use the columns.hidden configuration:
To modify the navigation in a Grid, please refer to the "Skip Non-Editable Cells When Tabbing" article:
I put the code you recommended (http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Editing/skip-non-editable-cells-when-tabbing) into my example ( http://dojo.telerik.com/@iakhmedov1/eBuge ). It does not work as expected: tab, up, down don't make next answer editable. Please take a look and fix it.
I was able to determinate these issues in the provided code:
- the onDataBound was not bound to the Grid:
- The "if" statements in the keydown event handler always returns false due to the fact that the currentNumberOfItems variable is two because the dataSource is grouped.
Additionally, the DropDownList and the ComboBox have their own keydown handlers. That said, in order to disable these handlers in the Grid, you should override them. For example, the code might look like:
Finally, the modified Dojo is available here: http://dojo.telerik.com/ArOKE/2
I hope the above helps.
Thank you very much.