Hello,
There's a programmatically created control
JS>
At execution Time I get "Added is not defined" from here:
Sys.Application.add_init(function() { $create(Telerik.Web.UI.RadAsyncUpload, {...}
Please help me.
There's a programmatically created control
[ClientScriptResource(
"MyControls.ImageControl"
,
"MyControls.ImageControl.js"
)]
public
class
ImageControl : Panel, IScriptControl
{
private
RadAsyncUpload AsyncUpload;
protected
override
void
OnInit(EventArgs e)
{
base
.OnInit(e);
AsyncUpload =
new
RadAsyncUpload();
AsyncUpload.OnClientAdded =
"Added"
;
}
}
JS>
Type.registerNamespace(
"MyControls"
);
MyControls.ImageControl =
function
() {
}
MyControls.ImageControl.prototype = {
Added:
function
(sender, args) {
alert(
'bla'
);
},
}
MyControls.ImageControl.registerClass('MyControls.ImageControl', System.Web.UI.WebControls.Panel)
At execution Time I get "Added is not defined" from here:
Sys.Application.add_init(function() { $create(Telerik.Web.UI.RadAsyncUpload, {...}
Please help me.