Could you please attach the code you have  to look into it? ( which changes
datagrid 2 when we change datagrid 1)

On Tue, Nov 17, 2009 at 8:32 AM, pradeep gorijavolu <
pradeepflex.gr...@gmail.com> wrote:

> Thanx Kiran,
>
> i was tried wht u told to me but here like i was decalred arraycollection
> without bindable
>
>  1)in the preintialize event call the initapp() and arraycollection will
> place the values and displays in to the two datagrid components
> 2)But whn we change the values in the one datagrid it wll effect in to
> other datagrid also
> so this wll occur at run time without bindable .
>
> For understanding please go through this code
> preinitialize="initApp()"
>
> private  var testArr:ArrayCollection;
>
> So please let me know how it works
>
> Regards,
> Pradeep
>
>
> On Tue, Nov 17, 2009 at 10:33 AM, Rashmi Mirajkar 
> <rashmiraj...@gmail.com>wrote:
>
>> chage declaration to
>>
>> [Bindable]
>> public var testArr:ArrayCollection;
>>
>> On Tue, Nov 17, 2009 at 1:43 AM, Kiran Kumar Vasireddy
>> <kiranv...@gmail.com> wrote:
>> > Hi Pradeep,
>> >
>> > For String and also for arraycollection data binding is not working .
>> You
>> > are getting "Pradeep" string since you initialized it where the variable
>> is
>> > declared , try changing the value to some thing in the function still it
>> > displays "Pradeep" .
>> >
>> > In the following example application is created in the followings steps
>> >
>> > 1) Created text variable and assigned value to it
>> > 2) Created label text and datagrid and assigned values to them
>> > 3) Called  initApp, since initApp is called after the data grid is
>> created
>> > you are not getting any values. try calling this method like this
>> > preinitialize="initApp()". You will get whatever you want .
>> >
>> > So no data binding is done here in either case
>> >
>> > Hope you are clear
>> >
>> > regards
>> > Kiran
>> >
>> > On Thu, Nov 12, 2009 at 10:33 PM, pradeepflex <
>> pradeepflex.gr...@gmail.com>
>> > wrote:
>> >>
>> >> Hello Friends,
>> >>
>> >> Please observe this code
>> >>
>> >> <mx:Script>
>> >>                <![CDATA[
>> >>                        import mx.collections.ArrayCollection;
>> >>
>> >>                        private  var testArr:ArrayCollection;
>> >>                        private var text:String = "pradeep";
>> >>                        public function initApp():void{
>> >>
>> >>
>> >>                                testArr = new
>> >> ArrayCollection([{First:'1',Second:'2',Third:'3'}]);
>> >>                        }
>> >>                ]]>
>> >>        </mx:Script>
>> >>        <mx:Label text="{text}"/>
>> >>        <mx:Text text="{text}" x="69" y="10"/>
>> >>        <mx:DataGrid x="30" y="46" dataProvider="{testArr}"
>> >> editable="true">
>> >>                <mx:columns>
>> >>                        <mx:DataGridColumn headerText="Column 1"
>> >> dataField="First"/>
>> >>                        <mx:DataGridColumn headerText="Column 2"
>> >> dataField="Second"/>
>> >>                        <mx:DataGridColumn headerText="Column 3"
>> >> dataField="Third"/>
>> >>                </mx:columns>
>> >>        </mx:DataGrid>
>> >>
>> >>
>> >> In this code without bindable also the string component can bind the
>> >> value into label and text component.
>> >>
>> >> incase os datagrid it wll not bind and doesn't display the value
>> >>
>> >> Please tel me the bottom lins of this mechanism.
>> >>
>> >> Regards,
>> >> Pradeep.
>> >>
>> >> --
>> >>
>> >> You received this message because you are subscribed to the Google
>> Groups
>> >> "Flex India Community" group.
>> >> To post to this group, send email to flex_in...@googlegroups.com.
>> >> To unsubscribe from this group, send email to
>> >> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com>
>> .
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/flex_india?hl=.
>> >>
>> >>
>> >
>> > --
>> >
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Flex India Community" group.
>> > To post to this group, send email to flex_in...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com>
>> .
>> > For more options, visit this group at
>> > http://groups.google.com/group/flex_india?hl=.
>> >
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to flex_in...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to flex_in...@googlegroups.com.
> To unsubscribe from this group, send email to
> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=.
>

--

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


Reply via email to