Welcome Guest Search | Active Topics | Sign In | Register

EO.WEB.Grid work very very very slow Options
Peter Petrov
Posted: Wednesday, April 10, 2013 3:23:04 AM
Rank: Newbie
Groups: Member

Joined: 8/19/2012
Posts: 2
How to improve the speed?

If I use this code and standard grid view working very very very fast!

FirebirdSql.Data.FirebirdClient.FbCommand fbComm = app.GetExpNoteItems(sID);

fbComm.Connection.Open();

GridView1.DataSource = fbComm.ExecuteReader();
GridView1.DataBind();

fbComm.Connection.Close();


If I use:


FirebirdSql.Data.FirebirdClient.FbCommand fbComm = app.GetExpNoteItems(sID);

fbComm.Connection.Open();

Grid1.DataSource = fbComm.ExecuteReader(); // Grid1 = EO.WEB.Grid
Grid1.DataBind();

fbComm.Connection.Close();


Execution of code takes more of 40s for table with 40 records.

If I use MS Grid View execution of code takes less than 0.5s

PLEASE HELP ME!

eo_support
Posted: Wednesday, April 10, 2013 1:35:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You will want to reduce the number of the columns and also use server side paging if possible. Our Grid is very different than ASP.NET GridView and it has a lot more overhead in order to provide various features. For example, in order to support client side editing, the Grid keeps all cell data on the client side. As such if you have a large amount of data, you should consider using server side paging so that only a portion of the data is loaded.

Thanks!
Peter Petrov
Posted: Wednesday, April 10, 2013 10:10:40 PM
Rank: Newbie
Groups: Member

Joined: 8/19/2012
Posts: 2
Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.