C# - Telerik RadAjaxManager Loads Controls Slow The First Time?

Mar 15, 2011

So I have a RadPanelBar, and within that a RadTreeView. On a node click event I want so update some control.. for now I am just trying to update a textbox. It works fine except that the first time I click on a child node it takes a very long time to update the control.. Just a simple text change. I set a break point in my function and I noticed that it is taking long to fire the OnNodeClick event.. If I click a parent node in the tree view it loads fine on the first click. Also, after the first time I've clicked it.. it loads quickly.. If I refresh the page, it is slow on the first click again.. Is there something I am missing.. Is the structure of my HTML inappropriate for these AJAX calls? I feel like this is a really simple example that should work..

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="IncidentReportPanel">

[Code]....

EDIT: I updated my code according to this article, [URL] , and the problem persisted... again it only happens the first time..

EDIT: Just to clarify, by updating according to that article, I mean that I removed all the tables and relative widths and replaced them with css positioning and fixed widths.. the problem only happens the first time.. and it only happens sometimes.. quite a few times i thought i solved the problem as it would start responding quickly.. but then after I change my .aspx and change it back (even to the exact same thing when it was working quickly).. I get the same problem..

EDIT: So, I removed the AJAX component.. and setup the control so that it does a PostBack.. and it still takes long to hit my break point.. so it seems that its not an AJAX issue... but for some reason my events are taking long to fire..

EDIT: So I followed the advice on this post and I used the webservices to do my binding and handle everything from the client side code.. All seemed to be ok until I decided that I wanted to return nodes from my webservice that could also be expanded.. So in my webservice I set the ExpandMode of my RadTreeNodeData object to Webservice.. and it renders the data correctly when I expand the child nodes.. However now I see the same problem from before where some calls take 20-30 seconds.. It takes 20-30 seconds to even hit the break point in my webservice.. Should I use the OnClientNodeExpand event instead?

View 3 Replies


Similar Messages:

Mysql - Login Page Loads Very Slow Takes 30 Secs?

Nov 3, 2010

We have ASP.NET Application in Test server. For first time access the Login page of that application load time is slow. Response time is around 25-30 sec. After that I refershed the page or Opened with a new browser, loading of Login Page is around 1-2 sec.

Only user name & password columns are there in login page. Is there any way I can reduce the response time for first time loading?

underline db mysql. we are using godaddy virtual server windows.

View 4 Replies

How To Get The Time Slot Of Telerik's Scheduler From Client Side By The Time Or Date Of That Time Slot

Nov 19, 2010

I'm using Telerik's RadScheduler Control with WebService Binding.

I've used RadScheduler with Server Side Binding which has an event called "OnTimeSlotCreated" which fires every time when a particular time slot creates so that i can access the time slot and get the control (HtmlTableCell Control) to modify it according to the requirement.

But now i'm binding it from client side through WebService which has no such "onClientTimeSlotCreated" event, also these time slots are not having any identity at client side to access.

View 1 Replies

Configuration :: 2.0 Site On IIS 6 - Loads Super Slow And Sometimes Throws "Page Not Found" On Post Back?

Jan 24, 2011

Looking for advice on how to troubleshoot an application (not something I wrote) that is on the old 2.0 Framework. It acts "crazy" sometimes when selecting an item from a drop down list. Sometimes the page will reload like it should on the post back with the new data, while othertimes, it just throws a Page Not Found error. What's the best way to troubleshoot and eliminate the various variables of IIS6, 2.0 Framework, SQL Server, the VirtualMachine, etc.

View 3 Replies

Create Set Of 10 Random Numbers Every Time Page Loads?

Jul 7, 2010

I am trying to create a Question Bank application for one of our clients. What is the main challenge I am facing is a typical demand from the client. What they want is : Whenever users open this site a set of random numbers(range say 1 to 20) should be generated and questions with the QuestionID(column in a table in Database) according to the numbers would be displayed in the page. I have done it to some extent but, still not satisfied with it.

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
int[] n = new int[10];
int rn;
bool Check = true;
int[] n1 = new int[10];
Random rand = new Random();
n1[0] = rand.Next(1, 21);
for (int i = 1; i < 10; i++)
{
rn = rand.Next(1, 21);
for (int j = 0; j < n1.Length; j++)
{
if (n1[j] == rn)
{
Check = false;
break;
}
else
continue;
}
if (Check == true)
n1[i] = rn;
}
for(int i=0;i<10;i++)
Response.Write(n1[i] + " ");
}
}

