Hi,
Lets take an array Collection(dataArray:ArrayCollection = new
ArrayCollection) for the datagrid and bind the array collection with
datagrid's data Provider. And add new form info to the server. After
successful complition, add the new object to the array collection and
refresh the array collection.
Lets say: obj1:Object = new Object(); This is the object added to the DB.
After the result add it the array collection.
dataArray.addItem(obj1);
dataArray.refresh();
datagrid.dataProvider = dataArray;
Hope this will work for u.
-Sonali
On Thu, Sep 4, 2008 at 1:17 PM, HISSAM [EMAIL PROTECTED] wrote:
try using
watcher:ChangeWatcher=BindingUtils.bindSetter(changeFunction,objVBox,height);
private function changeFunction(str:String):void
{
objviewStack.height=objVBox.height;
}
this function actually binds the change of the property height of the vbox
to the property height of the viewStack
for more info visit the following:
http://labs.flexcoders.nl/2006/12/19/binding-101-changewatcher-and-bindingutils/
http://blog.flexexamples.com/2007/10/01/data-binding-in-flex/
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_7.html
Hope u get success!!
Hissam.
Please give me your feedback
On Thu, Sep 4, 2008 at 12:39 PM, Madan Narra [EMAIL PROTECTED]wrote:
Hi All,
I have a doubt regarding binding events between two components.
I divided my application into two components, one having a DataGrid, and
other having a Form.
When user selects a row in the DataGrid, am able to populate the contents
to the form in second component by passing the object.
But here comes my problem,.. If i submit the form to my server to add a
new object, after adding successfully from the second component, i need
this details to reflect in the DataGrid of the first component.
How can i achieve this ?
Hope my question is clear.
Thanks in advance
Madan N
--
-
Warm Regards,
HISSAM,
Soft Engg,
iThinkLabs Pvt Ltd.
India.
website:http://www.ithink-labs.com
--
--~--~-~--~~~---~--~~
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_india@googlegroups.com
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
-~--~~~~--~~--~--~---