Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
149 views
Wondering if anyone has suggestions for increasing the loading speed of a page I have.

It has over 50 fields. RadTextBoxes, NumerticTextBoxes, ComboBoxs, shared DatePickers..
And a Tab Control with controls on it.

In IE7 it seems to take them 20 seconds to load the page, where as another page using the Document Editor and RadTreeView only takes about 5 to 7 seconds.

In IE6 it loads faster then IE7, but then if they scroll down to the Tab Control they get an hour glass, and none of the fields load the data (whatever that means I haven't seen the issues yet in IE6)

So just wondering on general things I can do to speed up the page with all the Telerik controls all over it.

the total page size is about 650k. It was 850k, but then I dropped it down by switching to RadDatePicker and using a Shared Calendar and removing all the whitespace on the page using an httpmodule.

So at 650k page size a large pipe to the internet, it takes this user too long to load the page.  Vs the other pages that load in a bout 5secs.

There a way to cache things to the client when they log in? I'm thinking the speed problem is not the downloading of the page, but the processing of the page by IE to render the controls to the screen. How could I speed up that process?

Also, I should note, same page in FF takes 2 second lol. Unfortunately the clients are locked down to IE6 and IE7.

Doing a Trace, from Begin Render to End Render is 1.3secs, that normal?

Also have few comboboxes.
Fred
Top achievements
Rank 1
 answered on 22 Jun 2009
5 answers
143 views
Hi,
I searched the forum but I couldn't find any information for my problem. The problem is that: I have a dock zone with several docks inside. Through client script I update the content of one of the docks. But if the content is larger (longer text) than the old content a scroll bar appears inside the dock. What I want is to force the dock to resize itself in order the whole content to be visible. Is there any dock client method that can do this?
Best regards,
Ivan Pelovski
Ivan
Top achievements
Rank 1
 answered on 22 Jun 2009
1 answer
110 views
Hi,

   I have created a custom webpart using RAD chart and deployed it on to the Sharepoint server 2007 intranet site.I have safecontrolled the RADChart.Net2.dll

<SafeControl Assembly="RadChart.Net2, Version=3.1.2.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763" Namespace="Telerik.Charting" TypeName="*" Safe="True" />
      <SafeControl Assembly="RadChart.Net2, Version=3.1.2.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />

The RAD Chart is displaying fine when I Browse the site using the server credentials,but if i browse the site using a new credential of the user added as owner the chart is not being rendered.It is Showing the below error.

"RadChart can not find C:\Inetpub\wwwroot\wss\VirtualDirectories\20\Radcontrols\Chart\Image.aspx. For more information, please, refer to RadChart Help: Deployment Manual - Deploying r.a.d.chart"


I have placed the Radcontrols folder in the C:\Inetpub\wwwroot\wss\VirtualDirectories\20 and made the folder by removing webapplication  in the IISManager settings,still the chart is not being rendered.


Can you please help me in this issue ASAP.


Regards,
Sabitha
Vladimir Milev
Telerik team
 answered on 22 Jun 2009
1 answer
146 views
Hello.

We're using the RadEditor with a custom button that embeds the following markup in the HTML viewer:
<div id="mg_001"> 
  
<script type="text/javascript">swfobject.embedSWF("/upload/mediagallery/viewers/slideshow.swf", "mg_001", "452", "327", "8.0.0", "/upload/flash/expressInstall.swf", { gallery: "10", album: "1", item: "2"}, { menu: "false", wmode: "transparent" }, {});</script> 
</div> 
 

The insert works fine.  However, after inserting, when you select the HTML view, it looks like it tries to execute the script tags in the code that we embedded... it fails because it cannot find the externally referenced js file that defines the swfobject which in turn leaves that variable set to null.  Including the external JS file that houses the script on the page that the editor is on makes no difference, nor does embedding the external reference in the html content above.  The quircky part of this, is that if you LOAD the editor with this code already inserted, and switch to the HTML view, the issue does not occur... it's only when adding it to an existing editor.  I hope this makes sense.

We need to be able to use the script tags in this code.  We have AllowScripts and EnableEmbeddedScripts both set to true, with again no impact on this issue.  This is using Q1 controls, with the latest SP, windows vista .net 3.5.

Is there a way to stop the editor from trying to execute the script when swithing into the HTML view?

Thanks,
Marty
Lini
Telerik team
 answered on 22 Jun 2009
4 answers
137 views
i have this code that i cant get to run it calls a server-side function i have in the script manager EnablePageMethods set to true so is there a reason that it wouldnt work
<script type="text/javascript">  
        function RowSelected(sender, args)   
        {    
            var dataKeyValue = args.getDataKeyValue("Engineer");  
            document.getElementById("txtEngineer").value = dataKeyValue;  
        }  
    </script> 

thanks for your help on this
Iana Tsolova
Telerik team
 answered on 22 Jun 2009
9 answers
383 views
Hi

 I have 2 problesm with Image manager when implementing it in my application
I am using stand alone Image manager control without any editor control

1. I am setting all the DialogOpener properties in a class file and trying to use that in all the pages whereever i have my Image Manager but it i am not able to Invoke the ImageManager Javascript function

Below is the code snippet used in seperate class file and invoking the method from Code behind
public class Teleril_Controls
{

 

public static void GetImageManagerProperties(DialogOpener DialogOpener)

 

{

 

try

 

{

 

FileManagerDialogParameters imageManagerParameters = new FileManagerDialogParameters();

 

 

string[] strDocumentPath = new string[1] { <<Image Path>>};

 

imageManagerParameters.ViewPaths = strDocumentPath;

imageManagerParameters.UploadPaths = strDocumentPath;

imageManagerParameters.DeletePaths = strDocumentPath;

imageManagerParameters.MaxUploadFileSize = 5000000;

 

// If you don't set the following property, the default value will be used

 

 

// imageManagerParameters.SearchPatterns = new string[] { "*.jpg" };

 

Telerik.Web.UI.

DialogDefinition imageManager = new Telerik.Web.UI.DialogDefinition(typeof(ImageManagerDialog), imageManagerParameters);

 

imageManager.ClientCallbackFunction =

Telerik_Constants.ImageManagerFunction;

 

imageManager.Width =

Unit.Pixel(694);

 

imageManager.Height =

Unit.Pixel(440);

 

 

//If you need to customize the dialog then register the external dialog files

 

 

//imageManager.Parameters["ExternalDialogsPath"] = "~/EditorDialogs/";

 

DialogOpener.DialogDefinitions.Add(

Telerik_Constants.ImageManagerFunction, imageManager);

 

}

 

catch (Exception ex)

 

{

}
}
}

Javascript in (.aspx) page

 

<

 

script language="javascript" type="text/javascript">

 

 

 

 

 

 

function ImageManagerFunction(sender, args)

 

{

 

var selectedItem = args.get_value();

 

 

var txt = $get('<%= txt_Image.ClientID %>');

 

 

if ($telerik.isIE)

 

{

txt.value = selectedItem.outerHTML;

//this is the selected IMG tag element

 

 

 

 

 

 

var strPath = args.value.getAttribute("src",2);

 

 

var img = document.getElementById('Image Tag Name');

 

img.src = strPath;

 

var hField = document.getElementById('Hidden Field to store the image');

 

hField.value = strPath;

 

var strImagename=strPath.split("/");

 

 

if(strImagename.length-1!="")

 

txt.value=strImagename[strImagename.length-1];

}

 

else

 

{

 

var path = args.value.getAttribute("src",2);

 

txt.value =

"<img src='" + path + "' />";

 

}

}

 

</script>

 

 

Calling the above method from Code behind file

Telerik_Controls.GetImageManagerProperties(ImgDialogOpener

);
Is  this the right way to Call the DailogOpener properties (or) It can be only be invoked from Code Behind.


2. I am able to open the Image Manager if i have all the properties set in code behind file without calling it from common class file but if the image folder is huge with 1000 or 2000 images it is not trying to Load the images, I am not sure if that is  because of the image folder size (or) because of the path specified.
But i am able to access the image manager when i specify a folder with 15 or 20 images

Your earliest help and suggestions are appreciated.

Regards,
Bose Thirumalai


 

Lini
Telerik team
 answered on 22 Jun 2009
1 answer
120 views
Hi everyone,

I am creating a combobox, and set the text on the basis of items selected.
Combobox is shared amongs variouse dynamic tabs.
My problem is , "Whenever a combobox has empty text in one Tab, the same combobox on another tab shows the empty text although its not. I am setting the Text every time, i have debegged my code. on server side , during debugging it shows the value is set. but again in client side it shows the empty message if set or blank text if empty message is not set."

Thanks,
Nitin
Veselin Vasilev
Telerik team
 answered on 22 Jun 2009
1 answer
76 views
Hi all

Just downloaded asp.net ajax controls demo and now my VS2005 studio debugger stopped working....Any ideas???

Craig T..
Bruno
Top achievements
Rank 2
 answered on 22 Jun 2009
1 answer
77 views
I am getting following error frequently where ever i have used Rad Controls. What is the cause of this?

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"

What is the resolution to overcome this?
Princy
Top achievements
Rank 2
 answered on 22 Jun 2009
3 answers
207 views
Sorry for the repeat question.  I am new with Ajax and for some reason I'm just not understanding the other posts.

I have a RadAjaxManager on a content page that updated a RadGrid.  I have a search textbox on my Master Page that I want the grid to respond to, but I can't figure out how to hook it up.

Can somebody explain how I can do this?  Again, I'm sorry for the repeat questions, but like I said I am new with Ajax and am having problems comprehending the other posts.
Iana Tsolova
Telerik team
 answered on 22 Jun 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?