I have two questions about focus and the web grid control.
1. Any ideas on how, when tabbing to a web grid (say from a text box or check box) on a page to have it autimatically enter edit mode for the first cell of the first row?
2. Any ideas on how to automatically tab to the next control on a page (say a text box) when an empty row is tabbed though on a grid? For eaxmple, I have a grid with five columns used for data entry. I would like it so that when a user tabs through a row without entering any data, focus changes from the web grid to the next control. I've tried using the AfterExitEditModeHandler event to use javascript to explicitly set focus on the next control, but the web grid seems to refuse to give up focus. Perhaps I'm using the wrong client-side event handler?
I think I figured it out (at least question # 2). I needed to use the EditKeyDownHandler event instead of the AfterExitEditModeHandler event.
function DoneWithServiceLines()
document.getElementById('TextBox1').focus();
}
{
if(cell.Column.Key == "cob") //If its the last column
//Check the values of all of the other columns
if(cellVal != null && cellVal != "")
DoneWithServiceLines();
Can you post your javascript code so that one can know wats wrong .......