473,395 Members | 2,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Progress bar progressing/Message while Loading of Datagrid

40
HI,

I need to show a progress bar/message till the datagrid is fully loaded and shown in the screen.Currently, i have witten a javascript with time specified and shows a message 'Please wait while the data is loading".

I need to capture the time taken for grid to load data and pass that time to the javascript.

Is there any soluntions for this..??

The javascript i call in body onload is,
Expand|Select|Wrap|Line Numbers
  1.    function Show()
  2.     {  
  3.        document.getElementById('dvStatus').style.display = '';
  4.        var t = setTimeout("document.getElementById('dvStatus').style.display = 'none';",500000);    
  5.        document.getElementById('imStatus').src = 'Images/Preloader_2.gif';
  6.  
  7.     }
  8.  
  9.  
  10.  
  11.   <div id="dvStatus" runat="server" visible="false" style="left: 380px; position: absolute; bottom: 90px; background-color: White">
  12.             <img src="Images/Preloader_2.gif" alt="Progress" id="imStatus" />
  13.             <asp:Label ID="lblStatus" runat="server" CssClass="messageStyle"></asp:Label>
  14.         </div>

Thanks in advance,
Blacky
Apr 9 '09 #1
3 6437
maliksleo
115 100+
i think this functionality is already given in progress bar tool by microsoft.

you only have to put your datagrid inside the updatepanel and associate the progressbar and updatepanel and you will get the results what you want.

maliksleo
Apr 9 '09 #2
Blacky
40
I am not using ajax.Kindly let me know other solution
Apr 9 '09 #3
Frinavale
9,735 Expert Mod 8TB
Well, the problem with your solution is that your JavaScript function is called when the page is loaded. This means that the data is already loaded which is not really when you want to call it.

What I would recommend is placing your data in a Panel (or <div>) that has a display style of "display:none". Your content will not show up on the page now.

Set the style for your "dvStatus" <div> to "display:block".

Change your JavaScript to hide the "dvStatus" <div> and display the <div> containing the content during the <body>'s JavaScript onload event.

-Frinny
Apr 9 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: angelina | last post by:
Hi, Can anyone help me write some code that will run a progress bar before a new form is loaded? The progressbar does not have to represent the actual progress of the form load but simply...
4
by: Kenneth Keeley | last post by:
Hi, I have a page that uploads files to my server and I wish to display a "Please wait while uploading" page to the user while the file is uploading. I have been able to redirect the user once the...
0
by: Joe Finsterwald | last post by:
Here is how to build a progress bar in dotnet that doesn't require any third party components and uses JavaScript on the client side so it doesn't require any additional post backs. This script...
3
by: jcfilth | last post by:
Hello, I have created an asp.net web page with 3 datagrids. Every datagrid binds to a diferent sql query, against a sql server. I first bind one, then the other and then the last, all using code...
11
by: simon | last post by:
when I execute aspx page, it works about 5 minutes - I calculate some statistics. Is there some way, that I can show user time bar or smething similar? That he nows, that page is working. ...
7
by: Oleg | last post by:
I have a web form let's say 'YYZ.aspx'. It has an iframe in it. When it loads it shows progress bar in IE this way: loading for page then again loading for page in iframe. This part is fine....
7
by: Adriano | last post by:
Hello, can anyone help me to make progress bar in the status bar that will show the status of SQL data loading into dataset, tnx in advance, Adriano
4
by: fabrice | last post by:
I m looking for a solution to show a message when ma first page is loading. It is the "home page" of the application. And I'd like to give the message 'please waiting ...' during the loading. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.