Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
144 views

Several years ago we built an application that utilizes the RadTreeView control.  The application worked fine upon deployment to the web server. Recently, the customer who owns the application switched hosting companies. Since the switch, the page that uses the RadTreeView control will not render completely on the new company's web server.

The symptoms of the problem are that the page begins to load, then will hang indefinitely. All other pages on the site work properly. Viewing the source, one can see that the page rendering seems to stop mid-line before the entire tree view markup is sent to the browser.  The problem can be seen on this test page: Tree View Rendering Problem Example

The markup for the test page has been made very simple. There is no code-behind being utilized:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RenderTest.aspx.cs" Inherits="Virtuoso.RenderTest" Theme="Admin"%> 
 
<%@ Register Assembly="RadTreeView.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %> 
 
<!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 id="Head1" runat="server">  
    <title>Untitled Page </title> 
</head> 
<body> 
    <form id="form1" runat="server">  
      
<rad:RadTreeView ID="rtvMenu" runat="server" DragAndDrop="true" MultipleSelect="false" 
                DataSourceID="SiteMapDataSource1" EnableViewState="true" AutoPostBack="true" 
                DataTextField="Title" DataFieldID="SiteMapMenuID" DataFieldParentID="Parent" 
                Skin="Web20" > 
                                </rad:RadTreeView> 
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" SiteMapProvider="SqlSiteMapProvider" /> 
 
</form> 
</body> 
</html> 

I have done some experimentation and determined that the TreeView will render completely if it is not bound to the SiteMapDataSource.

Obviously, since the test code works fine in our development environment, on our test server and worked fine for over a year at the previous hosting company's server, it appears to be an issue with the server of the new host provider.  However, as a developer I will be expected to contact the hosting company and explain to them what needs to be done to fix the problem. From my previous dealings with this hosting company, I am skeptical they have the knowledge to fix the issue without me telling them exactly the steps to take. However, I am at a loss as to what could cause this issue.

I would appreciate any insight into how this could be resolved.  Thanks!

Terry
Top achievements
Rank 1
 answered on 23 Oct 2009
2 answers
140 views
Hi all,

Is there any way of uploading video straight to the YouTube server using radUpload?
If you don't guess what I mean, please, take a look at this http://code.google.com/apis/youtube/2.0/developers_guide_dotnet.html#Browser_based_Upload

Thanks a lot

Giorgi
Giorgi Zautashvili
Top achievements
Rank 1
 answered on 23 Oct 2009
0 answers
97 views

I have this in a test page

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="PulsionTechnology.RefugeeCouncil.WebForm3" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
         <telerik:RadScriptManager runat="Server" ID="RadScriptManager1" />
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
           
            <telerik:RadScheduler runat="server" ID="RadScheduler1" Width="500px" TimeZoneOffset="03:00:00"
                SelectedDate="2007-03-30" DayStartTime="08:00:00" DayEndTime="18:00:00"
                OnDataBound="RadScheduler1_DataBound" Skin="WebBlue">
                <Localization AdvancedAllDayEvent="All day"></Localization>
                <AdvancedForm Modal="true" />
            </telerik:RadScheduler>
    </div>
    </form>
</body>
</html>

And Code Behind

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace PulsionTechnology.RefugeeCouncil
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        // You can safely ignore this method.
        // Its purpose is to limit the changes to the underlying data only to the active user session.
        protected void Page_Init(object sender, EventArgs e)
        {
            XmlSchedulerProvider provider;

            provider = new XmlSchedulerProvider(Server.MapPath("~/App_Data/Appointments.xml"), false);
            RadScheduler1.Provider = provider;
        }

 

        protected void RadScheduler1_DataBound(object sender, EventArgs e)
        {
            // Turn off the support for multiple resource values.
            foreach (ResourceType resType in RadScheduler1.ResourceTypes)
            {
                resType.AllowMultipleValues = false;
            }
        }
    }
}

I am getting a postback and no ajax asynchronous postback - what am I missing?

Gregor Suttie
Top achievements
Rank 1
 asked on 23 Oct 2009
1 answer
84 views
I have this code:

string text1="function teditDelayedScript() {    if (window.confirm('Se eliminara el registro seleccionado')) __doPostBack('ctl00$mpContentMain01_01$MotorTipoEditor','deleteselected');  }  window.setTimeout('teditDelayedScript()',300);";

radajaxpanel01.ResponseScripts.Add(text1);


How do I need to do for doing this working ok, after a callback?


This code is generated after a postback, so the content of the text1 variable is assigned dynamically on the server side.
__doPostBack('ctl00$mpContentMain01_01$MotorTipoEditor','deleteselected');
Johny
Top achievements
Rank 1
 answered on 23 Oct 2009
3 answers
67 views
How would I go about adding the record count beneath the title of a pdf document created using the ExportToPdf functionality of RadGrid? Seems like a simple task, but haven't been able to figure it out yet. Any help would be greatly appreciated!
Michael
Top achievements
Rank 1
 answered on 23 Oct 2009
