Speed problem when change number or rows in grid and render

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
deonreid
New User
Posts: 4
Joined: Thu May 30, 2013 12:43 pm
First Name: Deon
Last Name: Reid
Company Name: Watson Pharmaceuticals
Contact:

Speed problem when change number or rows in grid and render

Post by deonreid »

I have a subfile and I am loading all the records at the same time. If I leave the number of rows at it's default of 18, the screen loads immediately. However, if I put javascript in the onload event to change the number of rows, to say 300 which is what the number of rows in the subfile is, and render the grid, the screen takes over 15 seconds to load.

This is the java script i placed in the onload event:

getObj("Grid1").grid.setProperty("number of rows", get("NumRows"));
getObj("Grid1").grid.render();
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Speed problem when change number or rows in grid and render

Post by Scott Klement »

'number of rows' refers to how many fit on one "page" of the subfile at a time. Or one larger than the page if you have a header on the subfile. (It is not the total size of the subfile.)

So you're asking it to fit 300 rows on a single page of the subfile. Maybe you meant to set the "subfile size" property instead, which specifies the total size of the subfile?

Setting "subfile size" is really not necessary, though, as PUI will automatically expand the size of the subfile if it needs to.
deonreid
New User
Posts: 4
Joined: Thu May 30, 2013 12:43 pm
First Name: Deon
Last Name: Reid
Company Name: Watson Pharmaceuticals
Contact:

Re: Speed problem when change number or rows in grid and render

Post by deonreid »

I am trying to show the entire subfile on one page. I make the number of rows = number or records in subfile. The use will then use the browser's scroll bar to view the records.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Speed problem when change number or rows in grid and render

Post by Scott Klement »

Unfortunately, our grid controls are known to be slow when displaying so many records at once. We looked into this awhile ago and tried to optimize it as best as possible...

In order to allow things like resizable columns, the ability to move columns around, the ability to embed any widget you wish within a cell, etc, we've got a lot of different HTML elements being drawn as part of the grid. (It's not just an HTML table.) So the more you attempt to draw at once, the more memory it uses, and the longer it will take to render.

You might find that it works better in a more efficient browser (for example, try it on Chrome or Firefox)? May be worth a shot.

I wish I had a better answer for you!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests