1. #1
    Ext User genobis's Avatar
    Join Date
    Nov 2008
    Posts
    10
    Vote Rating
    0
    genobis is on a distinguished road

      0  

    Default GridView Refresh event not mentioned in API docs.

    GridView Refresh event not mentioned in API docs.


    Hi there!

    Well, it's not a real bug. However, this refresh event (Events.Refresh) fired by GridView definitely deserves it's place in API documentation. It's very (very!) useful event, because it's the only way I found so far to get notified that:
    1) Data has been loaded and
    2) Store is ready and,
    3) View is ready.

    I can use it, for example, to apply custom styles to grid rows or set some initial grid selection (I've done keeping selection between pages). Or, if it's a part of some hidden internal GXT API and I shouldn't use it anyway, there should be another way to achieve that goals.

    Kind regards.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    to apply custom styles to grid rows
    You should not use that event for this. Refresh is not fired if you add an additional model for example. Its actually only fired if all data in the store changes at once and the "refresh" method get called.

  3. #3
    Ext User genobis's Avatar
    Join Date
    Nov 2008
    Posts
    10
    Vote Rating
    0
    genobis is on a distinguished road

      0  

    Default


    Quote Originally Posted by sven View Post
    You should not use that event for this. Refresh is not fired if you add an additional model for example. Its actually only fired if all data in the store changes at once and the "refresh" method get called.
    Yes, you are right, but in my app adding/removing rows always requires instant server interaction and store reloading, so it works for me.

    Anyway, even if I did that this way, I would still have to listen for some event that would allow me to do the initial job (eg. apply styles). And I'd also have to listen to some events that would let me know about add/remove. And at that point things would get ugly, because store fires such events, but GridView doesn't, so I'd not be notified when view is ready, thus unable to get to rows elements in the right time (I mean new row html element, for example).

Similar Threads

  1. GridView refresh event not firing properly
    By nukusmaximus in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Sep 2010, 4:01 PM
  2. API Docs
    By FlexIDX in forum Community Discussion
    Replies: 8
    Last Post: 2 May 2008, 12:00 PM
  3. GridView docs - Grid.getView()
    By danh2000 in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 12 Jul 2007, 8:16 AM
  4. Any particular reason why GridView was removed from the docs?
    By cesarulo in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 12 Jun 2007, 12:42 PM

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar