0

Grid + Live Data + Doublebox = bad performance. How to solve?

asked 2009-06-05 14:02:01 +0800

fmcypriano gravatar image fmcypriano
612 1 7
http://felipecypriano.com...

updated 2009-06-05 14:02:33 +0800

Hello,

I found my problem but I couldn't find the solution. I need to do a grid that have doublebox for each line, so the user can change the quantity of each item direct in the grid, the problem is when I load the data and the render creates the doublebox the browser takes to long to render the grid, if I remove the doublebox the performance is much more faster.

This is the my RowRenderer's code:

new Label(codigoInteligente).setParent(row);
new Label(nomeCor).setParent(row);
new Label(quantidade.toString()).setParent(row);

// The above code is responsible for the bad performance
Doublebox quantidadeAdd = new Doublebox(0);
quantidadeAdd.setWidth("90px");
quantidadeAdd.setConstraint("no negative");
quantidadeAdd.setParent(row);

Doublebox preco = new Doublebox(0);
preco.setWidth("60px");
preco.setConstraint("no negative");
preco.setParent(row);

But I need to be able to edit the quantity (and price) for each row. Is there a faster (about the rendering) way that I could do this?

FYI, my app needs to support IE7+ and Firefox only.

Regards,
Felipe Cypriano

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-06-09 04:19:40 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

i think you can try the Freshly version coz a grid issue had been solved.

Download Here
https://sourceforge.net/project/showfiles.php?group_id=152762&package_id=218698&release_id=688216

link publish delete flag offensive edit

answered 2009-06-10 19:09:10 +0800

fmcypriano gravatar image fmcypriano
612 1 7
http://felipecypriano.com...

Hi,

I can't, right now, test it on the freshly version. I solved it showing just a few items in the grid and paginate the remain.

Using Google Chrome the performance is really fast even with the doubleboxes, I think the problem is with the rendering engine in FF and IE, and to solve it ZK would have to do some trickys. Or if my code isn't good, please tell me.

Regards,
Felipe Cypriano

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-06-05 14:02:01 +0800

Seen: 184 times

Last updated: Jun 10 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More