Hey adi....

do you have any field for checkbox in your dataprovider?

if you do not have it then before provide data to your dataprovider
you add it like "xml.appendChild(<selected>false</selected>);"

and then in itemrenderer of your checkbox do like this _data.selected
= cbx.selected;

and how you are reloading your datagrid i mean after any particular
operation how the new data get loaded in the dataprovider.

well i think if the flow for first time data load and after the
operation data load is same then your datagrid refresh in every
operation.

So try out the solution i gave you, hope it will work.

thanks
nikhil

On Jun 11, 1:53 am, Sri <[email protected]> wrote:
> Please share your code. Then only we can give the correct solution
>
> --
> SRI
>
> On Jun 10, 10:16 am, Ravi Mishra <[email protected]> wrote:
>
> > Adi,
>
> > Please try to call the following the moment you get the call back from
> > server after the delete operation completes.
>
> > (yourDatagrid.dataprovider as ArrayCollection).refresh();
>
> > I think this should work, and if it doesn't... can u pls share ur code
> > snippet?
>
> > -Ravi
>
> > On Jun 10, 4:23 pm, adi <[email protected]> wrote:
>
> > > Thanks for the reply Ravi,
>
> > > My Problem Scenario:
> > > 1) I have a dataGrid column that has an inline component as Check box
> > > 2) I will Click on the check boxes of multiple records and in the end
> > > I will clcik on the save burron that will do the soft delete operation
> > > for all the records for which the check boxes were selected
> > > 3) once the operation is over I want to show the page back and none of
> > > the Check boxes should be shown as selected (Because thsi may confuse
> > > teh user)
>
> > > Now teh issue si that I am not able to set some thing taht will make
> > > sure that none of the check boxes those get selected are shown
> > > selected.
>
> > > Aprt from this one more problem that is eating my head is , everytime
> > > it comes back, it shows a different check box as selected and not the
> > > one that I selected before hitting the save. So looks like it is
> > > dancing :)
>
> > > Let me know how to refresh teh data provoder if any ways it is realted
> > > to this problem. Alos please tell me how to reload complete MXML
> > > everytime it comes back from the server
>
> > > Regards
> > > Aditya
>
> > > On Jun 10, 11:55 am, adi <[email protected]> wrote:
>
> > > > Problem:
>
> > > > I have a check box being displayed as an inline component in one of
> > > > the columns of a datagrid.
>
> > > > I select the check box and then do the server side operations based on
> > > > the selected ones. Once it comes back to the Flex after pefroming the
> > > > operations, I want to show all check boxed as unchecked only. But it
> > > > doesnt.
>
> > > > I tried all events like initialize, creationComplete and selected =
> > > > false etc , but none of them seem to be working.
>
> > > > Need to find a way I can set all of them unchecked as soon as the
> > > > control comes back to flex.
>
> > > > I am not able to catch as what is the event or parameter i need to
> > > > work on when the control comes back to Flex.
>
> > > > Give suggestions
>
> > > > regards
> > > > Aditya- Hide quoted text -
>
> > - Show quoted text -

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