Load a page with a grid is too SLOW.... HELP!

As I read in the tutorial I have to include in the pages the code

<link href="../../runtime/styles/xp/grid.css" rel="stylesheet" type="text/css" ></link>
<script src="../../runtime/lib/grid.js"></script>

to create a grid and that is exactly what I do.

I succesfully create the grid..... but everytime I load the page it takes a lot to display the grid and I'm just taking an example of create a grid from an array and show it in the page.

I don't know a lot about Javascript but when I check activewidgets pages to see how fast they show the example grid.... is a lot of faster.. I also check what javascript files you include to show the grids but I never see something like "grid.js".

then I realize what grid.js does is to write in the page ALL the .js files of the library and that is more than 300Kb of javascript code.

The grid is very good but at this moment is working to heavy for me, so if I can't find the way of showing a grid in a lighter way I would have to stop using it.

There must be a way to show the grids in a faster way. The problem is that I don't know it. Any help ?

J. Pablo M. Vidal

May 20,

Is the grid is inside a table cell?

If yes search forum, you will get the answer.

Sudhaker Raj
May 22,
I use the code I found in an example of the tutorial just as follows

<link href="../../runtime/styles/xp/grid.css" rel="stylesheet" type="text/css" ></link>
<script src="../../runtime/lib/grid.js"></script> 



var myData = [
 ["MSFT","Microsoft Corporation", "314,571.156", "32,187.000"],
 ["ORCL", "Oracle Corporation", "62,615.266", "9,519.000"],
 ["SAP", "SAP AG (ADR)", "40,986.328", "8,296.420"],
 ["CA", "Computer Associates Inter", "15,606.335", "3,164.000"],
 ["ERTS", "Electronic Arts Inc.", "14,490.895", "2,503.727"]

var obj = new Active.Controls.Grid;

obj.setColumnProperty("count", 4);
obj.setRowProperty("count", 5);
obj.setDataProperty("text", function(i,j){return myData[i][j]});




That's all my code but it is very slow when I try to load the page in the browser it takes a lot tof time to finally show the grid. I just download the grid library from www.activewidgets.com put the scripts and css in my web application an load the page but the process is two slow

Any Help ????

J. Pablo M. Vidal

May 24,
What is your amount of data?

For my experience, it took me 15 seconds to load a data of 1500 records.
But It took me 4 minutes to render a page of 7800 records.

And also your configuration of your PC such as Ram and CPU speed.
May 25,
What is your idea of "SLOW"? To me slow is 3-4 seconds, but to others it could be 30 seconds. All of the demos load and display in less then 2 seconds for me, what sort of times are you seeing? If you are seeing times longer then 10 seconds then I would suggest that you create everything on your local hard drive, not a web server, and open it from there to see how long it takes to display. If it takes longer then 2 seconds from your local hard drive then you have an issue in your browser that you need to solve (try a differnt browser and re-test) as it's not the framework that is causing the delay. I have created test grids with 700 records that loaded and displayed in less then 2 seconds from my hard drive. So if you see longer delays on only a few records then you have other issues to deal with.
Jim Hunter
May 27,

This topic is archived.

See also:

Back to support forum