Hi Sowmya ,

   I got an idea to solve your problem.

    if you select a checkbox the change event will be called
    public function valueCheck(event:Event, chk1:Object):void
    {
             if(chk1.selected)
              {
                    Alert.show(“Hi I am selected”);
                   // Add coding here and store the selectedItem of the
DataGrid in ArrayCollection as Object
              }
              if(!chk1.selected)
              {
                     Alert.show(“Hi I am not selected”);
                   // Add coding here and remove the selectedItem of the
DataGrid from the ArrayCollection
               }
    }

So now when you click the save button u can use the ArrayCollection which is
containing the selected checkbox data as object to update the Java.

Hope this idea could help you,

I dont have a code right now. if you cant solve then let me know so that i
will try and get back to you.

Regards,
Raghunathan M


On Fri, Jan 29, 2010 at 10:20 AM, Raghunathan Mohan <
[email protected]> wrote:

> Hi Sowmya,
>
>
>
> On Fri, Jan 29, 2010 at 2:08 AM, FlexiSush <[email protected]> wrote:
>
>> hey u can check out
>>
>>
>> http://flexphpworld.wordpress.com/2010/01/28/using-checkbox-as-item-renderer-in-datagrid
>>
>>
>> On Jan 27, 1:43 am, Soumya Here <[email protected]> wrote:
>> > Hi All,
>> >
>> > In my case, I got an ArrayCollecion from RemoteObject call and populate
>> a
>> > Datagrid for display in front end.
>> >
>> > There I want to add a checkbox for select a specific row of data from
>> that
>> > Datagrid and at the end when I click on the save button I want to catch
>> only
>> > the selected rows so that I can send to backend java for update the DB.
>> >
>> > I create and render a checkbox for that purpose and I also able to show
>> that
>> > rendered checkbox to that Datagrid, but not able to proceed
>> > further......Need some code.
>> >
>> > Please help me out.
>> >
>> > Thanks in advance.
>> >
>> > Thanks,
>> >
>> > Soumya
>>
>> --
>> 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]<flex_india%[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