Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to get scroll events or table row draw events
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
RonS  
View profile  
 More options May 29 2006, 12:34 am
From: "RonS" <rsmith7...@gmail.com>
Date: Sun, 28 May 2006 21:34:35 -0700
Local: Mon, May 29 2006 12:34 am
Subject: How to get scroll events or table row draw events
I want to implement a scrolling Grid that has a large number of rows
and fetches the content of the rows asynchronously as needed from the
server.

I constructed a Grid widget within a ScrollPane, which works great.
I'd like to either get events for when table rows need to be drawn, or
when the scroll pane is scrolled to a new position so I can fetch new
data from the server if needed.

I see ScrollListener and SourcesScrollEvents interfaces in the gwt
reference, but I don't see anything that implements the
SourcesScrollEvents interface, which is what I think I need.
Is there a way to register a ScrollListener with a ScrollPane?

Is there a way to get notified prior to a row/cell of a table needing
to get rendered?  I tried overriding the prepareCell function, but that
didn't seem to do it.

Thanks
Ron


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
crumbledust  
View profile  
 More options May 29 2006, 3:10 am
From: "crumbledust" <family.entwi...@btinternet.com>
Date: Mon, 29 May 2006 00:10:37 -0700
Local: Mon, May 29 2006 3:10 am
Subject: Re: How to get scroll events or table row draw events
You appear to be right (assuming the documentation is correct).
ScrollPanel doesn't implement SourcesScrollEvents, which means you
can't add a scroll listener: that sounds like a bug.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joel Webber  
View profile  
 More options May 30 2006, 5:38 pm
From: "Joel Webber" <j...@google.com>
Date: Tue, 30 May 2006 17:38:27 -0400
Local: Tues, May 30 2006 5:38 pm
Subject: Re: How to get scroll events or table row draw events

It is indeed!  Adding this to the issues list.

You can work around this temporarily by subclassing ScrollPanel and adding
an implementation of onBrowserEvent(), like so:

    public void onBrowserEvent(Event event) {
      if (DOM.eventGetType(event) == Event.ONSCROLL) {
        // Do something, using getScrollPosition().
      } else {
        super.onBrowserEvent(event);
      }
    }

joel.

On 5/29/06, crumbledust <family.entwi...@btinternet.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
grafflerab@gmail.com  
View profile  
 More options Jun 22 2006, 11:59 am
From: "graffle...@gmail.com" <graffle...@gmail.com>
Date: Thu, 22 Jun 2006 08:59:13 -0700
Local: Thurs, Jun 22 2006 11:59 am
Subject: Re: How to get scroll events or table row draw events
I tried Joel Webber's approach... it didn't work.  my subclass of
ScrollPanel never got it's "onBrowserEvent" called.

   - Bob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
colesbury@gmail.com  
View profile  
 More options Jun 22 2006, 3:47 pm
From: "colesb...@gmail.com" <colesb...@gmail.com>
Date: Thu, 22 Jun 2006 12:47:24 -0700
Local: Thurs, Jun 22 2006 3:47 pm
Subject: Re: How to get scroll events or table row draw events
Bob:
It took me a while to realize that you have to call
scrollPanel.sinkEvents(Event.ONSCROLL)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
grafflerab@gmail.com  
View profile  
 More options Jun 22 2006, 7:34 pm
From: "graffle...@gmail.com" <graffle...@gmail.com>
Date: Thu, 22 Jun 2006 23:34:22 -0000
Local: Thurs, Jun 22 2006 7:34 pm
Subject: Re: How to get scroll events or table row draw events
Great...thanks...it works!!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
djscholten@mitre.org  
View profile  
 More options Jun 27 2006, 4:55 pm
From: "djschol...@mitre.org" <djschol...@mitre.org>
Date: Tue, 27 Jun 2006 13:55:17 -0700
Local: Tues, Jun 27 2006 4:55 pm
Subject: Re: How to get scroll events or table row draw events
This seems very useful to me.  I want to do something similar where
have a grid, say 4x4, and I want to use the scroll bar as shown with
the onBrowserEvent, except that it wouldn't actually scroll the grid,
but populate it with new data to simulate scrolling.  My question is,
how can I get the scroll bar to appear and register scroll events if
its not really scrolling?  Basically, I want the scroll bar just so I
can call the onBrowserEvent() method with code to repopulate the grid.
Any suggestions?

Thanks,
Dan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »