Re: [flexcoders] Checkbox in grid

2012-12-07 Thread Alex Harui
Renderers are recycled.  There are only enough of them as there are visible 
rows.   Renderers get re-assigned to different dataprovider items as you 
scroll.  Therefore, every visible aspect of the renderer should be tied to the 
dataprovider item.  And that’s why reading back the value from the renderer 
won’t work.  There isn’t a renderer for off-screen rows.


On 12/7/12 12:14 PM, "Davidson, Jerry"  wrote:






I guess I’m just not getting it.  The datagrid (id=dg2) has a dataProvider.  
Each column in the grid is associated with one element in the dataProvider 
except for the renderer where the checkbox is.  That is in a renderer because 
based on other fields it will be either enabled or not.

After a button is pressed, a routine is invoked that will loop through the 
dataProvider source to see if the checkbox were clicked.  What I don’t see is 
how to connect the renderer to the dataProvider checkbox field.  Any reference 
to it causes a “can’t do that to a null object” message.

I added another field to the VO and in the renderer I can  change the value of 
a Boolean such that it is true if the box were checked.  This was done by 
adding a “change” event to the renderer.  Since I could change the value of the 
field I don’t see why I couldn’t change the value of the checkbox field.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Friday, December 07, 2012 1:29 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Checkbox in grid



Usually the checkbox changes something, either in the selection model or the 
data model, and you loop over that model.


On 12/6/12 7:58 AM, "Davidson, Jerry"  wrote:






I have a check box in an advancedatagrid along with other fields.  They all 
show up as does the checkbox.  I can check the box(es).  There is a button that 
will then process the selected records.

I start a loop on the grid, but I don’t know where to go from there.  The two 
things I want to do is 1) if the row is checked, add it to an array for further 
processing and 2) when coming into the array clear any checks still in there 
from the last time.

The user will click on array1 and the data is used to populate array2 with 
details.  Array2 also has the checkbox in an itemrenderer and below it a 
process button.  You click the records you want processed then the button to 
build an array of selected records that are passed on for further processing.

The array code looks like this:
   
   
 

 
more columns…

The processing button code looks like this:
   // bottom grid clicked
   var dg2AC:ArrayCollection = new ArrayCollection();

 for each (var obj:Object in dg2.dataProvider)
  {
   if (obj.select.selected)
{
  dg2AC.addItem(obj);
}
  }

 if (dg2AC.length == 0)
   return;

  (new UserAAInsertEvent(dg2AC as UserAAInsertVO)).dispatch();

I’ve spent the last hour reviewing blogs and such, but can’t seem to find the 
right stuff.






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] Checkbox in grid

2012-12-07 Thread Davidson, Jerry
I guess I'm just not getting it.  The datagrid (id=dg2) has a dataProvider.  
Each column in the grid is associated with one element in the dataProvider 
except for the renderer where the checkbox is.  That is in a renderer because 
based on other fields it will be either enabled or not.

After a button is pressed, a routine is invoked that will loop through the 
dataProvider source to see if the checkbox were clicked.  What I don't see is 
how to connect the renderer to the dataProvider checkbox field.  Any reference 
to it causes a "can't do that to a null object" message.

I added another field to the VO and in the renderer I can  change the value of 
a Boolean such that it is true if the box were checked.  This was done by 
adding a "change" event to the renderer.  Since I could change the value of the 
field I don't see why I couldn't change the value of the checkbox field.

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Friday, December 07, 2012 1:29 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Checkbox in grid



Usually the checkbox changes something, either in the selection model or the 
data model, and you loop over that model.


On 12/6/12 7:58 AM, "Davidson, Jerry"  wrote:





I have a check box in an advancedatagrid along with other fields.  They all 
show up as does the checkbox.  I can check the box(es).  There is a button that 
will then process the selected records.

I start a loop on the grid, but I don't know where to go from there.  The two 
things I want to do is 1) if the row is checked, add it to an array for further 
processing and 2) when coming into the array clear any checks still in there 
from the last time.

The user will click on array1 and the data is used to populate array2 with 
details.  Array2 also has the checkbox in an itemrenderer and below it a 
process button.  You click the records you want processed then the button to 
build an array of selected records that are passed on for further processing.

The array code looks like this:

   
 

 
more columns...

The processing button code looks like this:
// bottom grid clicked
var dg2AC:ArrayCollection = new ArrayCollection();

 for each (var obj:Object in dg2.dataProvider)
  {
   if (obj.select.selected)
{
  dg2AC.addItem(obj);
}
  }

 if (dg2AC.length == 0)
   return;

  (new UserAAInsertEvent(dg2AC as UserAAInsertVO)).dispatch();

I've spent the last hour reviewing blogs and such, but can't seem to find the 
right stuff.





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui



Re: [flexcoders] Checkbox in grid

2012-12-06 Thread Alex Harui
Usually the checkbox changes something, either in the selection model or the 
data model, and you loop over that model.


On 12/6/12 7:58 AM, "Davidson, Jerry"  wrote:






I have a check box in an advancedatagrid along with other fields.  They all 
show up as does the checkbox.  I can check the box(es).  There is a button that 
will then process the selected records.

I start a loop on the grid, but I don’t know where to go from there.  The two 
things I want to do is 1) if the row is checked, add it to an array for further 
processing and 2) when coming into the array clear any checks still in there 
from the last time.

The user will click on array1 and the data is used to populate array2 with 
details.  Array2 also has the checkbox in an itemrenderer and below it a 
process button.  You click the records you want processed then the button to 
build an array of selected records that are passed on for further processing.

The array code looks like this:

   
 

 
more columns…

The processing button code looks like this:
// bottom grid clicked
var dg2AC:ArrayCollection = new ArrayCollection();

 for each (var obj:Object in dg2.dataProvider)
  {
   if (obj.select.selected)
{
  dg2AC.addItem(obj);
}
  }

 if (dg2AC.length == 0)
   return;

  (new UserAAInsertEvent(dg2AC as UserAAInsertVO)).dispatch();

I’ve spent the last hour reviewing blogs and such, but can’t seem to find the 
right stuff.






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Checkbox

2012-01-18 Thread Alex Harui
See the itemrenderer posts on my blog


On 1/18/12 2:08 AM, "abhinay.dronamraju"  wrote:






Hi I am new to flex and I am not able to figure out how to stop checkboxes from 
randomly getting selected in a datagrid. here is the code I have so far. Thanks


http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="550" height="400"
creationComplete="initDataGridData()"
>





























































































































































































--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] Checkbox on Image

2010-08-13 Thread Gregor Kiddie
Sit them both in a Canvas and position them correctly, or write your own
custom component based off UIComponent and deal with the layout
yourself.

 

Gk.



Re: [flexcoders] CheckBox in TileList

2010-08-12 Thread Alex Harui
You might be able to borrow code from my DataGrid examples on my blog.


On 8/12/10 6:01 AM, "Christophe"  wrote:






Hello,

How to add chekbox in a Tile List, and how to get the values of the check box 
in the main program ?

Thank you,
Christophe,






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Fernando Wermus
Oleg,
Thanks! I don't have Flex 4 so I cant try by this way. I would add the
selected attribute to the VO.


On Tue, Apr 27, 2010 at 5:53 PM, Oleg Sivokon  wrote:

>
>
> Sorry, I've got that one wrong :)
>
> public override function set data(value:Object):void
> {
> this.checkBox.checked =  this.parentDocument.amIChecked(this);
> super.data = value;
> }
>
>  
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: [flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Oleg Sivokon
Sorry, I've got that one wrong :)

public override function set data(value:Object):void
{
this.checkBox.checked =  this.parentDocument.amIChecked(this);
super.data = value;
}


Re: [flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Oleg Sivokon
http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/spark/components/DataGroup.html#itemRendererFunction
( this is Flex 4, it didn't exist in Flex 3 )

But, no, it shouldn't work like that out of the box because renderers are
reused, when the list based control lays out a renderer it may use an old
one (since flex controls are in general very heavy, and it would be a huge
waste of resources to create them every time anew, or let you have a lot of
them in memory at a time). So, list based controls create the number of
visible renderers + 2-8 additional renderers for cases like scrolling.

If there aren't to many renderers, you could tell a parentDocument from
inside the item renderer, if the CB is checked, and then once the list
scrolls, the renderer would have it's data property reset, then, it could
check against parent document, and if it's index is registered as checked,
it would set the CB to checked, else, it would uncheck it.

Think of something like this:

public override function set data(value:Object):void
{
if ( this.parentDocument.amIChecked( this ) this.checkBox.checked = true;
else this.checkBox.checked = true;
super.data = value;
}

private function cb_clickHandler(event:MouseEvent):void
{
this.parentDocument.checkMe( this, (event.currentTarget as
CheckBox).checked);
}

/* parent document */

public function amIChecked(renderer:ItemRenderer):Boolean
{
return this._allCheckedArray[dg.itemIndex(renderer)];
}

public function checkMe(renderer:ItemRenderer, checked:Boolean):void
{
return this._allCheckedArray[dg.itemIndex(renderer)] = checked;
}


Re: [flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Fernando Wermus
Oleg,
I cant associate the state with the data, and I cant find any info
about itemRendereFunction. Do you have any link about it? According to my
code, I would think this just should happen.

I re write down my code:








On Tue, Apr 27, 2010 at 3:10 PM, Oleg Sivokon  wrote:

>
>
> Hi, the list based controls may reuse the item renderers, however they
> might not be aware of the changes that had happened to them. Normally you
> would store the state with the data which the renderer has to display. So
> that once the data is reset, the render appearance would reset with it. If,
> for whatever reason you cannot store the state of the renderer with the
> data, you would have to store the references to either manage the how the
> item renderers are created (by using the itemRendereFunction for example),
> or update the display of the control whenever the new (or an old new) item
> renderer is added - IMO complicated.
>
>  
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: [flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Oleg Sivokon
Hi, the list based controls may reuse the item renderers, however they might
not be aware of the changes that had happened to them. Normally you would
store the state with the data which the renderer has to display. So that
once the data is reset, the render appearance would reset with it. If, for
whatever reason you cannot store the state of the renderer with the data,
you would have to store the references to either manage the how the item
renderers are created (by using the itemRendereFunction for example), or
update the display of the control whenever the new (or an old new) item
renderer is added - IMO complicated.


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
>
>
>


Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread 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






From: Agha Mehdi 
To: flexcoders@yahoogroups.com
Sent: Thursday, 15 October, 2009 1:19:22
Subject: [flexcoders] Checkbox in Datagrid

  
Hi, 

I have a datagrid column with checkbox in it. how do i run a process when the 
checkbox state is changed.



Thanks

Agha



  

RE: [flexcoders] checkBox event

2009-06-16 Thread Jake Churchill
Look at the Change event:

 

http://livedocs.adobe.com/flex/3/langref/mx/controls/Button.html#event:chang
e 

 

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
  http://www.cfwebtools.com
402-408-3733 x103

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markflex2007
Sent: Monday, June 15, 2009 1:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkBox event

 






Hi,

I use the follow, I can get the data before it changed

this.addEventListener(MouseEvent.CLICK , onChnage);

which event the checkbox will send out after it changed so I can get 
the updated value.

Thanks



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.70/2177 - Release Date: 06/15/09
05:54:00



Re: [flexcoders] checkbox and text input

2009-03-20 Thread Paresh M More
private function ValidateIP():Boolean
{
// Validate IP Address
var pattern:RegExp =
/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/;
 if ( pattern.exec(String(ti_ipAddress.text)) == null )
  {
Alert.show("Please Enter a Valid IP Address");
return false;
  }
else
return true;
}

This function would tell whether the IP is valid or invalid,

Now on the Combobox, u can write a function on Change event and looks it
would run


-- 
Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com
On Fri, Mar 20, 2009 at 7:01 AM, Dieyana Abu Bakar wrote:

>   oh...can it been done?i have post this questions everywhere and none of
> them is answered.i'm stuck with both of this.but i think the checkbox part i
> can try to do it.but for the input part(when user input a text,it will
> search for that particular text) ,i don't know.could you show me?
>
>  --
> *From:* Tracy Spratt 
> *To:* flexcoders@yahoogroups.com
> *Sent:* Tuesday, March 17, 2009 9:21:28 PM
> *Subject:* RE: [flexcoders] checkbox and text input
>
>   That task has several parts.  Which have you done successfully and which
> do you need help with?
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>  --
>
> *From:* flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ]
> *On Behalf Of *diana_usim
> *Sent:* Tuesday, March 17, 2009 4:34 AM
> *To:* flexcod...@yahoogro ups.com
> *Subject:* [flexcoders] checkbox and text input
>
>
>
> hye
>
> i've got a problem to build my checkbox.i have a checkbox with label "IP
> address" and a text input beside it.
>
> i want to be able to input any IP address and when i click the checkbox
> button it will filter the datagrid according to IP address input
> earlier.it like a combination of 'search' and checkbox.but i don't know
> how to do this.
>
> can you show me how to work on this one??i'm ready to learn form the
> expert!!
>
>
>  
>


RE: [flexcoders] checkbox and text input

2009-03-20 Thread Tracy Spratt
Certainly this can be done.  It is not difficult, it just has several parts.
Make sure each step works before going on to the next.

*   Get your data
*   Put it in an ArrayCollection
*   Populate the dataGrid with that Array collection
*   Create a filter, using a hard coded IP address
*   Create the checkbox
*   In the click event handler of the CheckBox, Apply the filter if it
is "selected".  Remove the filter if it is not.
*   Add the IP textInput control
*   Change the filter to use the value in the TextInput

 

That is it.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dieyana Abu Bakar
Sent: Thursday, March 19, 2009 9:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] checkbox and text input

 

oh...can it been done?i have post this questions everywhere and none of them
is answered.i'm stuck with both of this.but i think the checkbox part i can
try to do it.but for the input part(when user input a text,it will search
for that particular text) ,i don't know.could you show me?

 

  _  

From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 17, 2009 9:21:28 PM
Subject: RE: [flexcoders] checkbox and text input

That task has several parts.  Which have you done successfully and which do
you need help with?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro ups.com <http://ups.com/>  [mailto:
flexcod...@yahoogro ups.com ] On Behalf Of diana_usim
Sent: Tuesday, March 17, 2009 4:34 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] checkbox and text input

 

hye

i've got a problem to build my checkbox.i have a checkbox with label "IP
address" and a text input beside it.

i want to be able to input any IP address and when i click the checkbox
button it will filter the datagrid according to IP address input earlier.it
<http://earlier.it/>  like a combination of 'search' and checkbox.but i
don't know how to do this.

can you show me how to work on this one??i'm ready to learn form the
expert!!

 





Re: [flexcoders] checkbox and text input

2009-03-19 Thread Dieyana Abu Bakar
oh...can it been done?i have post this questions everywhere and none of them is 
answered.i'm stuck with both of this.but i think the checkbox part i can try to 
do it.but for the input part(when user input a text,it will search for that 
particular text) ,i don't know.could you show me?





From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 17, 2009 9:21:28 PM
Subject: RE: [flexcoders] checkbox and text input


That task has several parts.  Which have you done successfully and which do you 
need help with?
 
Tracy Spratt,
Lariat Services, development services available



From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of diana_usim
Sent: Tuesday, March 17, 2009 4:34 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] checkbox and text input
 
hye

i've got a problem to build my checkbox.i have a checkbox with label "IP 
address" and a text input beside it.

i want to be able to input any IP address and when i click the checkbox button 
it will filter the datagrid according to IP address input earlier.it like a 
combination of 'search' and checkbox.but i don't know how to do this.

can you show me how to work on this one??i'm ready to learn form the expert!!



  

RE: [flexcoders] Checkbox issue

2009-03-17 Thread Tracy Spratt
Look to see if CheckBox supports the "valueCommitted" event.  That fires
when the selection is changed programmatically, but click and change only
fire on user interaction.

 

Be careful to check for nulls when using this event though.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of secrit.service
Sent: Tuesday, March 17, 2009 2:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox issue

 

Hi all,

I have a checkbox (chkMyCheckbox) and added an eventlistener to it.

chkMyCheckbox.addEventListener(Event.CHANGE, checkBoxChangeHandler);

In the changeHandler I peform the necessary tasks :

private funtion checkBoxChangeHandler (evt:Event):void {
 if (chkMyCheckbox.selected) {
  lblMyLabel.text = "Checkbox marked";
 } else {
  lblMyLabel.text = "Checkbox unmarked";
}
}

Suppose I have a button btnMyButton which, when clicked, changes the state
of my checkbox. In the mean time I also want the text of lblMyLabel to be
changed. I supposed I could write 

private function btnMyButtonClicked() {
   if (chkMyCheckbox.selected) {
  chkMyCheckbox.selected = false;
 } else {
  chkMyCheckbox.selected = true;
} 
}

and by setting the state of the checkbox programmatically also the
checkBoxChangeHandler would be executed.
But this doesn't seem to work. How can i catch this event anyhow?

Thanks

 

 





RE: [flexcoders] checkbox and text input

2009-03-17 Thread Tracy Spratt
That task has several parts.  Which have you done successfully and which do
you need help with?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of diana_usim
Sent: Tuesday, March 17, 2009 4:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox and text input

 

hye

i've got a problem to build my checkbox.i have a checkbox with label "IP
address" and a text input beside it.

i want to be able to input any IP address and when i click the checkbox
button it will filter the datagrid according to IP address input earlier.it
like a combination of 'search' and checkbox.but i don't know how to do this.

can you show me how to work on this one??i'm ready to learn form the
expert!!





RE: [flexcoders] checkbox itemEditor in DataGrid

2009-01-30 Thread Tracy Spratt
Have the renderer dispatch a bubbling event on change of the checkbox.
In the handler, you can access the item, and get the item index and the
checked state.  Use that to set the selectedIndex on the DataGrid.

 

Of course the usual itemRenderer recycling caveats apply.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markflex2007
Sent: Friday, January 30, 2009 10:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox itemEditor in DataGrid

 

Hi,

I have add a checkbox itemEditor in DataGrid, I want to make current
row selected when I select the checkbox.

Please give me a deal how to do that.

Thanks you for your help

Mark

my current code 





private function selectLabeler( item:Object, col:* ) : String
{
if(item.mySelectin == ""){
item.mySelectin = false;
}
return item.mySelectin ? "Yes" : "Not";
}

 



RE: [flexcoders] Checkbox in a DataGrid - how check without selecting the line.

2008-12-04 Thread Alex Harui
You can prevent the visuals from being displayed by overriding drawItem()

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of garyq22
Sent: Thursday, December 04, 2008 3:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox in a DataGrid - how check without selecting the 
line.


Hi Everyone

I have a CheckBox set as the renderer/editor for a column in my
DataGrid and I would like users to be able to check and uncheck the
boxes on different rows without selecting or changing the selection of
the current grid row.

Is this possible? Any help would be very much appreciated.

Thanks

Gary Q



RE: [flexcoders] Checkbox in datagrid

2008-11-25 Thread Tracy Spratt
Are the CheckBoxes in the Form or in the DataGrid, or both?

 

What is the dataProvider for the DataGrid?

 

How are you linking the Form to the DataGrid?

 

How are the CheckBox states being stored in your dataProvider item?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sbnkn
Sent: Tuesday, November 25, 2008 3:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox in datagrid

 

Hi ALL,

This group is being really helpful.

I have asked a question earlier and people responded with answers on 
the same day. I appreciate and thank you all.

Now back to the another question.

I have a form to enter and a datagrid to display the records. 
Form has: text, textarea and multiple check box. once I add text and 
select multiple values in the checkbox and submit. This gets into the 
DB. This works fine.

Example to explain the scenario: checkbox has 1, 2, 3, 4 as options 
to select. When the user selected 3,4. The DB gets inserted with 3,4

Now, when I select any record from the datagrid, the form gets 
populated with the selected datagrid value and this works fine too
except for the checkbox values.

Example to explain the scenario: DB has 3,4 the form needs to have 
3,4 checked.

Question: How do i enable checkbox (having checkbox selected=true) 
for only the values in the DB.
Any example direction would be great.

-NB

 



RE: [flexcoders] checkbox jumping

2008-11-20 Thread Alex Harui
One way would be to wrap the loader with another IFlexDisplayObject that knows 
how big the loaded image will be

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of s.gratl
Sent: Thursday, November 20, 2008 8:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox jumping


hi,
got a problem using a checkbox in a big application.
the icons for the different states(over, down, selected) are not
loaded initial. so if i rollover or select the box the first time the
new icon is loaded and added to the stage, but the positioning happens
in updateDisplayList(). that leads to a jumping checkbox.
some help would be great
thx seb



Re: [flexcoders] Checkbox label vertical Alignment

2008-10-20 Thread Naveen Booma
I got my label move vertically down, jus by increasing the size of the
checkbox and by decreasing the label size.. I know this is not the way to do
it right, but for now it a temp solution.

On Tue, Oct 14, 2008 at 4:10 PM, Naveen Booma <[EMAIL PROTECTED]>wrote:

> Tracy,
>
> No ! I dont want the label to rotate, instead I wanted to align the label
> vertically bottom... To make things more clear, try labeling a checkbox and
> you will find the label to be placed in center of the checkbox, but I wanted
> to move the label few pixels down.
>
> I did also try a checkbox without a label and added a seperate label next
> to the checkbox and aligned vertically bottom, but no change...
>
> All I wanted to do is move the label few pixels down.
>
> Please let me know if any spark strikes !
>
> Thanks,
> Naveen
>
>
>
>
> On Tue, Oct 14, 2008 at 2:49 PM, Tracy Spratt <[EMAIL PROTECTED]>wrote:
>
>>Do you mean actually "rotate" the text so it reads vertically?
>>
>>
>>
>> Having never done this before I would probably make a composite component
>> consisting of a checkbox with no label and a separate label that was
>> rotated.  Note, to rotate text, the font must be embedded.
>>
>>
>>
>> Tracy
>>
>>
>>  --
>>
>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Naveen
>> *Sent:* Sunday, October 12, 2008 8:14 PM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* [flexcoders] Checkbox label vertical Alignment
>>
>>
>>
>> Hello everyone,
>>
>> I have been trying to align the label of a checkbox vertically, but I
>> cannot find a way to do that. Can anyone suggest me a way to do that ??
>>
>> Thank you,
>> Naveen
>>
>>  
>>
>
>


Re: [flexcoders] Checkbox label vertical Alignment

2008-10-14 Thread Naveen Booma
Tracy,

No ! I dont want the label to rotate, instead I wanted to align the label
vertically bottom... To make things more clear, try labeling a checkbox and
you will find the label to be placed in center of the checkbox, but I wanted
to move the label few pixels down.

I did also try a checkbox without a label and added a seperate label next to
the checkbox and aligned vertically bottom, but no change...

All I wanted to do is move the label few pixels down.

Please let me know if any spark strikes !

Thanks,
Naveen



On Tue, Oct 14, 2008 at 2:49 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

>Do you mean actually "rotate" the text so it reads vertically?
>
>
>
> Having never done this before I would probably make a composite component
> consisting of a checkbox with no label and a separate label that was
> rotated.  Note, to rotate text, the font must be embedded.
>
>
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Naveen
> *Sent:* Sunday, October 12, 2008 8:14 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Checkbox label vertical Alignment
>
>
>
> Hello everyone,
>
> I have been trying to align the label of a checkbox vertically, but I
> cannot find a way to do that. Can anyone suggest me a way to do that ??
>
> Thank you,
> Naveen
>
>  
>


RE: [flexcoders] Checkbox label vertical Alignment

2008-10-14 Thread Tracy Spratt
Do you mean actually "rotate" the text so it reads vertically?

 

Having never done this before I would probably make a composite
component consisting of a checkbox with no label and a separate label
that was rotated.  Note, to rotate text, the font must be embedded.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Naveen
Sent: Sunday, October 12, 2008 8:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox label vertical Alignment

 

Hello everyone,

I have been trying to align the label of a checkbox vertically, but I
cannot find a way to do that. Can anyone suggest me a way to do that ??

Thank you,
Naveen

 



Re: [flexcoders] Checkbox in Datagrid . . . how?

2008-09-02 Thread bjorn
You need to create a TreeItemRenderer, there's an example in the Flex
Cookbook here:
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=545&productId=2

- bjorn



2008/9/2 crumpelfungus <[EMAIL PROTECTED]>

>   Having looked through the archived topics, I was unable to find
> anything relevant, but if anyone knows of an existing thread or
> tutorial, just post the link.
>
> Basically, I am retrieving information from a MySQL database and
> dsiplay it in a datagrid. And I'm using a customized component via the
> DataGrid's itemRenderer to show a check box in the last column.
>
> In my particular case, the checkbox will indicate which records need to
> get deleted.
>
> Is there anyone who's done something similar? And would be willing to
> share the code? With the custom component from Flex Monkey Patches
> (http://snipurl.com/3m7be), I can get the checkbox dropped in, but I
> don't know how to "trap" the CLICK in the main application to determine
> whether the checkbox is selected or not.
>
> Anyone?
>
> 
>



-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


RE: [flexcoders] checkbox ItemRenderer in a List doesn't allow wordWrap

2008-08-28 Thread Alex Harui
It's the renderers responsibility to support wordwrap, which checkbox does not. 
 You might be able to adapt the multiline button example from my blog

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Bernardo Salazar
Sent: Thursday, August 28, 2008 9:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox ItemRenderer in a List doesn't allow wordWrap


Hello,

i'm tryin to use wordWrap in labels of items of a List that has a
checkBox Item Renderer, but when I run it, it doesn't do the wordWrap.

Any help ??

thanks in advance.



RE: [flexcoders] CheckBox Question, want to confirm before toggle

2008-07-22 Thread Alex Harui
There's probably a way involving stopImmediatePropagation, but why not
just let them check it and then confirm and uncheck it if not confirmed?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tchredeemed
Sent: Tuesday, July 22, 2008 10:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CheckBox Question, want to confirm before toggle

 

When someone clicks on the checkbox, I want them to confirm before the
checkbox is toggled.

Basically, how can I have the click on the checkbox not toggle it, and
ill toggle it myself... ?

 



RE: [flexcoders] Checkbox as a headerRenderer

2008-05-05 Thread Alex Harui
Have your classfactory only return one instance.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Monday, May 05, 2008 1:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox as a headerRenderer

 

I am implementing a checkbox as a headerRenderer:
public class CheckBoxHeaderRenderer extends CheckBox
{
public function CheckBoxHeaderRenderer()
{
super();
addEventListener("click", clickHandler);
}
override protected function clickHandler(event:MouseEvent):void
{
super.clickHandler(event);
}
}
I need to be able to communicate to a column that would have that 
header. I need to enable/disable it, as well as reset column's data. 
Any idea? 
Thanks

 



RE: [flexcoders] Checkbox with function problem

2008-02-15 Thread steven pollard

same result.
 
I accidently left that true in there by mistake was testing.
 
thanks


To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Fri, 15 Feb 2008 17:53:01 
+Subject: Re: [flexcoders] Checkbox with function problem





Maybe it should really be:
 
if (!signature_include.selected) {
 
Paul

- Original Message - 
From: steven pollard 
To: flexcoders@yahoogroups.com 
Sent: Friday, February 15, 2008 5:43 PM
Subject: RE: [flexcoders] Checkbox with function problem
I tried that and still the same results.. here is my code  

 


To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Fri, 15 Feb 2008 17:34:34 
+Subject: RE: [flexcoders] Checkbox with function problem




Use == rather than = 
(the former compares, the latter sets the value).
 (That’s from your first example, not sure If I’m missing the actual point 
you’re making, tbh).
 
-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL 
PROTECTED] On Behalf Of ghus32Sent: 15 February 2008 17:33To: [EMAIL 
PROTECTED]: [flexcoders] Checkbox with function problem
 


Hello Everyone,I am emailing because I have a problem whenever I write a 
function with if (Checkbox.selected=ture/false){something}or if 
(!checkbox.selected){something}Flex reads the function before I call it, or it 
reads the selected. So when I run the program the checkbox is already selected 
by default.Anyone know of a solution?thanksSteve
__This 
communication is from Primal Pictures Ltd., a company registered in England and 
Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson 
House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 
648874577.This e-mail is confidential and may be privileged. It may be read, 
copied and used only by the intended recipient. If you have received it in 
error, please contact the sender immediately by return e-mail or by telephoning 
+44(0)20 7637 1010. Please then delete the e-mail and do not disclose its 
contents to any person.This email has been scanned for Primal Pictures by the 
MessageLabs Email Security 
System.__


 






_



Re: [flexcoders] Checkbox with function problem

2008-02-15 Thread Paul Andrews
Maybe it should really be:

if (!signature_include.selected) {

Paul
  - Original Message - 
  From: steven pollard 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, February 15, 2008 5:43 PM
  Subject: RE: [flexcoders] Checkbox with function problem


  I tried that and still the same results..
   
  here is my code
   
   

  

  

  


   



To: flexcoders@yahoogroups.com
From: [EMAIL PROTECTED]
Date: Fri, 15 Feb 2008 17:34:34 +
Subject: RE: [flexcoders] Checkbox with function problem

Use == rather than = 


(the former compares, the latter sets the value).

 (That’s from your first example, not sure If I’m missing the actual point 
you’re making, tbh).



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
ghus32
Sent: 15 February 2008 17:33
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox with function problem



Hello Everyone,

I am emailing because I have a problem whenever I write a function with 

if (Checkbox.selected=ture/false){something}

or if (!checkbox.selected){something}

Flex reads the function before I call it, or it reads the selected. So 
when I run the program the checkbox is already selected by default.

Anyone know of a solution?

thanks

Steve



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied 
and used only by the intended recipient. If you have received it in error, 
please contact the sender immediately by return e-mail or by telephoning 
+44(0)20 7637 1010. Please then delete the e-mail and do not disclose its 
contents to any person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__





--
   

RE: [flexcoders] Checkbox with function problem

2008-02-15 Thread steven pollard

I tried that and still the same results..
 
here is my code
 
 



 


To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Fri, 15 Feb 2008 17:34:34 
+Subject: RE: [flexcoders] Checkbox with function problem






Use == rather than = 
(the former compares, the latter sets the value).
 (That’s from your first example, not sure If I’m missing the actual point 
you’re making, tbh).
 
-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL 
PROTECTED] On Behalf Of ghus32Sent: 15 February 2008 17:33To: [EMAIL 
PROTECTED]: [flexcoders] Checkbox with function problem
 



Hello Everyone,I am emailing because I have a problem whenever I write a 
function with if (Checkbox.selected=ture/false){something}or if 
(!checkbox.selected){something}Flex reads the function before I call it, or it 
reads the selected. So when I run the program the checkbox is already selected 
by default.Anyone know of a solution?thanksSteve
__This 
communication is from Primal Pictures Ltd., a company registered in England and 
Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson 
House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 
648874577.This e-mail is confidential and may be privileged. It may be read, 
copied and used only by the intended recipient. If you have received it in 
error, please contact the sender immediately by return e-mail or by telephoning 
+44(0)20 7637 1010. Please then delete the e-mail and do not disclose its 
contents to any person.This email has been scanned for Primal Pictures by the 
MessageLabs Email Security 
System.__
 






_



RE: [flexcoders] Checkbox with function problem

2008-02-15 Thread Jim Hayes
Use == rather than = 
(the former compares, the latter sets the value).
 (That's from your first example, not sure If I'm missing the actual
point you're making, tbh).
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ghus32
Sent: 15 February 2008 17:33
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox with function problem
 
Hello Everyone,

I am emailing because I have a problem whenever I write a function with 

if (Checkbox.selected=ture/false){something}

or if (!checkbox.selected){something}

Flex reads the function before I call it, or it reads the selected. So 
when I run the program the checkbox is already selected by default.

Anyone know of a solution?

thanks

Steve
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

Re: [flexcoders] checkbox- create a bindable "value" property

2008-01-22 Thread Sherif Abdou
Doesnt he need ti dispatch an Event so it works? So dispatch the event then 
have it [Binable(event="eventName")]


- Original Message 
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 22, 2008 12:56:05 AM
Subject: Re: [flexcoders] checkbox- create a bindable "value" property

Hi,

As far as I understand binding the bind works from the data out to the
bound component. So when the data is changed the componenet picks up the
change. However I don't believe it works the other way, in fact I'm sure
it doesn't. This makes sense as you should only change the data when you
are absolutely sure the data recieved is correct.

So in this case you'll need a function triggered by the change on the
components to change _value. You will trace the correct value on the
component currently, but the data will not be changed.

Hope this helps

Tim

> Hello! I want a checkbox to return 1 or 0 instead of true or false
> respectively. Here's my component:
>
> 
> http://www.adobe. com/2006/ mxml">
> 
> 
> 
> 
>
>
> When i try to bind a data model to the "value" property, it doesn't
> update the model when the value changes. However, when I do:
> click="Alert. show(value) ", it returns 0 or 1 as expected. So it
> seems that the internals are changing the value correctly, but the
> bind isn't working? Thanks for all your help! -bmiles
>
>





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] checkbox- create a bindable "value" property

2008-01-21 Thread tim
Hi,

As far as I understand binding the bind works from the data out to the
bound component.  So when the data is changed the componenet picks up the
change.  However I don't believe it works the other way, in fact I'm sure
it doesn't.  This makes sense as you should only change the data when you
are absolutely sure the data recieved is correct.

So in this case you'll need a function triggered by the change on the
components to change _value.  You will trace the correct value on the
component currently, but the data will not be changed.

Hope this helps

Tim

> Hello! I want a checkbox to return 1 or 0 instead of true or false
> respectively. Here's my component:
>
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
>
>
> When i try to bind a data model to the "value" property, it doesn't
> update the model when the value changes. However, when I do:
> click="Alert.show(value)", it returns 0 or 1 as expected. So it
> seems that the internals are changing the value correctly, but the
> bind isn't working? Thanks for all your help! -bmiles
>
>




RE: [flexcoders] checkbox in datagrid

2007-09-14 Thread Alex Harui
rendererIsEditor

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of li_rang
Sent: Thursday, September 13, 2007 7:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox in datagrid

 

Hi, All, 

I have a strang problem in datagrid, the last column in my datagrid 
is based on checkbox, but the when i click the checkbox, it turned to 
textinput again. Here are my code:












any help will be appreciated. thanks

 



RE: [flexcoders] Checkbox needs to have the same behavior like 'ctrlkey+mouse click' in datagrid

2007-06-04 Thread Alex Harui
You could just keep setting selectedIndices

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of handitan
Sent: Friday, June 01, 2007 3:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox needs to have the same behavior like
'ctrlkey+mouse click' in datagrid

 

Hi,

I have a datagrid that allows me to do select multiple rows by holding 
down ctrlkey and clicking each row, and it also allows me to drag those 
rows to a tree.

Now, I have been told to replicate this same behavior but with checkbox.

So I already have checkbox as part of the datagridColumn but I got 
confused on how to solve this after my first solution failed.

My solution was I am dispatching the ctrkey event to dataGrid and let 
the dataGrid does it magic in saving the selected row as I mouseclick 
the row. 

public function chkBoxHandler(event:Event):void
{
myGrid.dispatchEvent(new KeyboardEvent
(KeyboardEvent.KEY_DOWN,true,false,0,17,1,true));
}







 




... and there are multiple other DataGridColumns

Any ideas?




 



Re: [flexcoders] Checkbox in DataGrid cell won't turn invisible!

2007-04-04 Thread Tom Chiverton
On Tuesday 03 Apr 2007, Ben Densmore wrote:
> Hi Jamie,
>  I believe this is a bug in 2.0.1. I have run into the same issue with
> trying to set a datagrid column to visible="false". It seems to be ignored.

It was fixed in the hotfix:
http://rachaelandtom.info/node/1440

-- 
Tom Chiverton
Helping to administratively evolve end-to-end portals
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Checkbox in DataGrid cell won't turn invisible!

2007-04-03 Thread Ben Densmore
Hi Jamie,
 I believe this is a bug in 2.0.1. I have run into the same issue with trying 
to set a datagrid column to visible="false". It seems to be ignored.

Can you try and build your project in 2.0 and see if the issue still occurs?

Ben

- Original Message 
From: jamiebadman <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 3, 2007 12:18:27 PM
Subject: [flexcoders] Checkbox in DataGrid cell won't turn invisible!









  



Can someone help please ? In the following itemRenderer code for a 

dataGridColumn, I'm trying to have the checkbox not show - but it 

seems that despite having 'visible="false" ' or 

even 'includeInLayout= "false"' it still shows up! In reality, of 

course, I have a function defining whether or not I show the 

checkbox but to illustrate the problem I'm having I think the 

following is as basic an example as I can get:





  



  

 

  





As you can see, checkbox is forced to false always - but this is 

totally ignored and the checkbox shows up on all rows!



Does anyone know why this happens - and how I can resolve it ?



Thanks,



Jamie.






  















RE: [flexcoders] Checkbox in Datagrid to Select Items

2007-03-19 Thread Tracy Spratt
For an inline data provider it will be something like [EMAIL PROTECTED] =
this.selected.  Not sure about the "this", you may need to use the id of
the checkbox, I don't do many in-line renderers.  

 

Here is an example of a checkbox renderer implemented in mxml:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=559

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of subeesh a
Sent: Monday, March 19, 2007 12:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Checkbox in Datagrid to Select Items

 

Thanks Tracy,

 

That was a great help. Can u please explain in detail in how can i
update the dataprovider

 

Subeesh

- Original Message 
From: Tracy Spratt <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, 19 March, 2007 10:29:16 PM
Subject: RE: [flexcoders] Checkbox in Datagrid to Select Items

When the user clicks a checkbox in the itemRenderer, the renderer must
update a "selected" property on the dataProvider item with the value of
the checkbox selected property.  This is required.  Editable renderers
must be driven from the dataProvider.

 

Then, you can loop through the dataProvider, test for the value of the
selected property, then put the data into the array.

 

Tracy

 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ]
On Behalf Of subeesh a
Sent: Monday, March 19, 2007 11:06 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Checkbox in Datagrid to Select Items

 

Hi All,

 

Can anyone help me with this 

 

If i place chek boxes in datagrid column by inline item renderer how can
il put al the items in the datagrid in wich the check boxes are ticked
to an array.

 

Thanks 

 

Subeesh 

 



Here's a new way to find what you're looking for - Yahoo! Answers
<http://us.rd.yahoo.com/mail/in/yanswers/*http:/in.answers.yahoo.com/>  

 

 



Here's a new way to find what you're looking for - Yahoo! Answers
<http://us.rd.yahoo.com/mail/in/yanswers/*http:/in.answers.yahoo.com/>  

 



Re: [flexcoders] Checkbox in Datagrid to Select Items

2007-03-19 Thread subeesh a
Thanks Tracy,

That was a great help. Can u please explain in detail in how can i update the 
dataprovider

Subeesh


- Original Message 
From: Tracy Spratt <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, 19 March, 2007 10:29:16 PM
Subject: RE: [flexcoders] Checkbox in Datagrid to Select Items

When the user clicks a checkbox in the itemRenderer, the renderer must update a 
“selected” property on the dataProvider item with the value of the checkbox 
selected property.  This is required.  Editable renderers must be driven from 
the dataProvider.
 
Then, you can loop through the dataProvider, test for the value of the selected 
property, then put the data into the array.
 
Tracy
 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of subeesh a
Sent: Monday, March 19, 2007 11:06 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Checkbox in Datagrid to Select Items
 
Hi All,
 
Can anyone help me with this 
 
If i place chek boxes in datagrid column by inline item renderer how can il put 
al the items in the datagrid in wich the check boxes are ticked to an array.
 
Thanks 
 
Subeesh 
 



Here’s a new way to find what you're looking for - Yahoo! Answers 




__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

RE: [flexcoders] Checkbox in Datagrid to Select Items

2007-03-19 Thread Alex Harui
FWIW, by writing even more code, you can avoid the looping.  You'd have to have 
a known central registry that customized checkboxes notify when clicked.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy 
Spratt
Sent: Monday, March 19, 2007 10:58 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Checkbox in Datagrid to Select Items

 

When the user clicks a checkbox in the itemRenderer, the renderer must update a 
"selected" property on the dataProvider item with the value of the checkbox 
selected property.  This is required.  Editable renderers must be driven from 
the dataProvider.

 

Then, you can loop through the dataProvider, test for the value of the selected 
property, then put the data into the array.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of subeesh 
a
Sent: Monday, March 19, 2007 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox in Datagrid to Select Items

 

Hi All,

 

Can anyone help me with this 

 

If i place chek boxes in datagrid column by inline item renderer how can il put 
al the items in the datagrid in wich the check boxes are ticked to an array.

 

Thanks 

 

Subeesh 

 



Here’s a new way to find what you're looking for - Yahoo! Answers 
<http://us.rd.yahoo.com/mail/in/yanswers/*http:/in.answers.yahoo.com/>  

 



RE: [flexcoders] Checkbox in Datagrid to Select Items

2007-03-19 Thread Tracy Spratt
When the user clicks a checkbox in the itemRenderer, the renderer must update a 
"selected" property on the dataProvider item with the value of the checkbox 
selected property.  This is required.  Editable renderers must be driven from 
the dataProvider.

 

Then, you can loop through the dataProvider, test for the value of the selected 
property, then put the data into the array.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of subeesh 
a
Sent: Monday, March 19, 2007 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox in Datagrid to Select Items

 

Hi All,

 

Can anyone help me with this 

 

If i place chek boxes in datagrid column by inline item renderer how can il put 
al the items in the datagrid in wich the check boxes are ticked to an array.

 

Thanks 

 

Subeesh 

 



Here’s a new way to find what you're looking for - Yahoo! Answers 
  

 



RE: [flexcoders] checkbox in datagrid with vertical slider bar

2007-03-09 Thread Lisa Nelson
I believe you are describing something different than what I am
describing.  The dataProvider starts off life with every element in a
"false" state, or unchecked.  You check one box.  Slide the bar.  And
other boxes in other rows magically check themselves.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, March 08, 2007 6:24 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] checkbox in datagrid with vertical slider bar

 

That's a common misunderstanding.  The checkbox is driven by properties
of the items in the dataprovider.  If you check a box and do not update
the dataprovider, then when the checkbox is forced to re-render after
scrolling it will not be checked.  The key is to use rendererIsEditor
and other related properties.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lisa Nelson
Sent: Thursday, March 08, 2007 2:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox in datagrid with vertical slider bar

 

 

 

If I check a box in a row other than the top row, and then slide the
vertical scroll bar down so that the rows go off the top, and then slide
it back up so that the rows that went off the top come back, rows that I
did not check now show up as checked.  Does anyone know if this is a
Flex bug or is it something I'm doing wrong?

 



 

 



RE: [flexcoders] checkbox in datagrid with vertical slider bar

2007-03-09 Thread Tracy Spratt
Here is a full example:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=559

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lisa Nelson
Sent: Thursday, March 08, 2007 5:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox in datagrid with vertical slider bar

 

 

 

If I check a box in a row other than the top row, and then slide the
vertical scroll bar down so that the rows go off the top, and then slide
it back up so that the rows that went off the top come back, rows that I
did not check now show up as checked.  Does anyone know if this is a
Flex bug or is it something I'm doing wrong?

 



 

 



RE: [flexcoders] checkbox in datagrid with vertical slider bar

2007-03-08 Thread Alex Harui
That's a common misunderstanding.  The checkbox is driven by properties
of the items in the dataprovider.  If you check a box and do not update
the dataprovider, then when the checkbox is forced to re-render after
scrolling it will not be checked.  The key is to use rendererIsEditor
and other related properties.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lisa Nelson
Sent: Thursday, March 08, 2007 2:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox in datagrid with vertical slider bar

 

 

 

If I check a box in a row other than the top row, and then slide the
vertical scroll bar down so that the rows go off the top, and then slide
it back up so that the rows that went off the top come back, rows that I
did not check now show up as checked.  Does anyone know if this is a
Flex bug or is it something I'm doing wrong?

 



 

 



RE: [flexcoders] checkbox with tree component

2007-02-26 Thread Joan Lafferty
Saurav,

 

Here is an example that might be what you need or at least get your
started. It adds a CheckBox to all of the leaf nodes (not the parent
nodes). This example is expecting that your data has objects that
include a "selected" property, by the way.

 

package comps {

 

import flash.display.DisplayObject;

import flash.events.MouseEvent;

import flash.xml.*;



import mx.controls.CheckBox;

import mx.controls.Tree;

import mx.controls.listClasses.*;

import mx.controls.treeClasses.*;

import mx.core.IDataRenderer;

 

 

public class MyCheckItemRenderer extends TreeItemRenderer

{

 

protected var myCheckBox:CheckBox;

private var listOwner:Tree;

private var folderCbX:uint = 32;

private var leafCbX:uint = 40;

private var margin:uint = 15;

   

override protected function createChildren():void

{

   super.createChildren();



   myCheckBox = new CheckBox();

   addChild(myCheckBox);

   myCheckBox.setStyle("paddingTop", 15);

   myCheckBox.addEventListener( MouseEvent.CLICK,
CBToggleHandler);

}   



private function CBToggleHandler(event:MouseEvent):void

{

 [EMAIL PROTECTED] = CheckBox(event.target).selected;


}

 

private var _data:Object;

   

override public function set data(value:Object):void

{

_data = value;

super.data = value;



if(value != null)

{

if(TreeListData(super.listData).hasChildren)

{

myCheckBox.visible = false;

myCheckBox.includeInLayout = false;

}

if([EMAIL PROTECTED] == "true")

{

myCheckBox.selected = true;

}

}

}

 

   private var _listData:TreeListData;



   override public function set listData(value:BaseListData):void

   {

   _listData = TreeListData(value);

   super.listData = value;

   }

 

   override protected function commitProperties():void

   {

   super.commitProperties();



   if (icon)

   {

   if(!TreeListData(listData).hasChildren)

   {

   removeChild(DisplayObject(icon));

   icon = null;

   }

   }

  

  }



  override protected function
updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void

  {   

super.updateDisplayList(unscaledWidth, unscaledHeight);



if(_listData)

{

myCheckBox.x = (TreeListData(listData).hasChildren) ?
folderCbX : leafCbX;

myCheckBox.y = 2;

if(! TreeListData(listData).hasChildren)

{

super.label.x = myCheckBox.x + myCheckBox.width +
margin;

}

}

}

}

}

 

Good Luck,

Joan

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Friday, February 23, 2007 1:56 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] checkbox with tree component

 

Saurav,

In case you want to buy a solution
http://www.teotigraphix.com/flex2/components/controls/checkboxtreefx
<http://www.teotigraphix.com/flex2/components/controls/checkboxtreefx> .



On 2/22/07, sauravsinha79 <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

Hi,

I want to add a check box with each tree node(branch/leaf).

Any help will be really appreciated.I went through some sample but
couldn't understand. I m just a begginer w.r.t flex, but i know AS2
(OOPS).

Any help will be really appreciated

Regards & Thanx
Saurav




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
<http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> 
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
<http://www.mail-archive.com/flexcoders%40yahoogroups.com> 
Yahoo! Groups - Join or create groups, clubs, forums & communities.
Links


(Yahoo! ID required)

mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 


<http://docs.yahoo.com/info/terms/> 

 

 



Re: [flexcoders] checkbox with tree component

2007-02-26 Thread Mrinmoyee Sanyal

Or you cud get it free from Adobe:

http://www.adobe.com/cfusion/exchange/index.cfm?view=sn611&extID=1047969


-MS













On 2/23/07, dorkie dork from dorktown <[EMAIL PROTECTED]>
wrote:


  Saurav,

In case you want to buy a solution
http://www.teotigraphix.com/flex2/components/controls/checkboxtreefx.


On 2/22/07, sauravsinha79 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I want to add a check box with each tree node(branch/leaf).
>
> Any help will be really appreciated.I went through some sample but
> couldn't understand. I m just a begginer w.r.t flex, but i know AS2
> (OOPS).
>
> Any help will be really appreciated
>
> Regards & Thanx
> Saurav
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups - Join or create groups, clubs, forums & communities.
> Links
>
>
>
>
>
 



Re: [flexcoders] checkbox with tree component

2007-02-23 Thread dorkie dork from dorktown

Saurav,

In case you want to buy a solution
http://www.teotigraphix.com/flex2/components/controls/checkboxtreefx.


On 2/22/07, sauravsinha79 <[EMAIL PROTECTED]> wrote:


Hi,

I want to add a check box with each tree node(branch/leaf).

Any help will be really appreciated.I went through some sample but
couldn't understand. I m just a begginer w.r.t flex, but i know AS2
(OOPS).

Any help will be really appreciated

Regards & Thanx
Saurav




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups - Join or create groups, clubs, forums & communities. Links







Re: [flexcoders] Checkbox MenuBar

2006-12-20 Thread Jeremy Rottman

Yeah that's pretty much what I need... I've attached a file of a menu bar I
photoshopped to give you an image of what it is I'd like I think this would
make things much easier to explain.

On 12/20/06, Lachlan Cotter <[EMAIL PROTECTED]> wrote:


  Hi Jeremy,

Let me see if I understand you correctly: you want to have a horizontal
menu bar where each item will drop down a list of checkbox controls when
selected?

Cheers,
Lach


On 20/12/2006, at 10:37 AM, Jeremy Rottman wrote:

I'm having trouble thinking of a way to accomplish the next step in my
application. Basically what we have right now is a menu bar that is created
from a mysql query. That part I have working fine. The next part that I'm
working on is a permission based system that say an admin were to login and
go to the menu bar admin screen and be able to select which items of the
menu a group has the ability to see. Now the easiest way I can think of
laying this out for the admin would be to just recreate the same menu with
the same queries but with checkboxes next to each menu item(including the
top level item that when clicked selects all children). Basically imitating
the TreeCheckBox component I have seen but in menu bar form. However I have
not been able to find any examples or even any talk about something like
this before. The reason I don't want to use the TreeCheckBox is because the
tree would be very long and cause a lot of scrolling with this many sub
items so really the best bet is to have something horizontal that I already
know fits the screen. Does anyone have any ideas of other components or
other ways that this task could be accomplished? Any help or opinions would
be much appreciated.


 

<>


Re: [flexcoders] Checkbox MenuBar

2006-12-20 Thread Lachlan Cotter

Hi Jeremy,

Let me see if I understand you correctly: you want to have a  
horizontal menu bar where each item will drop down a list of checkbox  
controls when selected?


Cheers,
Lach


On 20/12/2006, at 10:37 AM, Jeremy Rottman wrote:

I'm having trouble thinking of a way to accomplish the next step in  
my application. Basically what we have right now is a menu bar that  
is created from a mysql query. That part I have working fine. The  
next part that I'm working on is a permission based system that say  
an admin were to login and go to the menu bar admin screen and be  
able to select which items of the menu a group has the ability to  
see. Now the easiest way I can think of laying this out for the  
admin would be to just recreate the same menu with the same queries  
but with checkboxes next to each menu item(including the top level  
item that when clicked selects all children). Basically imitating  
the TreeCheckBox component I have seen but in menu bar form.  
However I have not been able to find any examples or even any talk  
about something like this before. The reason I don't want to use  
the TreeCheckBox is because the tree would be very long and cause a  
lot of scrolling with this many sub items so really the best bet is  
to have something horizontal that I already know fits the screen.  
Does anyone have any ideas of other components or other ways that  
this task could be accomplished? Any help or opinions would be much  
appreciated.




RE: [flexcoders] Checkbox in Datagrid - checks disappear when scrolling

2006-11-02 Thread Tracy Spratt












Yes, I think “data.isSelected=cb.selected”
is the key.

 

You absolutely must update the
dataProvider for the checkboxes to work correctly.  The list controls re-use
the visual elements when you scroll.

 

Perhaps modifying your original code to
the below might work.



 

Tracy

 

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of John Zhao
Sent: Thursday, November 02, 2006
11:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Checkbox
in Datagrid - checks disappear when scrolling



 







Try this as
the ItemRenderer instead.

 


  
   "center"
backgroundAlpha="100"  >
  

  
 
  
  
   
  

  
   
  
   



 





-John











From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of app.developer
Sent: Thursday, November 02, 2006
10:53 AM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Checkbox in
Datagrid - checks disappear when scrolling



If I use

> 

 




horizontalCenter="0" verticalCenter="0"/>
"value"/>
 



for the DataGridColumn

"true"

editorDataField="value" textAlign="center" 
itemRenderer="{inlineEditor}"/>

the selected checkboxes are not selected if a scroll through the 
dataGrid. Has anyone had this problem and solved it?

Precia










__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Checkbox in Datagrid - checks disappear when scrolling

2006-11-02 Thread John Zhao





Try this as 
the ItemRenderer instead.
 
   
  
   
    
   
  
   
  
   
 
-John

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  app.developerSent: Thursday, November 02, 2006 10:53 
  AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
  Checkbox in Datagrid - checks disappear when scrolling
  
  
  If I use> 
   
  horizontalCenter="0" 
  verticalCenter="0"/>"value"/> 
  for the 
  DataGridColumn"true" 
  editorDataField="value" textAlign="center" 
  itemRenderer="{inlineEditor}"/>the selected 
  checkboxes are not selected if a scroll through the dataGrid. Has anyone 
  had this problem and solved it?Precia
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] checkbox cell renderer

2006-01-22 Thread JesterXL





Best thing to do is to create your own 
cellRenderer, and even better, customize to the data.  So, if you get a bit 
from ColdFusion for example, 0 or 1, you can translate that value from the 
column to a true or false.  When you check it, you can catch the CheckBox's 
click event, and use listOwner.editField to set the value of the specific item 
to 0 or 1 depending what the value of the checkbox's selected property 
is.
 
- Original Message - 
From: Husain 
Kitabi 
To: flexcoders@yahoogroups.com 
Sent: Sunday, January 22, 2006 11:26 AM
Subject: [flexcoders] checkbox cell renderer

Hi
I have a datagrid with a checkbox renderer. I want to know if checkbox in 
each row is checked or not.
My datagrid is as
 
  
  
cellRenderer="com.lsmonline.client.view.util.CheckBoxCellRenderer"/>  
 
 
 
Should i use mx.controls.Checkbox as my renderer or should i customise it. 
In my customised renderer i do nothing really. My requirement is to get the 
selected rows which the user has checked.
 
Please advise.
Thanks
 
Husain  
 


What are the most popular cars? Find out at Yahoo! 
Autos 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Checkbox value

2005-11-23 Thread Tracy Spratt
Title: RE: [flexcoders] Checkbox value










Sorry, I got confused.

 

Ignore my post.

 

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Tuesday, November 22, 2005
5:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Checkbox
value



 

Didn't
know there was data property available for checkbox. I couldn't see that
anywhere. One more thing. Please see the code Below:



     
   
     
   
   
    id="parentComp" 
   
   
    label="{params.currentItem.label}" 
   
   
    data="" /> 
     
     
   
    

   
   
    

   
   
   
    

   
   
     
   
     
     
 

The
second repeater is looping over the number of rows and the third one lays out
checkboxes horizontally for each row. I need to be able to figure out a way to
have checkboxes in rows to know their corresponding parent CheckBoxes. For eg,
when a child CheckBox is clicked it should select/unselect its corresponding
"parentComp".

Thanks


 

Agha
Mehdi 
IDT - eBusiness Program Manager


-Original
Message- 
From: João Fernandes [mailto:flexcoders@yahoogroups.com]
On Behalf Of João Fernandes 
Sent: Tuesday, November 22, 2005
12:11 PM 
To: flexcoders@yahoogroups.com

Subject: RE: [flexcoders] Checkbox
value 

 

Agha,


looking
for something like this? 




or is
your object {labelfield: somevalue, data: {some_object} }? 

 

João
Fernandes 
Secção de Desenvolvimento

Departamento de Informática


-Original
Message- 
From: flexcoders@yahoogroups.com
on behalf of Mehdi, Agha 
Sent: Tue 22-Nov-05 6:40 PM

To: flexcoders@yahoogroups.com

Subject: [flexcoders] Checkbox
value 
  
How can I make it so that my
CheckBox also holds data property of an object 
and not just show the label.
Basically, I have an object with data and label 
properties and I want the CheckBox
to hold the data and display the label. 
If CheckBox can't do that then I'm
gonna have to create a custom component. 
Just wanted to see if it was
something CheckBox could do. 

Thanks


Agha
Mehdi 
IDT - eBusiness Program Manager

Work: 408.284.8239 
Cell  : 209.275.0482

Fax  :  408.284.2766


 


Yahoo! Groups Sponsor ~--> 
Get fast access to your favorite
Yahoo! Groups. Make Yahoo! your home page 
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM

~->


--

Flexcoders Mailing List

FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com

Yahoo! Groups Links 

<*>
To visit your group on the web, go to: 
    http://groups.yahoo.com/group/flexcoders/


<*>
To unsubscribe from this group, send an email to: 
   
[EMAIL PROTECTED] 

<*>
Your use of Yahoo! Groups is subject to: 
    http://docs.yahoo.com/info/terms/

  









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Checkbox value

2005-11-22 Thread Mehdi, Agha
Title: RE: [flexcoders] Checkbox value







Didn't know there was data property available for checkbox. I couldn't see that anywhere. One more thing. Please see the code Below:


    
        
            id="parentComp"
            label="{params.currentItem.label}"
            data="" />
    
    
        
            

                

            
        
    



The second repeater is looping over the number of rows and the third one lays out checkboxes horizontally for each row. I need to be able to figure out a way to have checkboxes in rows to know their corresponding parent CheckBoxes. For eg, when a child CheckBox is clicked it should select/unselect its corresponding "parentComp".

Thanks



Agha Mehdi
IDT - eBusiness Program Manager


-Original Message-
From: João Fernandes [mailto:flexcoders@yahoogroups.com] On Behalf Of João Fernandes
Sent: Tuesday, November 22, 2005 12:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Checkbox value



Agha,


looking for something like this?





or is your object {labelfield: somevalue, data: {some_object} }?





João Fernandes
Secção de Desenvolvimento
Departamento de Informática


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Mehdi, Agha
Sent: Tue 22-Nov-05 6:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox value
 
How can I make it so that my CheckBox also holds data property of an object
and not just show the label. Basically, I have an object with data and label
properties and I want the CheckBox to hold the data and display the label.
If CheckBox can't do that then I'm gonna have to create a custom component.
Just wanted to see if it was something CheckBox could do.


Thanks


Agha Mehdi
IDT - eBusiness Program Manager
Work: 408.284.8239
Cell  : 209.275.0482
Fax  :  408.284.2766



 Yahoo! Groups Sponsor ~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~-> 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links


<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/


<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]


<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Checkbox value

2005-11-22 Thread Mehdi, Agha
Title: Checkbox value










Yeah, that’s what I did since
CheckBox doesn’t support data property (for I don’t know what
reason).



Agha Mehdi 
IDT - eBusiness Program Manager 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andora, Greg
Sent: Tuesday, November 22, 2005
2:04 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Checkbox
value



 

If you create a custom component extending
the checkbox component, you can accomplish this by adding a property to
your checkbox.

 

The AS for creating your property would
look "something" like the below...I haven't tested it, so don't
shoot me if I'm :

 

private var _data:Object;

 

[ChangeEvent("dataChanged")]
function get data():Boolean{
  return _data;

}
function set data(objData:Object){
    _data = objData

    dispatchEvent({
type:'dataChanged' });

}
 }



 



Thank you,
Greg
Andora

IT - Web Development Group 
Database Analyst/Programmer
(702) 862-7725 



 



 







From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mehdi, Agha
Sent: Tuesday, November 22, 2005
10:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox
value

How can I make it so that my CheckBox also
holds data property of an object and not just show the label. Basically, I have
an object with data and label properties and I want the CheckBox to hold the data and display the label. If
CheckBox can't do that then I'm gonna have to create a custom component. Just
wanted to see if it was something CheckBox could do.

Thanks

Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Cell  : 209.275.0482

Fax  :  408.284.2766









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











To ensure compliance with requirements imposed by the IRS, we inform you that any U.S. federal tax advice contained in this document (including any attachments) is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding penalties under the Internal Revenue Code or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.

This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com



RE: [flexcoders] Checkbox value

2005-11-22 Thread Tracy Spratt
Title: Checkbox value










The checkbox is the same as the other
list-based components in that if you have an object in your dataProvider, it
will be available through the item in the checkbox.  The “label”
and “data” properties are just defaults for convenience.

 

var myComplexObject:Object = myComboBox.selectedItem.myComplexObject;

 

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Tuesday, November 22, 2005
1:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox
value



 

How can I make it so that my CheckBox also
holds data property of an object and not just show the label. Basically, I have
an object with data and label properties and I want the CheckBox to hold the data and display the label. If
CheckBox can't do that then I'm gonna have to create a custom component. Just
wanted to see if it was something CheckBox could do.

Thanks

Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Cell  : 209.275.0482

Fax  :  408.284.2766









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Checkbox value

2005-11-22 Thread Andora, Greg
Title: Checkbox value





If you create a custom component extending the checkbox 
component, you can accomplish this by adding a property to your 
checkbox.
 
The AS for creating your property would look 
"something" like the below...I haven't tested it, so don't shoot me if I'm 
:
 
private var _data:Object;
 
[ChangeEvent("dataChanged")]function get 
data():Boolean{  return 
_data;
}function set 
data(objData:Object){    _data = objData
    dispatchEvent({ type:'dataChanged' 
});
} }
 
Thank 
you,Greg 
Andora
IT - Web Development Group Database 
Analyst/Programmer(702) 
862-7725 
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Mehdi, 
AghaSent: Tuesday, November 22, 2005 10:41 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Checkbox 
value

How can I make it so that 
my CheckBox also holds data property of an object and not just show the label. 
Basically, I have an object with data and label properties and I want the CheckBox to hold the data and display 
the label. If CheckBox can't do that then 
I'm gonna have to create a custom component. Just wanted to see if it was something 
CheckBox could do.
Thanks
Agha 
Mehdi
IDT - eBusiness Program 
Manager
Work: 
408.284.8239
Cell  : 
209.275.0482
Fax  :  
408.284.2766






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  










To ensure compliance with requirements imposed by the IRS, we inform you that any U.S. federal tax advice contained in this document (including any attachments) is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding penalties under the Internal Revenue Code or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.

This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com



RE: [flexcoders] Checkbox value

2005-11-22 Thread João Fernandes

Agha,

looking for something like this?



or is your object {labelfield: somevalue, data: {some_object} }?



João Fernandes
Secção de Desenvolvimento
Departamento de Informática

-Original Message-
From: flexcoders@yahoogroups.com on behalf of Mehdi, Agha
Sent: Tue 22-Nov-05 6:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox value
 
How can I make it so that my CheckBox also holds data property of an object
and not just show the label. Basically, I have an object with data and label
properties and I want the CheckBox to hold the data and display the label.
If CheckBox can't do that then I'm gonna have to create a custom component.
Just wanted to see if it was something CheckBox could do.

Thanks

Agha Mehdi
IDT - eBusiness Program Manager
Work: 408.284.8239
Cell  : 209.275.0482
Fax  :  408.284.2766




 Yahoo! Groups Sponsor ~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
<>

RE: [flexcoders] checkbox in repeater

2005-10-25 Thread Husain Kitabi



Hi
This works!!
 
Thanks.Matt Chotin <[EMAIL PROTECTED]> wrote:









You should have access to mods as a 2-d array.
 
mods[i][j]
 
every mods[i] is the array of checkboxes for the listModules repeater.
 
For (var i:Number=0; i < mods.length; i++)
{
  For (var j:Number=0; j < mods[i].length; j++)
  {
    Trace(mods[i][j].label + ‘ = ‘ + mods[i][j].selected);
  }
}
 
Haven’t tested this but this should hopefully get you on track.
 
Matt
 




From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Husain KitabiSent: Friday, October 21, 2005 8:35 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] checkbox in repeater
 

Hi

I am having a repeater -> repeater -> checkbox. 

 





 


 



 

 
 
I need the values of mods. I tried the following in my script
 
function getSelectedModules(){
 
var len= list.dataProvider.length;
var str = "";
for(var j=0;j
for(var i=0; i
str = str + '\n' + listModules[j].mods[i].label;
}
 
}
mx.controls.Alert.show("Checbox  :"+ str);
}
 
This returns me undefined. Any ideas how to get checkbox values
 
Regards
hussain



Yahoo! FareChase - Search multiple travel sites in one click. hussain
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] checkbox in repeater

2005-10-24 Thread Matt Chotin










You should have access to mods as a 2-d
array.

 

mods[i][j]

 

every mods[i] is the array of checkboxes
for the listModules repeater.

 

For (var i:Number=0; i < mods.length;
i++)

{

  For (var j:Number=0; j <
mods[i].length; j++)

  {

    Trace(mods[i][j].label + ‘ = ‘
+ mods[i][j].selected);

  }

}

 

Haven’t tested this but this should
hopefully get you on track.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Husain Kitabi
Sent: Friday, October 21, 2005
8:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox in
repeater



 



Hi





I am having a repeater -> repeater -> checkbox. 





 













 





 







 



 

 

I need the values of mods. I tried the following in my script

 

function getSelectedModules(){

 

var len= list.dataProvider.length;

var str = "";

for(var j=0;j

for(var i=0; i

str = str + '\n' + listModules[j].mods[i].label;

}

 

}

mx.controls.Alert.show("Checbox  :"+ str);

}

 

This returns me undefined. Any ideas how to get checkbox values

 

Regards





hussain







Yahoo!
FareChase - Search multiple travel sites in one click. 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] checkbox in repeater

2005-10-23 Thread Husain Kitabi



Pl help!Husain Kitabi <[EMAIL PROTECTED]> wrote:

Hi
I am having a repeater -> repeater -> checkbox. 
 





 



 



 

 
 
I need the values of mods. I tried the following in my script
 
function getSelectedModules(){
 
var len= list.dataProvider.length;
var str = "";
for(var j=0;j
for(var i=0; i
str = str + '\n' + listModules[j].mods[i].label;
}
 
}
mx.controls.Alert.show("Checbox  :"+ str);

}
 
This returns me undefined. Any ideas how to get checkbox values
 
Regardshussain


Yahoo! FareChase - Search multiple travel sites in one click. hussain
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Checkbox Cell Renderer

2005-09-12 Thread Mehdi, Agha
Title: Checkbox Cell Renderer










Matt, Code is below. Can you please take
a look at it and let me know what I am doing wrong?

 

import mx.core.UIComponent

import mx.controls.CheckBox

 

class
com.idt.pcmssearch.parametric.renderers.CheckCellRenderer extends UIComponent

{

 

    var check : MovieClip;

    var listOwner : MovieClip;

    var getCellIndex : Function;

    var getDataLabel : Function;

 

    function CheckCellRenderer()

    {

    }

 

    function createChildren() :
Void

    {

    check =
createClassObject(CheckBox, "check", 1, {styleName:this,
owner:this});

    check.addEventListener("click",
this);

    size();

    }

 

    function size() : Void

    {

    check.setSize(20,
layoutHeight); 

    check._x =
(layoutWidth-20)/2;

    check._y =
(layoutHeight-16)/2;

    }

    

    function setValue(str :
String, currentItem : Object, sel : Boolean) : Void

    {

    //check._visible
= (currentItem!=undefined);

    check.selected =
currentItem[getDataLabel()];

    }

    

    function getPreferredHeight()
: Number

    {

    return 16;

    }

    

    function getPreferredWidth()
: Number

    {

    return 20;

    }

    

    function click()

    {

    listOwner.editField(
getCellIndex().itemIndex, getDataLabel(), check.selected );

    }

    

}

 

Thanks



Agha Mehdi 
IDT - eBusiness Program Manager 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Saturday, September 10, 2005
9:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Checkbox
Cell Renderer



 

I’m guessing that you accidentally
have a reference to something that is not being cleared in your renderer. 
Remember that the renderer is re-used for many items and as you scroll up and
down it changes position.  So maybe there’s an instance variable in your
renderer that’s accidentally staying set, i.e., you’re not clearing
everything that you need to in your setValue method.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Friday, September 09, 2005
5:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox
Cell Renderer



 

Hi all,

I have a weirdo thing going on with this
renderer. When I check the
checkbox in the grid, it automatically selects other checkboxes in the same
grid randomly. The most interesting part is that when I scroll through the
grid, it keeps checking/unchecking the boxes without any reason. Also, when I
have some rows checked and I get new data in the grid, it keeps the boxes
checked at previous indexes.

Anyone ever ran into this issue?

Thanks

Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Fax:   408.284.2766










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Software design and development
  
  
Macromedia flex
  
  


Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Checkbox Cell Renderer

2005-09-10 Thread Matt Chotin
Title: Checkbox Cell Renderer










