Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
473 views
Hi,

I have a  RadTabStrip and a RadMultiPage in my MainPage.aspx. 
And i am loading the PageView from code behind .
PageView1.ContentUrl =  url;

 <telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" runat="server"                
       MultiPageID="RadMultiPage1" Orientation="VerticalLeft" ontabclick="RadTabStrip1_TabClick">                
  </telerik:RadTabStrip>   
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" Height="800" Width="800"  
         <telerik:RadPageView  ID="PageView1" runat="server">                
         </telerik:RadPageView>                  
 </telerik:RadMultiPage>

Upon the click of "Save" button in webform (contenturl) , i have to rebind the Tabstrip .

There seems to be no event which triggers the radtabstrip binding event in my MainPage.aspx.

Let me know if there anything available to fix this.

Thanks,
Mani
Dimitar Terziev
Telerik team
 answered on 03 Jan 2012
1 answer
72 views
Hi,
We have a huge or scollable RADSchedule and we have users that different resolution of the computer screen.
when user scroll to end of the calender and click on the pop up, they cannot usually unable to find the pop up for the new appointment at it is at the central of the screen, they have to scroll all the way up just to fill in the new appointment.

is there any way base on the current scroll location and show the appointment?

thank you.

Regards,
CH
Plamen
Telerik team
 answered on 03 Jan 2012
3 answers
200 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
47 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
43 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
127 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
130 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
70 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
108 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
526 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?