I'm a new user to the Aikido framework, and I'm finding it pretty frustrating exploring the CSOM javascript functions. All I want to do is to skip over a column when a user hits the tab. I dont know of a way to control tabindex, therefore I figure I could control the ExitedEditMode event and manually skip over the column, but havent been able to execute it. Any help is greatly appreciated.
Bumping this thread back up, so that Infragistics devs can see that there is a history of people requesting this.
The Activation behavior really should honor the ReadOnly attribute of columns, in both CellEditing and RowAdding. ReadOnly columns shouldn't ever receive tab focus.
If for some reason that can't be done, then it seems like the Activation behavior could have a ColumnSettings collection where you could define certain columns as not receiving activation.
Just so that all are aware, the techniques outlined here do not work 100% of the time. Specifically with IE, you will start tabbing, and everything is working fine (skip the columns I do not want ot stop at), but then randomly, it will go into edit mode, then jump out, and the cursor location seems to jump to wherever it wants to. I changed it to use the _Activation_ActiveCellChanged method instead. I will see what QA comes back with.
This feature (don't tab stop on readonly fields) really should be part of the webDataGrid.
I am new to infragistics products. This forum seems quite weak on examples and answers to questions. After muddling through many partially answered questions, I worked out a way to skip columns I don't want the grid to stop at. Here is the code that I pieced together from the sample referenced in one reply. This code will jump to the 8th (index 7) cell (as my readonly cells are at the left of the grid) Fro some reason, the readonly property is not exposed in the javascript.
function wdg_Activation_ActiveCellChanging(sender, eventArgs) {
///<summary>
///
///</summary>
///<param name="sender" type="Infragistics.Web.UI.WebDataGrid"></param>
///<param name="eventArgs" type="Infragistics.Web.UI.ActiveCellChangingEventArgs"></param>
var grid = $find("<%= wdg.ClientID %>");
var cell = eventArgs.getNewActiveCell();
var row = cell.get_row();
var newEditCell = null;
if (cell.get_index() < 6) {
newEditCell = row.get_cell(7);
}
if (newEditCell != null) {
var editingBehavior = grid.get_behaviors().get_editingCore().get_behaviors().get_cellEditing();
// timeout needed to avoid entering exitEdit mode again - and end in recursion / stack overflow
window.setTimeout(function() {
editingBehavior.enterEditMode(newEditCell);
}, 200);
return false;
Rumen, beautiful!Quick question... do you see any pitfalls to using this technique to select a cell in the next row, instead of the next column? I am trying to duplicate the "TabDirection" behavior of the old UltraWebGrid.
I am sorry but it does not address what I am looking for. The video is too general.