
Hi All,
I am using the latest version of ASP.NET AJAX controls and have encountered an error when trying to display a confirmation box.
The title bar of the confirm box is set to 'null'
The script i use is:
| <script type = ""> |
| //Replace old radconfirm with a changed version. |
| var oldConfirm = radconfirm; |
| window.radconfirm = function(text, mozEvent) |
| { |
| var ev = mozEvent ? mozEvent : window.event; //Moz support requires passing the event argument manually |
| //Cancel the event |
| ev.cancelBubble = true; |
| ev.returnValue = false; |
| if (ev.stopPropagation) ev.stopPropagation(); |
| if (ev.preventDefault) ev.preventDefault(); |
| //Determine who is the caller |
| var callerObj = ev.srcElement ? ev.srcElement : ev.target; |
| //Call the original radconfirm and pass it all necessary parameters |
| if (callerObj) |
| { |
| //Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again. |
| var callBackFn = function (arg) |
| { |
| if (arg) |
| { |
| callerObj["onclick"] = ""; |
| if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz |
| else if (callerObj.tagName == "A") //We assume it is a link button! |
| { |
| try |
| { |
| eval(callerObj.href) |
| } |
| catch(e){} |
| } |
| } |
| } |
| oldConfirm(text, callBackFn, 300, 100, null, null); |
| } |
| return false; |
| } |
| </script> |
Along with this behind the button in the ASPX page
asp:Button ID="btnUpdate" runat="server" Text="Create" Font-Names="Verdana" Font-Size="9pt" onclientclick="radconfirm('Are you sure?', event, 330, 100); " />
I have tried numerous ways to change the title from 'null' but can not get my head around it.
Many Thanks
Stuart

| <FormTemplate> |
| <asp:LinkButton ID="selectGLAccountLinkButton" runat="server" |
| CommandArgument='<%# Eval("GLAccountID") %>' |
| OnCommand="SelectGLAccountLinkButton_Command"> |
| <%# Eval("GLAccount.GLAccountNumber")%> |
| </asp:LinkButton> |
| <asp:TextBox ID="selectedGLAccountTextBox" runat="server" CssClass="hideButton" Text='<%# Eval("GLAccountID") %>'></asp:TextBox> |
| </FormTemplate> |
| protected void GLAccount_ItemSelected(object sender, ItemSelectionPage.ItemSelectedEventArgs e) |
| { |
| GridViewRow row = projectGridView.Rows[projectGridView.EditIndex]; |
| ((LinkButton)row.FindControl("selectGLAccountLinkButton")).Text = e.DisplayText; |
| ((LinkButton)row.FindControl("selectGLAccountLinkButton")).CommandArgument = e.ItemID.ToString(); |
| ((TextBox)row.FindControl("selectedGLAccountTextBox")).Text = e.ItemID.ToString(); |
| } |
Ok so i've got RadMenu working in my Sharepoint site now by following the Telerik instructions. Can you give me some pointers how to link up a Sharepoint sitemap that will display dropdown menus and sub menus as shown in the Telerik RadMenu for Sharepoint example. Do I have to configure an xml data file and how do i hook this up to the Rad Menu in Sharepoint to show dropdowns and flyout menus from the dropdown. Not experienced enough i know but help appreciated because we are evaluating the Telerik controls with a view to buy.
Thanks in Advance
function RefreshParentPage()
{
GetRadWindow().BrowserWindow.location.reload();
}
called from function CloseOnReload (as per Telerik examples), which works fine in all other situations.function CloseOnReload()
{
var myTextField = document.getElementById('UploadBtn')
if(myTextField.value == "Close")
{
alert (
"Refresh and Close");
RefreshParentPage();
window.opener = self;
window.open(
'~/CloseDummyIE7.htm', '_self');
window.close();
}
}