I’m in the process of converting our web application from RadControls for ASP.NET to the new RadControls for ASP.NET AJAX. The application has been configured to use ASP.NET AJAX and things seem to be working fine. Although, I have encountered a scenario that does not seem to work with the new AJAX controls but had worked previously.
Basically, there is a page with a grid control that allows editing using a user control. The user control contains a RadWindow control and some javascript to open the RadWindow.
There is a button on the user control that is used to execute the script to open the RadWindow using an AJAX request (ResponseScripts.Add(...)). When the grid is in edit mode and the button is clicked to open the RadWindow, the following JavaScript error is thrown:
“Microsoft JScript runtime error: Object expected”
It seems like the RadWindow control and the javascript within the user control are ignored when the user control is rendered on the page. The javascript within the usercontrol is wrapped within a “RadCodeBlock” tag. Viewing the source for the page shows that the javascript is missing.
Any help in resolving the above issue would be greatly appreciated.
Thanks in advance,
Tony

<
add key="Telerik.Skin" value="LV" />
The rad editor has presented some problems. It is skinned and working,but if we click on the table editor and then the table wizard, it pops open a rad window that throws an exception about the SpinBoxColumns being unable to find the embedded skin LV.
Looking at the TableDesign.ascx, it seems that control is loading other Telerik controls that don't have EnableEmbeddedSkins set to false. I set about trying to change the dialogs so I could set the Enable EmbeddedSkins to false so it stop throwing the exception.
I've tried using code behind or declaratively setting the ExternalDialogsPath and it never seems to use the modified dialog ascx files.
In the OnLoad event we set the properties of the Rad Editor.
// Code Snippet
this.EnableEmbeddedSkins = false;
this.CssFiles.Add("/_layouts/LearningVillage/Styles/RadControls/EditorContentArea.css");
this.DialogHandlerUrl = SPContext.Current.Site.Url + ((SPContext.Current.Site.Url.EndsWith("/", StringComparison.InvariantCulture)) ? "" : "/") + "_layouts/LearningVillage/Telerik.Web.UI.DialogHandler.aspx";
this.ExternalDialogsPath = SPContext.Current.Site.Url + ((SPContext.Current.Site.Url.EndsWith("/", StringComparison.InvariantCulture)) ? "" : "/") + "_layouts/LearningVillage/EditorDialogs/";
this.Tools.Clear();
//End Code Snippet, below this we set which EditorTools are added to the toolbar.
It seems that setting the ExternalDialogsPath has no effect with the Rad Editor does not effect where the dialogs are being loaded from.
Any suggestions?
| <telerik:radajaxpanel id="ajaxPanelInputs" runat="server"> |
| <input type="hidden" runat="server" id="x" /> |
| <input type="hidden" runat="server" id="y" /> |
| </telerik:radajaxpanel> |