Pradeep if u could help me code . that would be great


On Wed, Aug 3, 2011 at 10:58 PM, Pradip Jadhav <[email protected]>wrote:

> Hi Malek,
>
> Please follow the steps below;
>
> 1. add new property isSelected to every object of your data provider.
> 2. in set data function of item renderer check whether isSelected is
> true or false. If it is true then set checkbox selected to true else
> set selected as false.
> 3. whenever you want to set all selected, just loop through your
> dataprovider and set isSelected to true;
> 4. Refresh dataprovider i.e. dataProviderCollection.refresh();
>
> Thanks,
> Pradip Jadhav
>
> On Aug 3, 5:51 am, Malek S <[email protected]> wrote:
> > Hi ,
> > Thanks for your reply but this not i am looking for
> >
> > actually i have checkboxList which is extending List component
> > inside List i have checkboxListItemRenderer which uses checkbox.
> >
> > Now i want Button inside checkboxList on click of which all checkboxes
> get
> > selected.
> >
> >
> >
> >
> >
> >
> >
>  > On Wed, Aug 3, 2011 at 4:15 AM, Manik <[email protected]> wrote:
> >
> > > Declare a boolean bindable variable
> >
> > > [Bindable]Private var allselected:Boolean = false;
> >
> > > Bind the selected property of all checkboxes to this variable.
> >
> > > <mx:Checkbox selected={allselected} />
> >
> > > Toggle the value of allselected variable in keydown handler.
> >
> > > Another way is to set it manually in keydowbhandler -
> > > Chkbox1.selected = true;
> > > Chkbox2.selected = true;
> >
> > > Hope this helps!
> >
> > > Manik
> >
> > > On Aug 2, 6:34 am, Malek S <[email protected]> wrote:
> > > > I want to perform selection on KeydownHandler how do i do it
> >
> > >  > On Tue, Aug 2, 2011 at 2:07 PM, Malek S <[email protected]> wrote:
> > > > > HI All,
> > > > > I have list which contains multiple checkbox.
> > > > > I want to know how can i programmatically select all the checkboxes
> > > > > together.
> > > > > currently when i am clicking by mouse , i am able to select all the
> > > > > checkboxes
> >
> > > > > regards
> > > > > Maleks
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Flex India Community" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex_india?hl=en.
>
> --
>  You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to