or
<
body >
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<script type="text/javascript">
function
var item = sender.get_selectedItem();
if (item)
{
item.ensureVisible();
sender.clearSelection();
}
}
</script>
<div>...
and in my listbox definition I add
OnClientLoad
="scrollToSelected"
This works only when I refresh my page, but it doesn't work the first time. I tried with OnSelectedIndexChanged, but it doesn't work anymore.
Coul do help me please?
Best regards,
André
function abc() { $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest('DoSomething');}window.onfocus = function onFocus() { $find("<%=RadAjaxPanel1.ClientID%>").ajaxRequest('DoSomething');};