I’m guessing that you accidentally
have a reference to something that is not being cleared in your renderer. 
Remember that the renderer is re-used for many items and as you scroll up and
down it changes position.  So maybe there’s an instance variable in your
renderer that’s accidentally staying set, i.e., you’re not clearing
everything that you need to in your setValue method.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha
Sent: Friday, September 09, 2005
5:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox
Cell Renderer



 

Hi all,

I have a weirdo thing going on with this
renderer. When I check the
checkbox in the grid, it automatically selects other checkboxes in the same
grid randomly. The most interesting part is that when I scroll through the
grid, it keeps checking/unchecking the boxes without any reason. Also, when I
have some rows checked and I get new data in the grid, it keeps the boxes
checked at previous indexes.

Anyone ever ran into this issue?

Thanks

Agha Mehdi

IDT - eBusiness Program Manager

Work: 408.284.8239

Fax:   408.284.2766









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Software design and development
  
  
Macromedia flex
  
  


Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Checkbox cellRenderer

2005-09-10 Thread alberto
I have run into the same problem. When using the livedocs checkbox
cellrenderer, when I check one, others get checked too.

Is there any explanation to this?



 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] CheckBox in the DataGrid

2005-07-07 Thread Abdul Qabiz
Hi,

You can achieve this by just updating dataProvider and if design of
yourCellRenderer in such a way that if dataProvider changes CellRenderer
is updated.

Say you have a field in dataProvider, which is bound with checkbox's
selected property. If you change the dataProvider, CheckBoxes get
updated.

-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shahnavaza
Sent: Thursday, July 07, 2005 1:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CheckBox in the DataGrid

Hi All,

I have a DataGrid with a checkbox rendered successfully using
CellRenderer. My first problem is that how do I get the array of all
Checked checkboxes on particular button Click. Secondly, I need to
unCheck all checked Checkboxes on UnCheck button click. Following is
the Snippet. Thanks for your response






 


















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] checkbox in a repeater

2005-07-06 Thread Manish Jethani
On 7/7/05, Robert Brueckmann <[EMAIL PROTECTED]> wrote:

> …problem is, I can't dynamically set the ID of the
> checkbox and I can't seem to add any additional attributes to the checkbox
> so I know what the schema's ID is associated with that checkbox…

You can get the "repeaterIndex" of the checkbox when it's clicked. 
See this sample code:


http://www.macromedia.com/2003/mxml";>
  

  
  
function checkClick(event):Void
{
  alert(event.target.repeaterIndex + "");
}
  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] CheckBox oddity

2005-03-31 Thread Simon Fifield
Title: Message





Joan,
 
That 
works like a dream!
 
Thank 
you,
Simon 
Fifield

  -Original Message-From: Joan Tan 
  [mailto:[EMAIL PROTECTED]Sent: 01 April 2005 00:46To: 
  'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] CheckBox 
  oddity
  You are right, this is a bug. I believe there is a 
  workaround, however. You can have
   
  
   
  instead of just 
   
  and you shouldn't have that 
  problem.
   
  Thanks,
  Joan
   
  
  
  From: Simon Fifield 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 
  3:27 PMTo: flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] CheckBox oddity
  
  I 
  tried putting just a single CheckBox on the UI with no label set. When you 
  move your mouse to the right of the CheckBox you can see it highlight, 
  clicking there checks/unchecks it. When you add some text to the label 
  property you can see that this area is indeed where the textlabel is - it 
  doesn't get turned off when there is no text. 
  I 
  think that it should.
   
  Simon Fifield
   
  
-Original Message-From: Gordon Smith 
[mailto:[EMAIL PROTECTED]Sent: 01 April 2005 
00:20To: 'flexcoders@yahoogroups.com'Subject: RE: 
[flexcoders] CheckBox oddity
Is 
the problem that the CheckBox's width is too large when it doesn't have a 
label?
 
- 
Gordon

  
  -Original Message-From: Simon 
  Fifield [mailto:[EMAIL PROTECTED] Sent: Thursday, 
  March 31, 2005 12:28 PMTo: [EMAIL PROTECTED] 
  ComSubject: [flexcoders] CheckBox oddity
  Hi 
  Flexers,
   
  I've just 
  noticed an oddity with the CheckBox and I don't know how I missed it 
  before. When there is no label, the mouse events still trigger over the 
  blank label.
   
  Does anyone 
  know if this is a bug - it seems like one to me?
  (How do I 
  register bugs again?)
  Has anyone a 
  work around for this - perhaps some way of turning off the underlying 
  TextField?
   
   
  Kind Regards,
   
  Simon Fifield
   







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] CheckBox oddity

2005-03-31 Thread Abdul Qabiz

Hi,
 
It seems to be an issue to meI will verify again and file it if its not
filed already...
 
Problem:
 
Where you have a checkbox without "label" attribute, checkBox seems to take
some default width and click on right (un)checks Checkbox.
 

 
 
Workaround:
 
Add label attribute with empty string...
 

 
 
Thanks for bringing up this issue...
 
-abdul



From: Simon Fifield [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 4:57 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] CheckBox oddity


I tried putting just a single CheckBox on the UI with no label set. When you
move your mouse to the right of the CheckBox you can see it highlight,
clicking there checks/unchecks it. When you add some text to the label
property you can see that this area is indeed where the textlabel is - it
doesn't get turned off when there is no text. 
I think that it should.
 
Simon Fifield
 

-Original Message-
From: Gordon Smith [mailto:[EMAIL PROTECTED]
Sent: 01 April 2005 00:20
To: 'flexcoders@yahoogroups.com'
    Subject: RE: [flexcoders] CheckBox oddity


Is the problem that the CheckBox's width is too large when it
doesn't have a label?
 
- Gordon

-Original Message-
From: Simon Fifield [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 12:28 PM
To: [EMAIL PROTECTED] Com
Subject: [flexcoders] CheckBox oddity


Hi Flexers,
 
I've just noticed an oddity with the CheckBox and I don't
know how I missed it before. When there is no label, the mouse events still
trigger over the blank label.
 
Does anyone know if this is a bug - it seems like one to me?
(How do I register bugs again?)
Has anyone a work around for this - perhaps some way of
turning off the underlying TextField?
 
 
Kind Regards,
 
Simon Fifield
 




Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] CheckBox oddity

2005-03-31 Thread Joan Tan
Title: Message





You are right, this is a bug. I believe there is a 
workaround, however. You can have
 

 
instead of just 
 
and you shouldn't have that 
problem.
 
Thanks,
Joan
 


From: Simon Fifield 
[mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 
3:27 PMTo: flexcoders@yahoogroups.comSubject: RE: 
[flexcoders] CheckBox oddity

I 
tried putting just a single CheckBox on the UI with no label set. When you move 
your mouse to the right of the CheckBox you can see it highlight, clicking there 
checks/unchecks it. When you add some text to the label property you can see 
that this area is indeed where the textlabel is - it doesn't get turned off when 
there is no text. 
I 
think that it should.
 
Simon 
Fifield
 

  -Original Message-From: Gordon Smith 
  [mailto:[EMAIL PROTECTED]Sent: 01 April 2005 
  00:20To: 'flexcoders@yahoogroups.com'Subject: RE: 
  [flexcoders] CheckBox oddity
  Is 
  the problem that the CheckBox's width is too large when it doesn't have a 
  label?
   
  - 
  Gordon
  

-Original Message-From: Simon Fifield 
[mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 
2005 12:28 PMTo: [EMAIL PROTECTED] ComSubject: 
[flexcoders] CheckBox oddity
Hi 
Flexers,
 
I've just 
noticed an oddity with the CheckBox and I don't know how I missed it before. 
When there is no label, the mouse events still trigger over the blank 
label.
 
Does anyone know 
if this is a bug - it seems like one to me?
(How do I 
register bugs again?)
Has anyone a 
work around for this - perhaps some way of turning off the underlying 
TextField?
 
 
Kind Regards,
 
Simon Fifield
 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] CheckBox oddity

2005-03-31 Thread Simon Fifield
Title: Message





I 
tried putting just a single CheckBox on the UI with no label set. When you move 
your mouse to the right of the CheckBox you can see it highlight, clicking there 
checks/unchecks it. When you add some text to the label property you can see 
that this area is indeed where the textlabel is - it doesn't get turned off when 
there is no text. 
I 
think that it should.
 
Simon 
Fifield
 

  -Original Message-From: Gordon Smith 
  [mailto:[EMAIL PROTECTED]Sent: 01 April 2005 
  00:20To: 'flexcoders@yahoogroups.com'Subject: RE: 
  [flexcoders] CheckBox oddity
  Is 
  the problem that the CheckBox's width is too large when it doesn't have a 
  label?
   
  - 
  Gordon
  

-Original Message-From: Simon Fifield 
[mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 
2005 12:28 PMTo: [EMAIL PROTECTED] ComSubject: 
[flexcoders] CheckBox oddity
Hi 
Flexers,
 
I've just 
noticed an oddity with the CheckBox and I don't know how I missed it before. 
When there is no label, the mouse events still trigger over the blank 
label.
 
Does anyone know 
if this is a bug - it seems like one to me?
(How do I 
register bugs again?)
Has anyone a 
work around for this - perhaps some way of turning off the underlying 
TextField?
 
 
Kind Regards,
 
Simon Fifield
 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] CheckBox oddity

2005-03-31 Thread Gordon Smith
Title: Message





Is the 
problem that the CheckBox's width is too large when it doesn't have a 
label?
 
- 
Gordon

  
  -Original Message-From: Simon Fifield 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 
  12:28 PMTo: [EMAIL PROTECTED] ComSubject: 
  [flexcoders] CheckBox oddity
  Hi 
  Flexers,
   
  I've just noticed 
  an oddity with the CheckBox and I don't know how I missed it before. When 
  there is no label, the mouse events still trigger over the blank 
  label.
   
  Does anyone know 
  if this is a bug - it seems like one to me?
  (How do I register 
  bugs again?)
  Has anyone a work 
  around for this - perhaps some way of turning off the underlying 
  TextField?
   
   
  Kind Regards,
   
  Simon Fifield
   







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.