Here are some O/Ps : 11 13 14 4 16 0 0 0 0 0 (1st load)
5 9 8 1 0 0 0 0 0 0 (after refreshing the page)
16 10 20 6 8 17 11 7 0 0 (after refreshing again)

I want that, all these digits in each refresh should be unique(which is comming) but all set should 10 digits(this is not happening).

View 6 Replies

Streamed HTML Through ASPX Literal Loads Only The First Time?

Jun 3, 2010

I am streaming HTML content into a Literal control in an ASPX page, and am continually running into a problem where the page loads fine the first time I try it, then subsequent attempts fail to load.

The purpose of the aspx page is to act as a 'broker' to another process that produces streamed HTML output, which then needs to be resolved by the browser.

The reason I'm not just using HtmlTextWriter to stream out the code to the Response object is that the streamed HTML contains framesets, and I am forbidden from modifying that code in any way, so I must keep the streamed code intact. In spite of the fact that frameset HTML hardcoded into the ASPX file would work, it does NOT resolve streamed frameset code!

In any case, streaming into the literal (by creating a string that is assigned to the Literal's Text property) works just fine -- the FIRST time I load that page. If I exit the page, then try to reinstantiate, it FAILS, producing an empty HTML file (containing only "<HTML></HTML>").

View 3 Replies

C# - ActiveX Asks User To Install Every Time Page Loads

Feb 1, 2010

I think the title says it all, I have an activeX control, that ask the user if he want's to install it every single time the page loads (Even if it is already installed). Can anyone point me in the right direction? What I have tried so far:

Setting new Guids for the class & interface.
Changing interfaces names & method names.
Changing version number
Uninstalling and re-installing the activeX

View 2 Replies

C# - Display Time Data With Telerik Chart?

Jan 2, 2011

We need to visualize the number of forms submitted over a 2 week period where it is broken down by day/hour.

I have the query returning data such as:

My question is, how do I tell MS chart to display this data? When I bind it I get the following:

I'd like it to expand out and show the hours between the dates.

View 1 Replies

GridView Paging Every Time - Change Page Loads Full Data

Oct 14, 2010

I do long and slow query to get data to my GridView and I got lot of data, but when I'm changing page it loads as slow as at the start, it loads full data again and again, how to load data once and use paging without data loading?

View 1 Replies

AJAX :: Load MS Chart Every Time When Page Loads Or Button Clicks In Update Panel

Mar 7, 2011

I have 2-3 update panel in my page and i don't want to load chart every time when my page loads or button clicks etc. I put that in update panel with triggers means only some clicks should loads chart. but that chart gets loaded everytime. how to stop that from loading

View 2 Replies

Dll - How To Slow The First Time After Building A Class Library

Jun 10, 2010

I've got a web app solution containing a class library project.

Whenever I rebuild the class library and then refresh the page, it takes ages the first time, and is then quick again subsequently.

It's almost as if the newly rebuilt dll is having to 'bed in' to the app.

View 3 Replies

C# - Comments Slow Down The Execution Time Of Webpages?

Nov 5, 2010

This might be a pretty strange question in the eyes of some of you out here, but I really wonder if comments in my code will slow down the execution time of the pages I make.I have some Classes / WebControls that required alot of comments to make everything clear and quickly readable to other people that will have to deal with my code and now wonder how ASP.Net deals with my comments. Will comments be stripped from my code at compile time or how is this all done?I should be more specific: I mean comments in my code-behind in C#.

View 4 Replies

After Multiple User Login / Some Time C# Application Get Slow

Jul 2, 2010

In application all sql connection close properly, Also when user log out its connection close still sql process memory increase in RAM and after some time Application slow down.

View 3 Replies

Installation :: Web Page Slow To Start After A Short Period Of Time

Feb 5, 2011

My web site seems to be running quick. I have not deployed my web site yet, so I am the only one using it right now. The problem I have is if I am testing out the site and then I stop using it for a short period of time, when I come back the web site takes about 8-10 seconds to startup again. I did not rebuild the site I just simply stopped using it for a short period of time. It seems like after a short period of time I have to 'wake it up' again. Is this normal? How can I prevent this?

View 2 Replies

Configuration :: Slow Load Time After Updating Class In App_Code?

Dec 20, 2010

We have an asp.net website running on IIS 6 Windows 2003. When ever we upload a class file to the App_Code folder our whole site goes down temporarily until, what I assume, compilation is complete. Has anyone else experienced this? Any other file we upload it does not do this only our class files.

View 1 Replies

V4.0 IIS 7.0 Integrated Slow / Certain Pages And It Seems To Compile Again Next Time Go That Page Its Very Fast?

Feb 24, 2011

We recently migrated to v4 of .net. We are running iis 7 in integrated mode. When the site first starts its slow. I get that - it compiles for the first time. The odd thing is then we will go to certain pages and it seems to compile again. The next time i go that page its very fast. Nothing exceptional with the second page - but once that is hit the rest of the site is fast.

View 1 Replies

Can Large External JavaScript Files Slow Down The Page Load Time

Aug 4, 2010

When we include Javascript files in our aspx files. either we write all the Javascript code in the Head section of aspx or we link to an external Javascript file.

So when the clinet makes a call to that page. Does that mean that all the Javascript will be loaded on the client side?

If that is the case then does not that mean that it will slow down the loading of page as all the Javascript has to be loaded on the client machine?

View 3 Replies

Forms Data Controls :: EmptyDataText Property Ignored When Page Loads For The First

Nov 3, 2010

I've got a dropdownlist and a Gridview Based on the choice from the dropdownlist (which has a '--Select--' as the first item), the gridview is populated. If nothing is in the database when queried, I have a message for the emptydatatext property of the gridview. However, it comes up when the page first loads, since it's based on the ddl. How can I make it so that, when the page loads for the first time, the emptydatatext property is ignored?

View 3 Replies

Forms Data Controls :: Need To Load 5 Images When The The Datalist Loads Up?

Feb 14, 2010

I have a photogallery.But I need to load 5 images when the the datalist loads up.

View 3 Replies

DataSource Controls :: Maintaining A Custom SelectCommand Across Page Loads?

Feb 19, 2011

My SqlDataSource has no selectCommand defined in the .aspx page. Instead I define it in the code behind dynamically depending on some parameters that the user selects and then clicks a button to perform the query (custom search filters basically). The problem is that when I click on a different page in my dataPager, or I click to sort any of the columns the gridview becomes empty when the page refreshes. I did a check and the selectCommand becomes empty when the page posts back. Is there a way to prevent this from happening?

View 2 Replies

How To Mix Telerik RadControls With AjaxControlToolkit Controls

Nov 23, 2010

I am working on a page that primarily uses Telerik RadControls, and thus uses the RadScriptManager control. However, I need to add some controls that use AjaxControlToolkit to the page, but since I cannot have two ScriptManagers on one page, so how would I do this?

View 1 Replies

JQuery :: Telerik Controls + AutoComplete?

Feb 22, 2011

Does anybody used Telerik Controls and JQuery Autocomplete together. I'm facing a typical problem Uncaught TypeError: Object #<an Object> has no method 'autocomplete'
when I try to use it on pages. Telerik Script and Style are registered in master pages.

View 3 Replies

C# - Call Javascript From Telerik RAD Controls?

Jul 12, 2010

So I want to call a javascript function when I click on a telerik control.

<telerik:RadDatePicker Width="110" ID="rdpFromDate" runat="server" AutoPostBack="false" OnSelectedDateChanged="JSFunction();">

View 3 Replies

Javascript - Auto Tab When Using Telerik Rad Controls?

Dec 27, 2010

I am looking to auto tab from one RadNumericTextBox to the next once the MaxLength has been reached.I can do this in classic ASP, but cannot figure it out in .Net. Below is an example of my RadNumericTextBox.

<telerik:RadNumericTextBox ID="RadNumericTextBox_ExpLocation" runat="server" Width="20px"
MaxLength="3" NumberFormat-AllowRounding="False" Type="Number" NumberFormat-KeepTrailingZerosOnFocus="True"
IncrementSettings-InterceptMouseWheel="false" >
<NumberFormat DecimalDigits="0" GroupSeparator="" AllowRounding="false" KeepNotRoundedValue="false" />

View 1 Replies

VS 2005 Make A Smart Code Where The Next User Controls Loads Instead Of The HTML?

Mar 16, 2010

I have an application where I make advanced engineering/science calculations.

The application consists of 25 equal calculation "lines" which I have made as user controls:

web form:

Code:

[code]....

However the performance is quite bad because each line load from a database. Each line becomes visible when the last line has been clicked so I only need in fact 2 lines to be loaded at the beginning.

Can I make a smart code where the next user controls loads instead of the HTML that I have made, where all 25 lines appears and loads but are not visible until the line before has been used?

View 14 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved