1. #11
    Ext User
    Join Date
    Jul 2008
    Location
    Swindon, UK
    Posts
    73
    Vote Rating
    4
    Kango_V is on a distinguished road

      0  

    Default


    Righto, i'll get that uploaded to our repo now.
    I'm still on a learning curve with GXT, so this should be fun.

    Again, really good job mate. One of our users wants to buy you a beer

  2. #12
    Ext User
    Join Date
    Jul 2008
    Location
    Swindon, UK
    Posts
    73
    Vote Rating
    4
    Kango_V is on a distinguished road

      0  

    Default


    Just one more thing: If you used this with check boxes, would the gris cache those that are checked, ready for a "Save" action or would you recommend catching the event and updating the row on the server straight away?

  3. #13
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    Kango_V,

    The CheckBoxSelectionModel plugin (checked etc) would need to be modified to support the remembering of checked state similar to the ActiveGridSelectionModel.

    You could either keep a local index backed hash of checked rows or send them back to the server as you suggest (the server side would be slow though).

    It wouldn't take me long (nor is it that hard) to create an ActiveCheckBoxSelectionModel.

    I'm available for a fee if you wish

  4. #14
    Ext User
    Join Date
    Jul 2008
    Location
    Swindon, UK
    Posts
    73
    Vote Rating
    4
    Kango_V is on a distinguished road

      0  

    Default


    Yeah, that's what I thought. We may have a use case for this when our app has gone live.
    I'm building a Production Services system to track fims, expenses, agreements, jobs, events, contracts etc etc etc.

    It's getting bigger by the day. Also I've got to implement expenses into peoplesoft, contacts into Salesforce and invoices into Mapics/XA COM so the checkboxes could be useful. They keep us busy

    Hehe, I'm still trying to get my boss to pay for an ExtGWT license.

    Out of interest, what OS/IDE do you use to develop this stuff?

  5. #15
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by Kango_V View Post
    Out of interest, what OS/IDE do you use to develop this stuff?
    Windows XP and Eclipse 3.4 - but any OS/IDE would have worked as nothing about the OS or IDE was helpful in doing this work.

  6. #16
    Ext User
    Join Date
    Jul 2008
    Location
    Swindon, UK
    Posts
    73
    Vote Rating
    4
    Kango_V is on a distinguished road

      0  

    Default


    Hehe, yep. I use Ubuntu and Eclipse 3.4 here. I'm just being the nosy bugger that I am LOL.

  7. #17
    Sencha User
    Join Date
    Nov 2008
    Posts
    38
    Vote Rating
    0
    kht is on a distinguished road

      0  

    Default bugs

    bugs


    hi grant!

    this is really a great work!
    could this become part of gxt itself? would be great .

    maybe i am using it wrong, but i tried with a datasource which has 0 or 1 entry. this made it end up in an endless loop inside updateRows...

    Code:
           if (realStore.getCount() < realStorePageSize) {
                refresh();
                return;
            }
    refresh is always called and reloads... storeDataChanged(StoreEvent<M> se) is called after reload is finished and calls updateRows.... which itself calls refresh....

    am i doing something wrong or is it a bug with smaller datasets?
    anyhow: thanks for your great work!

    regards, kht

  8. #18
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by kht View Post
    this is really a great work!
    could this become part of gxt itself? would be great .
    Thanks - I did this to see even if it was indeed possible to extend GXT Grid ...and it was ;-)

    An official GXT Active/Live Grid is being targetted for after 2.0 - so it is unknown if this ActiveGrid will be taken up. There are better ways to do what I have done so I'm fairly sure it won't be, but its a start

    Quote Originally Posted by kht View Post
    maybe i am using it wrong, but i tried with a datasource which has 0 or 1 entry. this made it end up in an endless loop inside updateRows...
    Ahh, yes this is expected. I never did consider someone using an active grid with no rows.

    Quote Originally Posted by kht View Post
    am i doing something wrong or is it a bug with smaller datasets?
    This is a bug. In fact it probably doesn't work very well at all with a small number (or zero) rows.

    Feel free to have a tinker with the code - it shouldn't be too hard to fix the bug and get it working with large and small rows.

  9. #19
    Ext GWT Premium Member les's Avatar
    Join Date
    Sep 2008
    Posts
    48
    Vote Rating
    0
    les is on a distinguished road

      0  

    Default


    Hi Grant,

    Any updates on ActiveGrid?

    Are you planning on completing this? Or, is the plan to wait for a post 2.0+ version in GXT?

    Thanks for all your work and effort on this widget, it is really important, IMO.

  10. #20
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    I'll happily add patches or fixes - but as a live grid equiv will be added eventually, there is no real point in me spending massive amounts of hours on it.

    Cheers,
    Grant