Looks like I cannot solve this with JavaScript either.
Here is the code I tried.
<script type= "text/javascript">
var lst = document.getElementById("list1");
var options = lst.options;
var option;
var i;
for(i = 0; i < options.length; i++)
{
if(options[i].selected)
{
options[i].focus();
}
}
</script>
On May 15, 9:27 am, probashi <proba...@hotmail.comwrote:
Unfortunately it does not help.
Looks like custom JavaScript will be my last option.
Thanks
On May 15, 2:43 am, Siva M <shiva...@online.excite.comwrote:
See if setting MaintainScrollPositionOnPostback="true" for the @Page attibute
helps.
"probashi" wrote:
Hi,
Issue: After post back selected item of a list box is getting out of
focus (when it contains more items than it's size).
I have a List Box in an ASPX page. I select an item from the ListBox
and after post back the item is still selected but it is not focused
(i.e. I have to scroll down to see the selected item)
Any way to fix this!
Thanks.- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -