RadFormDecorator does not decorate input type=button when class attribute is present.
Demo below.
Regards
<%@ Page Title="" Language="C#" MasterPageFile="~/TestUnit/TelerikBug/DecoratedButtonMaster.Master" AutoEventWireup="true" CodeBehind="DecoratedButton.aspx.cs" Inherits="TestUnit.TelerikBug.DecoratedButton" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"head"
runat
=
"server"
>
<
script
type
=
"text/javascript"
src
=
"jquery-1.8.3.js"
></
script
>
</
asp:Content
>
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"ContentPlaceHolder1"
runat
=
"server"
>
<
div
id
=
"addbuttonpanelid"
>
<
input
type
=
"button"
id
=
"button20"
value
=
"bugdecoratedbutton"
class
=
"bug"
/><
br
/>
<
input
type
=
"button"
id
=
"button1"
value
=
"decoratedbutton"
/><
br
/>
<
input
type
=
"button"
id
=
"button5"
disabled
=
"disabled"
value
=
"decorateddisabledbutton"
class
=
"bug"
/><
br
/>
</
div
>
<
script
type
=
"text/javascript"
>
$(document).ready(
function () {
$("<
br
/>")
.appendTo("#addbuttonpanelid");
$("<
input
type
=
'button'
id
=
'button2'
value
=
'afterready'
/>")
.appendTo("#addbuttonpanelid");
$("#button1").click(function () {
$('#button5').removeAttr('disabled');
$("<
input
type
=
'button'
id
=
'button3'
value
=
'onclick'
/>")
.appendTo("#addbuttonpanelid");
$("<
input
type
=
'button'
id
=
'button6'
disabled
=
'disabled'
value
=
'onclick'
/>")
.appendTo("#addbuttonpanelid");
$("<
input
type
=
'button'
id
=
'button10id'
name
=
'voter'
value
=
'VOTER'
class
=
'bug'
/>")
.appendTo("#addbuttonpanelid");
var decorator = $find("RadFormDecoratorID");
if (decorator) {
decorator.decorate();
}
});
}
);
</
script
>
</
asp:Content
>