[SOLVED?] Porting GridView3 to 1.1

  • Is there any way GridView3 could be ported to 1.1 with acceptable loss of functionality? Ext 2.0 seems a ways out and we are in dire need of faster Grid rendering.


  • Those functions don't exist in 2.0. That GridPanel handles it.


  • Can i view your code? I have problem with "adjust the childNode indexes".

    But i succeful backport GroupingView into 1.1 :) nice.


  • I'm sure I didn't do some things properly in the layout() method but the following works for me in the 1.1 branch.

    Changes:

    Replace contents of Ext 1.1 GridView with contents of Ext 2.0 GridView
    Replace .store with .dataSource wherever used in reference to a grid
    Alter the master template to include topbar and bottombar divs
    Create headerPanel and footerPanel elements in the initElements() method and adjust the childNode indexes to accommodate for the topbar and bottombar
    Create getHeaderPanel(), getFooterPanel() and getBodyTable() methods
    Account for header/footer heights in the layout() method so GridPanel's work


    Like I said, it may not be the proper way to do it but it seems to be sufficient for our needs. We'll see if I run into any other issues.

    NOTE: You'll need to be sure to add the Ext 2.0 grid.css styles to your stylesheet (ext-all.css, etc.) as well as copy all of the related Ext 2.0 grid images to the proper folder under images/default/grid.


  • It definitely could be done. The Grid->GridPanel differences are there but it shouldn't be terribly difficult. Having you tried plugging it into the 1.1 code?


  • Hmm, is there any way to simulate the header and footer panel in GridView3 so those methods work? I'm going to play around again today to see if I can get something going.


  • Well, I did have luck getting the header / footer in there but there's other quirks and issues that would probably take me a while to iron out. We're going to look into upgrading to pre-alpha of Ext 2.0 but it would be great if GridView3 could be ported to 1.1 in some limited fashion by the Ext team.

    Thanks for consideration!


  • I can use grid3 form 2.0 in 1.1?


  • Ok, I got a simple grid to render with GridView3, however, any calls to getHeaderPanel and getFooterPanel bomb out. I'll take another peek tomorrow but if you have any quick suggestions I'd appreciate it - thanks!


  • I have not yet tried - I'll take a stab at it and let you know what I come up with. Thanks!







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [SOLVED?] Porting GridView3 to 1.1 , Please add it free.