Other than rewriting the DataGrid, there aren't too many other ways.  I
don't know what you mean by sudden change of data or why there would be
a sudden change.  Maybe that can be dealt with.  You always have the
choice of actually stuffing new children into a VBox and not using
DataGrid.  Do you need DG's selection handling, column resizing etc?

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of arpan srivastava
Sent: Tuesday, December 12, 2006 7:53 PM
To: [email protected]
Subject: Re: [flexcomponents] how I can scroll the datagrid
automatically ?



Hi Alex,
    I tried to reduce the rowcount so that the datagrid is small but
when the datagrid scrolls to the end, user can see a sudden change of
data as i am scrolling the datagrid contents and shifting the datagrid
to first row. Is there any other way to make a ticker ?


----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, December 12, 2006 11:14:12 PM
Subject: RE: [flexcomponents] how I can scroll the datagrid
automatically ?



You may need to set the height of the Canvas, or override the
measuredHeight of the Canvas.

________________________________

From: flexcomponents@ yahoogroups. com [mailto:flexcompone
[EMAIL PROTECTED] com] On Behalf Of arpan srivastava
Sent: Tuesday, December 12, 2006 6:10 AM
To: flexcomponents@ yahoogroups. com
Subject: Re: [flexcomponents] how I can scroll the datagrid
automatically ?



Hi Alex,
       I have done as per your first reply. I took a datagrid and then
inserted it into a canvas. It is working fine but, if I put any control
below this canvas, the control places itself taking into account the
height of datagrid also.


----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED] com>
To: flexcomponents@ yahoogroups. com
Sent: Tuesday, December 12, 2006 12:07:14 PM
Subject: RE: [flexcomponents] how I can scroll the datagrid
automatically ?



So the idea is to create the DG one row taller than the VBox, put it in
the VBox and move the DG until you have moved an entire row, then move
the DG back and actually scroll it one row.

________________________________

From: flexcomponents@ yahoogroups. com [mailto:flexcompone
[EMAIL PROTECTED] com] On Behalf Of arpan srivastava
Sent: Monday, December 11, 2006 7:59 PM
To: flexcomponents@ yahoogroups. com
Subject: Re: [flexcomponents] how I can scroll the datagrid
automatically ?



I was thinking of removing the datagrid, instead creating a Vbox and
then populating it with hbox which will represent the row and then
creating a canvas of the size of a single hbox, but what if there are
many records in the dataprovider ?


----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED] com>
To: flexcomponents@ yahoogroups. com
Sent: Tuesday, December 12, 2006 12:16:35 AM
Subject: RE: [flexcomponents] how I can scroll the datagrid
automatically ?



Changing the DataProvider is expensive.  You should only do it if the
entire data set is in-fact changing (new query or something).  Otherwise
it is better to modify a single dataprovider.  Then, if there multiple
rows in the dataprovider, you can scroll using verticalScrollPosit ion.
 
The DG only scrolls by row.  If you need pixel-level scrolling, I have
suggested that you put the DG in a Canvas and scroll the DG in the
canvas.  Not sure if anyone has made this work yet.
 
-Alex

________________________________

From: flexcomponents@ yahoogroups. com [mailto:flexcompone
[EMAIL PROTECTED] com] On Behalf Of arpan srivastava
Sent: Monday, December 11, 2006 5:52 AM
To: Flex Components
Subject: [flexcomponents] how I can scroll the datagrid automatically ?



Hi all,
          I have to create a datagrid  with one row and row will scroll
automatically and display data one by one,  that is like a ticker. now i
what i did is created a timer in which i am changing the datatprovider
after certain time interval :

private function timerEvent(event: TimerEvent) :void{
            if(dataCount < dataProvider. length){
                dG.dataProvider = dataProvider[ dataCount+ +];
            }else{
                dataCount = 0;
            }
            dGinvalidateDisplay List();
}

it's working fine, but i need to smooth scrolling. is there anyway I can
scroll the datagrid automatically. Is there any other way I can do this
? 


________________________________

Access over 1 million songs - Yahoo! Music Unlimited.
<http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yah
oo.com/unlimited/>  



________________________________

Want to start your own business? Learn how on Yahoo! Small Business.
<http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-inde
x>  



________________________________

Any questions? Get answers on any topic at Yahoo! Answers
<http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMz
OTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx> . Try it now. 



________________________________

Everyone is raving about the all-new Yahoo! Mail beta.
<http://us.rd.yahoo.com/evt=45083/*http://advision.webevents.yahoo.com/m
ailbeta>  

 

Reply via email to