I have problem here with the Rad Ajax panel.
I get the javascript error stating : "Object doesn't support this property or method" and another one "unifined is null or not an object"
Here's my code:
'VB code
Try
'some code here
Catch ex As Exception
'open radwindow and inform user to select a project first
Session.Remove("Project_ID")
Dim script As String = ""
script += "radconfirm('Please select a project first. Select project now?',confirmCallBackFn, 330, 100,'','No project selected'); "
RadAjaxPanel1.ResponseScripts.Add(script)
End Try
'Java script
function confirmCallBackFn(arg)
{
var Redirect = document.getElementById("<%= HiddenField1.ClientID %>");
Redirect.value = arg;
document.forms(0).submit();
}
function redir(Project_ID)
{
window.radopen("AIMS_frmBlock_Tasks.aspx?Project_ID=" + Project_ID, "RadWindow1");
return false;
}
</script>
My code looks for an Session_ID, if it doesn't find it, it pops up a Radwindow that ask to select an ID, then it redirects to the page accordingly
It has worked with prev. version of telerik, but now that I've installed prome..it gave me this error.
This initiate when the page loads,so I have no button that init. the request