actually I'm after some other functionality onClick(). So, my target was to
create a generic headerRenderer that exposed a event. What I did was this
below for now
<mx:headerRenderer>
<mx:Component>
<mx:HBox>
<mx:Script>
<![CDATA[
import somepath.model.MyModel;
]]>
</mx:Script>
<mx:Label text="{ data.headerText }" />
<mx:CheckBox selected="{ MyModel.getInstance
().bShowAll}"
click="MyModel.getInstance().bShowAll =
!MyModel.getInstance().bShowAll" />
</mx:HBox>
</mx:Component>
</mx:headerRenderer>
in my case I want to 'show all' of something else. This works, but the
click on the checkbox doesn't "feel right", its slow in response due to the
binding stuffs firing all over.
DK
On 23 Mar 2007 14:37:04 -0700, Evan Gifford <[EMAIL PROTECTED]> wrote:
Sorry if you've already answered this, but are you trying to turn on
and off columns with that checkbox?
If so, I've created a component which displays the columns of a dataGrid
in a list with a checkbox next to them to enable/disable. Is that what
you're after?
-Evan
------------------------------
*From:* [email protected] [mailto:flexcompone
[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen
*Sent:* Friday, March 23, 2007 2:53 PM
*To:* [email protected]
*Subject:* Re: [flexcomponents] datagrid header with checkbox
thanks, been reading that. Seems like this approach is way off the
direction normally taken for renderers though, eh? Not to knock Ben mind
you. Can add checkboxes to a datagrid cell with out that, correct? So why
not headers?
oh...answering my other question...headers are rendered by
DataGridItemRenderer by default according to the docs.
DK
On 23 Mar 2007 13:31:04 -0700, *Darron J. Schall* <[EMAIL PROTECTED]>
wrote:
Check out
http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory/
-d
Douglas Knudsen wrote:
>
> How the heck to get a checkbox in the header of a data grid, eh? Let
> me re-phrase that some...a workable checkbox. I can create a custom
> renderer in AS to put one there, but can't click it at all. Anyone
> have a example or a nudge?
>
> --
> Douglas Knudsen
> http://www.cubicleman.com < http://www.cubicleman.com>
> this is my signature, like it?
>
>
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?