If it works stick with it J
I ended off calling setValue on the column
headerCell to update the
header, and am triggering a modelChanged updateAll
to get the grid
to redraw.
I will try setting the headerText and the
invalidate() again in case
I made an error.
- viraf
--- In [email protected],
Matt Chotin <[EMAIL PROTECTED]> wrote:
> I think you should still set headerText and
it will call setValue
for you
> and force the redraw. I don't know if
calling setValue yourself
will work.
>
>
>
> Not sure why invalidate() isn't
working. This is undocumented but
you could
> try calling updateControl() on the DG.
>
>
>
> Matt
>
>
>
> _____
>
> From: [email protected]
[mailto:[email protected]]
> Sent: Tuesday, April 26, 2005 6:36 PM
> To: [email protected]
> Subject: [flexcoders] Re: DataGrid Column
updates
>
>
>
>
> The invalidate did not result in the view to
be updated until some
> action such as scrolling took place.
How can I have the grid
redraw
> itself. I tried redraw(true) but that
did not seem to work either.
>
> Thanks.
>
> --- In [email protected],
"viraf_bankwalla"
> <[EMAIL PROTECTED]> wrote:
> >
> > Thanks -
> >
> > 1. As I have a headerRenderer does
this mean that I should
> directly
> > call setValue ?
> >
> > 2. Calling invalidate will result in a
redraw of the entire
grid.
> > Is there a way to just redraw the
column's cells. When should
one
> > call invalidate() vs dispatching a
modelChanged updateAll on the
> > dataProvider ?
> >
> > Thanks
> >
> > - viraf
> >
> >
> >
> > --- In [email protected],
Matt Chotin <[EMAIL PROTECTED]>
> wrote:
> > > 1.
You can simply set the headerText on the DataGridColumn
> > > 2.
Call invalidate() on the DataGrid
> > > 3.
same as 2 (though you might need to reset the
headerText on
> > the
> > > column for the header to
redraw). Jim's suggestion while it
may
> > work is
> > > completely undocumented and thus
unsupported.
> > >
> > >
> > >
> > > Matt
> > >
> > >
> > >
> > > _____
> > >
> > > From: [email protected]
> > [mailto:[email protected]]
> > > Sent: Tuesday, April 26, 2005 10:22
AM
> > > To: [email protected]
> > > Subject: [flexcoders] Re: DataGrid
Column updates
> > >
> > >
> > >
> > >
> > > Any suggestions ?
> > >
> > > --- In [email protected],
"viraf_bankwalla"
> > > <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi,
> > > >
> > > > 1. What is the best way
to have a column's headerRenderer
> > update
> > > its
> > > > value (i.e. call
setValue).
> > > >
> > > > 2. Have a column update
its conthent - i.e. each of the
> column
> > rows
> > > > update themselves - i.e. call
setValue.
> > > >
> > > > 3. Have the column
header and cells update themselves.
> > > >
> > > > Thanks.
> > >
> > >
> > >
> > >
> > >
> > >
> > > _____
> > >
> > > Yahoo! Groups Links
> > >
> > > * To
visit your group on the web, go to:
> > > http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/>
> > > <http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/>
>
> > >
> > > * To
unsubscribe from this group, send an email to:
> > > [EMAIL PROTECTED]
> > >
<mailto:[EMAIL PROTECTED]
> > subject=Unsubscribe>
> > >
> > > *
Your use of Yahoo! Groups is subject to the Yahoo!
> > > <http://docs.yahoo.com/info/terms/
<http://docs.yahoo.com/info/terms/>
>
> Terms of Service.
>
>
>
>
>
>
> _____
>
> Yahoo! Groups Links
>
> * To visit your
group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/>
>
> * To
unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]
subject=Unsubscribe>
>
> * Your use of
Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>
Terms of Service.
Yahoo! Groups Links
|