Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
227 views
Hi All,

I am using the latest version of Telerik controls & when I trying to upload the file though Image Manger. it giving the below error.

Web.config registration missing!
 The Telerik dialogs require a HttpHandler registration in the web.config file. Please, use the control's Smart Tag to add the handler automatically, or see the help for more information: Controls > RadEditor > Dialogs > Introduction.


I have go through the following suggestion over foroum.
1. Put the custom handler under <httphandler> tag  <add path="Telerik.Web.UI.DialogHandler.axd" verb="*"  type="Telerik.Web.UI.DialogHandler,
           Telerik.Web.UI,Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

2. Check the websense over the server. But that is not an issue.
3.  I have also increase the maxrequestlength to "2000000".

But it still not working. Can you suggest me what the reason behind it. Below is my code snipet
  <telerik:RadEditor  Width="98%" Height="825px" AutoResizeHeight="true" runat="server"  editable="true" haspermission="false"
                MaxFileSize=""
                ID="Editor" ContentAreaCssFile="~/RadEditor.css" OnClientSelectionChange="Editor_ClientSelectionChange" 
                  DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"
                TableLayoutCssFile="~/styleFB.css" AllowScripts="True" ToolsWidth="1px">
                <ImageManager MaxUploadFileSize="2147483647" />
                <DocumentManager MaxUploadFileSize="2147483647" />
                <Content></Content>
</telerik:RadEditor>

Thanks in advance.

Note : But when I tried to upload in local machine in debug mode it giving me no error.

Thanks
Alec
Rumen
Telerik team
 answered on 03 Jan 2012
1 answer
59 views
I see from my product list page that there is a new version of the ASP.NET AJAX library available. I am a little bit confused on the upgrade process though. The download page refers to a trial version in a couple of places. Is this just because the same page is used for existing Telerik customers to upgrade and for prospective customers to download a free trial?
Shinu
Top achievements
Rank 2
 answered on 03 Jan 2012
1 answer
51 views
Hi,
I have rad grid and binding data to that on page load and paging is on. By default it is displaying page 1 of grid. I want to set page no pro-grammatically. For example there is  a button and on click of that page 2 will display and button is outside the grid. Thanks in advance....
Princy
Top achievements
Rank 2
 answered on 03 Jan 2012
3 answers
147 views
Hi,

I want to show content of two rad editors (both are on the same page) in a radwindow (on same page) on a button click using javascript.
Can you please help me in this regard?

A code sample will be a great help.

Also when I am showing content of a control in radwinow. It is working fine on first click (showing correct content). When I close the rad window and again click on the same button, it opens the rad window but this time it comes blank. No content is shown in radwindow.


Can you please help me in this.
Slav
Telerik team
 answered on 03 Jan 2012
2 answers
141 views
HI All,

I am getting the below error in MCMS tool when I am editing or creating the page( I am using the custom page template). Can you please help in resolving the issue ?

Object reference not set to an instance of an object.

Description:

An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.] 
Telerik.WebControls.RadEditorPlaceHolderControl.SetPrenavigatedResourceGallery(String dialog, ResourceGallery defaultResourceGallery) +60
Telerik.WebControls.RadEditorPlaceHolderControl.SetPrenavigatedParameters() +25
Telerik.WebControls.RadEditorPlaceHolderControl.AddSpecialToolParameters() +41
Telerik.WebControls.RadEditorPlaceHolderControl.OnPreRender(EventArgs e) +552
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

Thanks,
Naveen T
Naveen
Top achievements
Rank 1
 answered on 03 Jan 2012
1 answer
86 views
Hello,