2 answers
95 views
How would I go about adding the record count beneath the title of a pdf document created using the ExportToPdf functionality of RadGrid? Seems like a simple task, but haven't been able to figure it out yet. Any help would be greatly appreciated!
Michael
Top achievements
Rank 1
 answered on 23 Oct 2009
2 answers
547 views
Hello,

I have a RadGrid and I would like to capture the DataKeyValue (AssignmentID) of each selected row (the user selects a row via the GridClientSelectColumn).  In short, when a user selects a row, I want to capture each row's corresponding AssignmentID and store that value in a hidden field on my webpage.  I will then use these values in a RadWindow popup.

I am assuming doing this on the client side using Javscript would be the best route?  Can you please provide a code sample?  Thank you in advance!

Jason

Here is my ASP.NET code:

<asp:Panel ID="pnlAssignmentSearch" CssClass="PanelContainer" Visible="False" runat="server">  
    <telerik:RadGrid ID="radgrdAssignment" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="True" ShowStatusBar="False" PageSize="20" GridLines="None" HorizontalAlign="NotSet" runat="server">  
        <MasterTableView DataKeyNames="AssignmentID">  
        <Columns> 
            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"></telerik:GridClientSelectColumn> 
            <telerik:GridButtonColumn ButtonType="LinkButton" DataTextField="AssignmentID" SortExpression="AssignmentID" HeaderText="EvalID" UniqueName="AssignmentIDButton" CommandName="Select"></telerik:GridButtonColumn> 
            <telerik:GridBoundColumn DataField="AssignmentID" HeaderText="AssignmentID" UniqueName="AssignmentIDData" Display="False"></telerik:GridBoundColumn> 
        </Columns> 
        </MasterTableView> 
        <ClientSettings EnableRowHoverStyle="True" ClientEvents-OnColumnClick="AppendAssignmentIDs" ClientEvents-OnRowClick="AppendAssignmentIDs">  
        <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
        <pagerstyle mode="NextPrevAndNumeric" AlwaysVisible="True" /> 
    </telerik:RadGrid> 
</asp:Panel> 
Jason Zam
Top achievements
Rank 1
 answered on 23 Oct 2009
3 answers
739 views
I am trying to update our main site to the latest version of the controls and am getting flaky page scrolling behavior out of modal RadWindows. 

I have a link button at the bottom of a page that, when rendered, is at mimimum 2x the height of the normal browser view height.  It is a "Order Summary" button under an ever-growing grid of line items on an order (hopefully this explains what I mean).  Anyway the user has to scroll the browser to see the button.  The button displays a modal RadWindow with the order summary page in it by doing a show(); and a center(); on the client side as well as setting KeepInScreenBounds = true on the server-side object. 

No matter what I have tried, the underlying page scrolls to the top and the modal RadWindow appears below the scroll window of the browser.  You then have to re-scroll to the bottom of the page to see the popup.

Any help I can get to turn off this behavior would be greatly appreciated.

Thanks,
Kevin

Kevin M. Betts
Web Developer
Kimball Midwest
John Fetherolf
Top achievements
Rank 1
 answered on 23 Oct 2009
5 answers
440 views
hi telerik
i have masterpage that use skin manager to change telerik controls appearences.

master_page :
 <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Forest" ShowChooser="True" PersistenceMode="Cookie"> 
            <TargetControls> 
                <telerik:TargetControl ControlID="ContentPlaceHolder1" /> 
            </TargetControls> 
        </telerik:RadSkinManager> 
all things is fine in my master page.

i want  when i change skin with skinmanager combobox ,all things in my detail forms(aspx) changed to selected skin too.
i use this solution in my detail forms (on load event) :
default.aspx :
RadSkinManager rm= new RadSkinManager (); 
rm = (RadSkinManager)Master.FindControl("RadSkinManager1"); 
RadSkinManager.GetCurrent(this.Page).ApplySkin(RadGrid1, rm.Skin); 
but problem is that the on_load event of detail page occures after masterpage onload, then this solution change the appearnce of detail form by perevius selected skin ,and is diferent from current master page skin.

i want sample solution that show me how i can change skin of my webapplication(telerik controls) completely by selecting skin in master page runtime.


Sebastian
Telerik team
 answered on 23 Oct 2009
3 answers
147 views
Hi All,

I have a radgrid with a drop down list implemented using a gridtemplatecolumn as described here:
http://www.telerik.com/help/aspnet-ajax/grdoperationswithdropdownlistinedititemtemplate.html

The grid is in a user control that is loaded in a multipage tab that has ajax enabled.  The grid uses in place editing.  When I try to select an item in the DDL I see the ajax loading image and I can't select anything in the list.  I can edit other column types without any problem.

Any ideas on solving this would be greatly appreciated.

Thanks,
Jim





Pavlina
Telerik team
 answered on 23 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?