#2193 Grid rod does not work if new Grid with Java code

5.0.3
closed-fixed
nobody
5
2010-08-24
2010-08-09
Olivier
No

When I create a grid with 1000 rows, it lasts at least one minute the display the complete grid.

Is there something to tune the performance of grid?

Attached a zul page and 2 java classes to reproduce the problem.
Thanks,
Olivier

Discussion

  • Olivier

    Olivier - 2010-08-09

    The zul page

     
  • Olivier

    Olivier - 2010-08-09

    The Window class

     
  • Olivier

    Olivier - 2010-08-09

    The Value object class

     
  • Olivier

    Olivier - 2010-08-09

    Here is a link that reproduces the problem :

    http://74.207.231.121/bigtree/

     
  • jimmy shiau

    jimmy shiau - 2010-08-10

    Hi
    move grid.setHeight("300px"); to refresh

    sets your zk.xml like below

    <library-property>
    <name>org.zkoss.zul.grid.rod</name>
    <value>true</value>
    </library-property>

    turn on the rod of the grid

     
  • jimmy shiau

    jimmy shiau - 2010-08-10
    • status: open --> wont-fix-wont-fix
     
  • Henri Chen

    Henri Chen - 2010-08-24
    • status: wont-fix-wont-fix --> open-accepted
     
  • Henri Chen

    Henri Chen - 2010-08-24

    confirm as a bug. Original rod works with pure zul page only.

     
  • Henri Chen

    Henri Chen - 2010-08-24

    The given test code has issue, too.
    1. refresh() new an Grid without height so rod will not work. (Details please see Grid's javadoc)
    2. Shall setRowRenderer before setModel or the newest renderer is not used in rendering. (Detail please see Grid's javadoc)

     
  • Henri Chen

    Henri Chen - 2010-08-24

    Same issue in Listbox rod mode

     
  • Henri Chen

    Henri Chen - 2010-08-24

    Fixed since Aug. 24, 2010.

     
  • Henri Chen

    Henri Chen - 2010-08-24
    • milestone: 1083005 --> 5.0.3
    • status: open-accepted --> closed-fixed
     
  • Henri Chen

    Henri Chen - 2010-08-24
    • summary: Grid performance problem --> Grid rod does not work if new Grid with Java code
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks