How to set focus on webdatagrid cell on client side in ExitedEditMode client side event
Hi Rukasana,
I'm still following your case. If you have any additional questions, please feel free to contact me.
Thanks,
Dimitar Atanasov
You can do something like the following in ExitedEditMode event handler:
function WebDataGrid1_CellEditing_ExitedEditMode(sender, eventArgs)
{
var cell = eventArgs.getCell();
cell.get_element().focus()
}
However, if you click on another cell after editing, it will receive the actual focus. If you click outside the grid on an element which doesn't handle focus, it will remain on the cell. You can also enable Activation and Selection behaviors to see which is the active (selected) cell. If you need additional information about your actual use case, please feel free to ask for additional information.
Senior Software Engineer,
Infragistics