Captain America

I test this code , it was working fire when i click the btnRefresh, pls tell me how to force the radlistbox scroll to selected item after searching finish on RadSearchBox RadIPSearch, after searching, the radlistbox will select the item found, but i want to scroll to it also

Captain America

Anton

Such scroll into view is supported only from the client-side by using the scrollIntoView function of the RadListBoxItem. As you are using RadAjaxPanel​​, you can take advantage of the ClientEvents-OnResponseEnd​:

<script type="text/javascript">

function onResponseEnd(sender, args)

var listbox = $find("<%=RadListBox1.ClientID %>");

var item = listbox.get_selectedItem();

item.scrollIntoView();

}

</script>

Regards,
Anton
Telerik by Progress

Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.