I have a web page that has a series of dropdown controls (12 total). As the user enters/selects a value, they can tab to the next dropdown. When they tab out a dropdown that doesn't have a value (any of the 12), I want the focus to go to a data grid - first row - third cell. The following code, when looking via quick watch, confirms I have the correct row and cell based on the rendered ID when viewing the source. What ends up happing is the focus goes to the second row - first cell. What am I doing wrong?
The attached jpg shows the flow I want to accomplish.
var masterTable = $find("<%= dgServices.ClientID %>").get_masterTableView();
if (masterTable != '') {
masterTable.get_dataItems()[0].get_element().cells[2].focus();
The attached jpg shows the flow I want to accomplish.