My assumption was that you were wanting to update the underlying value
stored in your dataProvider - thus fixing the problem with the
rendering. Am I wrong? It looks a bit to me like your code is
correctly rendering what's stored in dataProvider, but clicking on
your checkbox doesn't actually _alter_ what's in dataProvider, which
is where your problem is coming from. And, randomly guessing, I'd
guess that needs to be done in dataProvider.

You say "Already being done as this is an inherited function." with
regards to calling your superclasses version of setValue(). Not sure I
understand how that happens in the code you supplied - inherited
functions aren't automatically called (except in the case of no-arg
constructors). You'd generally need to call:

// overriding function
function myFunction():Void
{
  // call parent implementation
  super.myFunction();
  // do extra stuff here
  . . .
}

to make sure your superclass gets a chance to act. But then I don't
know whether your superclass does anything sensible with setValue
either.

Don't really know what your setup is - just making a few guesses, so
may be way off-base!

Ian

On 2/20/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> Thanks for your respone.  Explain what you mean by, "underlying value" ?
>
>
> I am setting the checkbox to be checked or not by doing:
>
> if(item[getDataLabel()] == "Y") { cb.selected = true } else {
> cb.selected = false };
>
> >>   Perhaps you need to call the superclass version of
> >>setValue() somewhere in there?
>
> Already being done as this is an inherited function.  I am getting the
> label of the current cell and using that to select the checkbox. But
> this probably shouldn't be done inside this function as the setValue
> function is called every time the datagrid cell is interacted with.  Not
> sure how this is normally done, and how to do this better, this is my
> first experience with the CellRenderer API.  Thanks for any advice.
>
> Jason Merrill
> Bank of America
> Learning & Organizational Effectiveness
>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to