I have a radrid with one column setup for printing the object associated with the ID of the row.  Works great unless I ajaxify the grid either wrapping with an AJAX panel or using an ajax manager on the page then I get a javascript error on postback wchihc makes sense because the ajax manager or panel will be trying to interpret the response.  How to I bypass the ajax panel for this one behaviour and have the browser rather than the ajax manager respond to the new contect header information?
protected void radGridAll_ItemCommand(Object sender, GridCommandEventArgs e)
        {
            if (e.CommandName != "Print" ) return;
  
            Guid id = Guid.Parse(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"].ToString());
  
            //lblMessage.Text = string.Empty;
  
            switch (e.CommandName)
            {
  
                case "Print":
  
                    //string args = Request.QueryString["ApplicationID"];
  
                    NMotionServer.ApplicationLead _application = NMotionServer.ApplicationLeadService.GetByID(id);
  
                    if (_application.LeadStatusID == (int)enumLeadStatus.Fresh || _application.LeadStatusID == (int)enumLeadStatus.Viewed)
                    {
                        AppHistory _leadStatusEvent = new AppHistory() { ApplicationLeadID = _application.ID, EventTypeID = 2, ForeignKeyID = (int)enumLeadStatus.Printed, Timestamp = DateTime.Now, UserProfileID = ((UserProfile)Session["_userProfile"]).ID };
                        AppHistoryService.Save(_leadStatusEvent);
                        _application.LeadStatusID = (int)enumLeadStatus.Printed;
                        ApplicationLeadService.Save(_application);
                    }
  
                    //RptApplication _applicationReport = new RptApplication((DealerLinkServer.SalesForceWebReference.SforceService)Session["SalesForceBinding"], args);
  
                    RptApplication _applicationReport = new RptApplication(id.ToString());
                    ReportProcessor _processor = new ReportProcessor();
                    RenderingResult result = _processor.RenderReport("PDF", _applicationReport, null);
                    string fileName = "NMotion_Lead_" + _application.ApplicantNameLast2First.Replace(" ", "_").Replace(",","_").Replace("'", "_") + "_" + _application.DateOfApplication.Year + _application.DateOfApplication.Month + _application.DateOfApplication.Day + ".pdf";
  
                    Response.Clear();
                    Response.ContentType = result.MimeType;
                    Response.Cache.SetCacheability(HttpCacheability.Private);
                    Response.Expires = -1;
                    Response.Buffer = true;
  
                    Response.AddHeader("Content-Disposition", string.Format("{0};FileName=\"{1}\"", "attachment", fileName));
                    Response.BinaryWrite(result.DocumentBytes);
                    Response.End();
  
                    break;
            }
        }

Thanks
Jonathan

Antonio Stoilkov
Telerik team
 answered on 03 Jan 2012
2 answers
118 views
Hi all,

I am using RadToolTipManager but it is not working on my page. I set html tips on the page, and call the RadToolTipManager control in the page as follows:

<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" />
<telerik:RadToolTipManager ID="RadToolTipManager_Tasks" 
    runat="server"
    Animation="FlyIn" /> 

But nothing is happening, when I was expecting to see the tooltips flying. 

Does RadToolTipManager needs the RadFormDecorator control?

Any thoughts?

Thanks,
Bruno
Svetlina Anati
Telerik team
 answered on 03 Jan 2012
4 answers
571 views
For testing purposes I have my session timeout set to 3 minutes.  2 minutes before session timeout the popup will appear.  If I click "Continue" it stays on the page and hides the dialog.  A minute later it will popup again as expected, but this time clicking the "Continue" button doesn't work at all.

I am not getting any javascript errors.  If I put an alert in the ContinueSession method I get there after the first click, but not after the second click.

Javascript Code:
<script language="javascript">
    //a flag to ease the logic which determines whether to redirect the user
    //will not redirect if the RadButton is clicked
    var toRedirect = true;
 
    function OnClientHiding(sender, args) {
        if (toRedirect) {
            window.location.href = sender.get_value();
        }
    }
    function ContinueSession() {
        var notification = $find("<%= rnSessionTimeout.ClientID %>");
        toRedirect = false;
        notification.update();
        notification.hide();
    }
    function OnClientShowing() {
        //raise the flaga again so that a redirect will occur if the notification autocloses
        toRedirect = true;
    }
</script>

HTML Code:
<telerik:RadNotification ID="rnSessionTimeout" runat="server" Position="Center" Width="300"
    Height="125" LoadContentOn="PageLoad" AutoCloseDelay="105000"
    Title="Session Expiration" TitleIcon="Warning" OnClientShowing="OnClientShowing"
    ContentIcon="Warning" Skin="Default" EnableRoundedCorners="true" OnClientHiding="OnClientHiding">
    <ContentTemplate>
        <p align="left">
            Your session is about to expire. Do you wish to continue using this site?<br />
            <telerik:RadButton Skin="Default" ID="continueSession" runat="server" Text="Continue Your Session" Style="margin-top: 10px;" OnClientClicked="ContinueSession" Autopostback="false" />
        </p>
    </ContentTemplate>
</telerik:RadNotification>

Code Behind:
Protected Sub rnSessionTimeout_CallbackUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadNotificationEventArgs) Handles rnSessionTimeout.CallbackUpdate
End Sub



Svetlina Anati
Telerik team
 answered on 03 Jan 2012
3 answers
199 views
Hi,
Could anyone please tell if it is possible to set the LoadingStatusPosition of a RadTreeView from client-side (using javascript)?

We want to keep the LoadingStatusPosition as 'BeforeNodeText' but in one case, we do not want it to show the loading on node expand and we want to achieve this on ClientContextMenuItemClicked (i.e. expand a node on OnClientContextMenuItemClicked with LoadingStatusPosition as none) .

Thanks & Regards,
Puneet
Dimitar Terziev
Telerik team
 answered on 03 Jan 2012
2 answers
124 views
Hello,

I am trying to implement the solution found on the following page:

http://www.telerik.com/support/kb/aspnet-ajax/menu/how-to-stretch-the-menu-items-to-fill-the-entire-width-of-the-menu.aspx

However, I am having problems accessing the RadMenu control client side using the following line

var menu = $find("<%= RadMenu1.ClientID %>");

Please can someone let me know why I struggle to access Telerik controls using this type of javascript command?

Also, does the code in the article above still in work in Q2 2011?

Full code for my solution is below:

<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title></title>
</head>
<body onload="pageLoad()">
 
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        EnableTheming="True">
    </telerik:RadScriptManager>
 
    <telerik:RadMenu ID="RadMenu1" runat="server">
    </telerik:RadMenu>
 
    </form>
 
</body>
<script type="text/javascript">
    function pageLoad() {
        var menu = $find("<%= RadMenu1.ClientID %>");
    }
</script>
</html>

Thanks,

Ken
Ken Jones
Top achievements
Rank 1
 answered on 03 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?