Skip to Content
0
Former Member
Sep 11, 2007 at 06:16 AM

setting focus on a particular cell of tableview on row selection

66 Views

Hi Experts,

I have a tableview with some editable fields. On selecting a row, by default the focus should be set to the third cell.

I have tried out many javscript codes like

document.getElementById."tv_"row"_3".focus();. but this is not working. Its throwing a javascript error saying "document.get.ElementById."tv_"row"_3" is null or not an object".

I have even tried with document.form."tv_"row"_3".focus(); but this is also throwing the same error.

The same code is working in a different context but here its throwing error. Can you please suggest?

Thanks and Regards,

Sneha.