Re: [Spam] RE: [SPAM] Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread Agha Mehdi
so this is what I am doing. it gives me "A term is undefined and has no
properties."
public function brigFiles_clickHandler(_comp:CheckBox):void
{
   var dp:Object = datagrid.dataProvider;
   var cursor:IViewCursor=dp.createCursor();
   while( !cursor.afterLast )
   {
Alert.show(cursor.current.select.toString());
cursor.moveNext();
   }
}










On Thu, Oct 15, 2009 at 10:15 AM, turbo_vb  wrote:

>
>
>
> Look at the dataProvider. You're using the "select" property of the
> items, so loop and look.
>
>
> -TH
>
> --- In flexcoders@yahoogroups.com , Agha
> Mehdi  wrote:
> >
> > Thanks guys. how do i get the list of all checked rows from the
> datagrid?
> >
> > On Thu, Oct 15, 2009 at 7:14 AM, Nick Middleweek n...@...wrote:
> >
> > >
> > >
> > > Ah ok... Thanks Tracy...
> > >
> > > Is that a bit like Application.application ?
> > >
> > >
> > >
> > >
> > > 2009/10/15 Tracy Spratt tr...@...
> > >
> > >>
> > >>
> > >> An item renderer is a component and has its own scope.
> "outerDocument"
> > >> is a reference to the renderer's parent document. You use it to
> access
> > >> public properties of the parent.
> > >>
> > >>
> > >>
> > >> Tracy Spratt,
> > >>
> > >> Lariat Services, development services available
> > >>
> > >
> > >
> > >
> > >
> >
>
>  
>


[Spam] RE: [SPAM] Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread turbo_vb

Look at the dataProvider.  You're using the "select" property of the
items, so loop and look.

-TH

--- In flexcoders@yahoogroups.com, Agha Mehdi  wrote:
>
> Thanks guys. how do i get the list of all checked rows from the
datagrid?
>
> On Thu, Oct 15, 2009 at 7:14 AM, Nick Middleweek n...@...wrote:
>
> >
> >
> > Ah ok... Thanks Tracy...
> >
> > Is that a bit like Application.application ?
> >
> >
> >
> >
> > 2009/10/15 Tracy Spratt tr...@...
> >
> >>
> >>
> >> An item renderer is a component and has its own scope.
"outerDocument"
> >> is a reference to the renderer's parent document. You use it to
access
> >> public properties of the parent.
> >>
> >>
> >>
> >> Tracy Spratt,
> >>
> >> Lariat Services, development services available
> >>
> >
> >
> >
> >
>





[Spam] RE: [SPAM] Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread turbo_vb

Really wouldn't advise using this type of in-line approach for a
checkBox itemRenderer.  Alex's blog shows a prefered manner:

http://blogs.adobe.com/aharui/item-renderers/


-TH

--- In flexcoders@yahoogroups.com, Agha Mehdi  wrote:
>
> it's giving me below error
> Description Resource Path Location Type
> Could not resolve  to a component implementation.
comp.mxml
> Flex_FB/src line 238 Flex Problem
>
>
>  editable="false" resizable="false" textAlign="center">
> 
> 
> 
> 
> 
> 
>
> Thanks
>
> On Thu, Oct 15, 2009 at 8:55 AM, Agha Mehdi aghaime...@... wrote:
>
> > Thanks guys. how do i get the list of all checked rows from the
datagrid?
> >
> >
> > On Thu, Oct 15, 2009 at 7:14 AM, Nick Middleweek n...@...wrote:
> >
> >>
> >>
> >> Ah ok... Thanks Tracy...
> >>
> >> Is that a bit like Application.application ?
> >>
> >>
> >>
> >>
> >> 2009/10/15 Tracy Spratt tr...@...
> >>
> >>>
> >>>
> >>> An item renderer is a component and has its own scope.
"outerDocument"
> >>> is a reference to the renderer's parent document. You use it
to access
> >>> public properties of the parent.
> >>>
> >>>
> >>>
> >>> Tracy Spratt,
> >>>
> >>> Lariat Services, development services available
> >>>
> >>
> >>
> >>
> >>
> >
> >
>




