Posted 16 Oct 2011 Link to this post
Posted 18 Oct 2011 Link to this post
Sys.Application.add_load(
function
(){
var
closeButton = $telerik.$(
".rwCloseButton"
,$find(
"<%=RadWindow1.ClientID%>"
).get_popupElement());
....
}
Posted 24 Oct 2011 Link to this post
Posted 26 Oct 2011 Link to this post
<
script
type
=
"text/javascript"
>
$telerik.$(document).ready(function(){
var wnd = GetRadWindow();
var closeButton = $telerik.$(".rwCloseButton",wnd.get_popupElement());
</
Posted 13 Feb 2012 Link to this post
var closeButton = wnd._buttonsArray[0]; ...
The buttons array can be used but it is a private property and we strongly recommend to better avoid usage of private properties when you can do that. The reason for that is that we provide for sure backwards compatibility for public API and private one sometimes needs to be changed which can cause issues at a later stage. That is why we recommend to get the button by using its class name which is rwCloseButton since despite both the solution will work, the class name one is more reliable.