If you use get and set method in your itemrender component will also be able to solve your problem.
On Wed, Dec 23, 2009 at 3:44 PM, sheetal <[email protected]> wrote: > hey Vishal,just got that.Thanks again. > > On Dec 23, 3:04 pm, sheetal <[email protected]> wrote: > > i know, i tried that.But i am nt getting the exactly event where i > > shud refresh it. > > i will explain wat is happening. > > > > on TextInput change i am checking and setting the value of data.check. > > > > Now,when this value become true,i.e the checkbox is selected, shud > > refresh.But if u see this in mxml and i refresh dataprovider on change > > event,it with not atall take the value in TextInput. > > Plz suggest. > > > > On Dec 23, 3:01 pm, vishal lad <[email protected]> wrote: > > > > > Actually you will have to refresh your dataprovider. > > > > > On Wed, Dec 23, 2009 at 3:26 PM, sheetal <[email protected]> > wrote: > > > > I tried using this method.But though the dataProvider is changed,the > > > > checkBox is not getting selected runtime. > > > > i am checking it by debugging,there it shows selected but on view it > > > > is not showing checked.How can i do that. > > > > > > On Dec 23, 10:46 am, sheetal <[email protected]> wrote: > > > > > Thanks Vishal. > > > > > > > On Dec 22, 6:11 pm, vishal lad <[email protected]> wrote: > > > > > > > > Hi, > > > > > > 1. You can loop through your arrcollection and add two extra > > > > > > properties.Say > > > > > > { > > > > > > arr[i].strText = ""; > > > > > > arr[i].chkValue = false; > > > > > > } > > > > > > 2. As your arrCollection would be bindable you can assign this > > > > values to > > > > > > your components using in your ItemRenderers > > > > > > Itemrender 1 => <TextInput > text={data.strText}/> > > > > and > > > > > > > > Itemrender 2 =><CheckBox > selected={data.strText>100 > > > > ? > > > > > > true:false} accordingly. > > > > > > In your text change event assign value to data.strText = > > > > > > txtInput.text. or directly check here the value of your textInput > and > > > > change > > > > > > the value of data.chkValue accordingly. > > > > > > > > This will solve your problem. > > > > > > > > On Tue, Dec 22, 2009 at 6:26 PM, sheetal < > [email protected]> > > > > wrote: > > > > > > > Hi All, > > > > > > > I have a datagrid and 2 itemrenderers in one row. > > > > > > > for ex.checkbox in first col and textIput in sec col. > > > > > > > I want to change the value of one on the property of other. > > > > > > > > > I want to check the checkbox when the textInput value reaches > 100.how > > > > > > > do i acheive this.i can see no way to access the check box of > the > > > > same > > > > > > > row even if i know which TextInput has changed. > > > > > > > plz share ur ideas. > > > > > > > > > -- > > > > > > > > > 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]> > <flex_india%[email protected]<flex_india%[email protected]> > > > > > > <flex_india%[email protected]<flex_india%[email protected]> > <flex_india%[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]<flex_india%[email protected]> > <flex_india%[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]<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.