Re: [Spam] RE: [SPAM] Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread Agha Mehdi
it's giving me below error
Description Resource Path Location Type
Could not resolve  to a component implementation. comp.mxml
Flex_FB/src line 238 Flex Problem










Thanks

On Thu, Oct 15, 2009 at 8:55 AM, Agha Mehdi  wrote:

> Thanks guys. how do i get the list of all checked rows from the datagrid?
>
>
> On Thu, Oct 15, 2009 at 7:14 AM, Nick Middleweek wrote:
>
>>
>>
>> Ah ok... Thanks Tracy...
>>
>> Is that a bit like Application.application ?
>>
>>
>>
>>
>> 2009/10/15 Tracy Spratt 
>>
>>>
>>>
>>>  An item renderer is a component and has its own scope.  “outerDocument”
>>> is a reference to the renderer’s parent document.  You use it to access
>>> public properties of the parent.
>>>
>>>
>>>
>>> Tracy Spratt,
>>>
>>> Lariat Services, development services available
>>>
>>
>>
>>  
>>
>
>


Re: [Spam] RE: [SPAM] Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread Agha Mehdi
Thanks guys. how do i get the list of all checked rows from the datagrid?

On Thu, Oct 15, 2009 at 7:14 AM, Nick Middleweek wrote:

>
>
> Ah ok... Thanks Tracy...
>
> Is that a bit like Application.application ?
>
>
>
>
> 2009/10/15 Tracy Spratt 
>
>>
>>
>>  An item renderer is a component and has its own scope.  “outerDocument”
>> is a reference to the renderer’s parent document.  You use it to access
>> public properties of the parent.
>>
>>
>>
>> Tracy Spratt,
>>
>> Lariat Services, development services available
>>
>
>
>  
>


Re: [Spam] RE: [SPAM] Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread Nick Middleweek
Ah ok... Thanks Tracy...

Is that a bit like Application.application ?




2009/10/15 Tracy Spratt 

>
>
>  An item renderer is a component and has its own scope.  “outerDocument”
> is a reference to the renderer’s parent document.  You use it to access
> public properties of the parent.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>


RE: [SPAM] Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread Tracy Spratt
An item renderer is a component and has its own scope.  "outerDocument" is a
reference to the renderer's parent document.  You use it to access public
properties of the parent.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nick Middleweek
Sent: Thursday, October 15, 2009 7:17 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

 

  

Hey Angleo,

Just curious here but what's the outerDocument. prefix for on the change




2009/10/15 Angelo Anolin mailto:angelo_ano...@yahoo.com>
yahoo.com>

  

Agha,

 

You need to use Itemrenderer to render your checkbox control inside your
gridview:

 



  

  

  


 

and then in your script section, declare a function (i.e.
checkbox_changed())

 

public function checkbox_changed() :void
{
  Alert.show('Test');
}

When you check/uncheck your checkbox on the datagrid, the alert message
should show.

 

I hope this helps.

 

Angelo

 

 

 





Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread Nick Middleweek
Hey Angleo,

Just curious here but what's the outerDocument. prefix for on the change
event for?


Cheers,
Nick




2009/10/15 Angelo Anolin 

>
>
> Agha,
>
> You need to use Itemrenderer to render your checkbox control inside your
> gridview:
>
> 
>   
> 
>/>
> 
>   
> 
>
> and then in your script section, declare a function (i.e.
> checkbox_changed())
>
> public function checkbox_changed() :void
> {
>   Alert.show('Test');
> }
> When you check/uncheck your checkbox on the datagrid, the alert message
> should show.
>
> I hope this helps.
>
> Angelo
>
>
>


Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread Nick Middleweek
Hey Angleo,

Just curious here but what's the outerDocument. prefix for on the change



2009/10/15 Angelo Anolin 

>
>
> Agha,
>
> You need to use Itemrenderer to render your checkbox control inside your
> gridview:
>
> 
>   
> 
>/>
> 
>   
> 
>
> and then in your script section, declare a function (i.e.
> checkbox_changed())
>
> public function checkbox_changed() :void
> {
>   Alert.show('Test');
> }
> When you check/uncheck your checkbox on the datagrid, the alert message
> should show.
>
> I hope this helps.
>
> Angelo
>
>
>