| <telerik:RadEditor BorderStyle="None" BorderWidth="0" Height="700px" |
| Width="700px" Skin="Telerik" MediaManager-DeletePaths="~/uploads/" |
| MediaManager-UploadPaths="~/uploads/" MediaManager-ViewPaths="~/uploads" |
| DocumentManager-DeletePaths="~/uploads/" DocumentManager-UploadPaths="~/uploads/" |
| DocumentManager-ViewPaths="~/uploads/" ID="RadEditor1" runat="server"> |
| </telerik:RadEditor> |

| <html xmlns="http://www.w3.org/1999/xhtml" > | |
| <head runat="server"> | |
| <title></title> | |
| </head> | |
| <body onloadonload=onload="AdjustRadWidow();"> | |
| <script type="text/javascript"> | |
| function GetRadWindow() | |
| { | |
| var oWindow = null; | |
| if (window.radWindow) oWindow = window.radWindow; | |
| else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; | |
| return oWindow; | |
| } | |
| function AdjustRadWidow() { | |
| setTimeout(function() { GetRadWindow().autoSize() }, 200); | |
| } | |
| function returnToParent() { | |
| //create the argument that will be returned to the parent page | |
| var oArg = new Object(); | |
| //get the selected date from RadDatePicker | |
| var treeView = $find("<%= RadTreeView1.ClientID %>"); | |
| var selectedNode = treeView.get_selectedNode(); | |
| oArg.TreeText = selectedNode._text; | |
| //get a reference to the current RadWindow | |
| var oWnd = GetRadWindow(); | |
| //Close the RadWindow and send the argument to the parent page | |
| oWnd.close(oArg); | |
| } | |
| </script> | |
| <form id="form1" runat="server"> | |
| <div> | |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> | |
| </asp:ScriptManager> | |
| <telerik:RadTreeView ID="RadTreeView1" Runat="server" DataFieldID="LocPK" | |
| DataFieldParentID="ParentLocPK" DataSourceID="LocationsQuery" | |
| DataTextField="LocID" AppendDataBoundItems="True"> | |
| </telerik:RadTreeView> | |
| <asp:SqlDataSource ID="LocationsQuery" runat="server" | |
| ConnectionString="..." | |
| SelectCommand="SELECT [LocPK], [LocID], [LocPath], [ParentLocPK] FROM [MMLocations]"> | |
| </asp:SqlDataSource> | |
| <button title="Submit" id="close" onclick="returnToParent(); return false;"> | |
| Submit</button> | |
| </div> | |
| </form> | |
| </body> | |
| </html> |
Hi,
I have recently upgraded my .net 1.1 project to .net 3.5 and replaced RADControls for ASP with RADControls for ASP.NET AJAX.
I get the following Javascript error "Sys.Webforms.PageRequestManager is null or not an object" on the page.
I have tried the following..
- Verify that the Web.Config is setup correctly.(http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx)
- There is no xHtmlConformance element in Web.Config.
When I view the source code for the aspx page, I don't see the element Sys.WebForms.PageRequestManager anywhere in the code.
Please suggest if I am missing something on the page which generates the Sys.WebForms.PageRequestManager object.
Thanks in advance....
protected void RadGridiPur_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode)
{
GridEditableItem edititem = e.Item as GridEditableItem;
RadDatePicker dtpkrSend = (RadDatePicker)edititem["SendDate"].Controls[0];
DateTime dtTmp = DateTime.Today;
dtpkrSend.MinDate = dtTmp.AddDays(1);
...
But I can still choose the days in the Calendar before this date, compared to when I'm setting the date in the designermode:
... MinDate="08-Jun-2009 00:00:00"></telerik:GridDateTimeColumn>
Can I in some way get the same behaviour as when setting the date in designermode, as programmetically? My intention is to force our users to set the date tomorrow and forth.
Thanx for feedback!
Cheers
Johan
<%
@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%
@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%
@ Register assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head runat="server">
<title>Untitled Page</title>
</
head>
<
body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
height="75px" width="75px" IsSticky="True" MinDisplayTime="10">
<img alt="Loading..."
src="loading-spiral.gif"
style="border:0px;" />
</telerik:RadAjaxLoadingPanel>
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>
</form>
</
body>
</
html>
And the code behind:
Partial
Class _Default
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Threading.Thread.Sleep(2000)
End Sub
End
Class
Hi,
I am working with Q1 2007 version controls.
In editor, I am facing problem with cut/copy/paste functionality. In fire fox browser, when I select some text and click on image of “cut”, it displays one ‘javascript alert’ with message that “Please use Ctrl+X to Cut”, which should not displayed and directly it should cut the selected text. Same problem is occurring with copy and paste.
It is only happening with fire fox browser. For other browser (IE 6/7, safari) it’s working fine.
Please note that, because of some issue we cant upgrade our rad controls’ version. So please suggest any solution which can work in Q1 2007 version.
I can attach current .dll of editor rad control and screen shot in case it required.
Any help on this will be appreciated.
Regards,
Mittal

Hi Telerik Team,
We used radslidingpane in our project. But if we call’s the following script it’s working in IE but not working in Firefox 3.0.5. Sliding pane is not expanded and how to change the height of radslidingpane. So any please help me to solve this issue.
OnClientExpanded="PaneExpanded"
OnClientCollapsed="PaneCollapsed"
<script type="text/javascript" language="javascript" >
function doClick(buttonName, e) {
//the purpose of this function is to allow the enter key to
//point to the correct button to click.
var key;
if (window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox
if (key == 13) {
//Get the button the user wants to have clicked
var btn = document.getElementById(buttonName);
if (btn != null) { //If we find the button click it
btn.click();
event.keyCode = 0
}
}
}
function PaneExpanded(sender, eventArgs) {
tblZoomTools.style.left = tblZoomSlider.style.left = "230px";
}
function PaneCollapsed(sender, eventArgs) {
tblZoomTools.style.left = tblZoomSlider.style.left = "90px";
}
</script>