Hoping someone can help me out with a problem I am having.
I have an aspx page which contains a placeholder which I use to display usercontrols.
My aspx contains a RadAjaxPanel and my placeholder is inside the panel. I have set the panels
ClientEvents-OnRequestStart="conditionalPostback" and I have added some js
function conditionalPostback(sender, e) {
var uploadButton = new RegExp("\.btnInsertStolenItem$", "ig");
// var upload = $find(window['radUploadImages']);
//var upload = $find('<%=radUploadImages.ClientID %>');
if (e.get_eventTarget().match(uploadButton)) {
// if (upload.getFileInputs()[0].value != "") {
e.set_enableAjax(
false);
// }
}
}
My problem is with my var upload. My aspx cant find radUploadImages (which I understand as it hasn't been loaded yet :)) however I dont know what to change to only set the var if the usercontrol has been loaded....
Hope this makes sense as I am really stuck.
If anyone could provide help I would be most grateful.