Does anyone have a resolution for the RadButton not being focused on a Page_Load event?
ASP button you can set the .focus() in the page load event and it is truly focused when the page is displayed. RadButton doesn't work.
ASP button you can set the .focus() in the page load event and it is truly focused when the page is displayed. RadButton doesn't work.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="buttonnoworkie.aspx.vb" Inherits="buttonnoworkie" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
EnablePartialRendering
=
"false"
>
</
telerik:RadScriptManager
>
<
div
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
div
>
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Text
=
"RadButton"
ResolvedRenderMode
=
"Classic"
>
</
telerik:RadButton
>
</
div
>
</
div
>
</
form
>
</
body
>
</
html
>
Partial Class buttonnoworkie
Inherits System.Web.UI.Page
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
RadButton1.Focus()
End Sub
End Class