Hi All,
I have the following control hierarchy dynamically generated on the
server:
A number of hierarical checkbox controls are added to a Placeholder
control. Placeholder control then added to a Panel control.
All controls are server controls. When a checkbox is clicked, in
javascript, I alter the innerHTML property of the Placeholder (and thus
change the hierarical structure of checkbox elements). This works fine.
The side effect is that by changing the innerHTML property user looses
the scroll position of the clicked checkbox on the Panel and he has to
scroll down. If I attempt to change the scrollTop property of the Panel
control in the click event as following:
mypanel.scrollTop = someinteger
Javascript throws an "Unspecified Error" error. I know this is caused
because innerHTML has changed, but can someone explain what is happening
and if there is a trick to maintain the panel scroll position.
Thanks in Advance,
kr
*** Sent via Developersdex
http://www.developersdex.com ***