Hii,
I want to refresh the datagrid contents based on my custom
event.
One of my component(say X) has datagrid and in the other
component (say Z)am making selection among several fields and while
I click the Submit button, am dispatching a custom event.
Then, am listening this event in the component(X), there am
making a call using remoteobject and populating the results in the
arraylist(it’s already the dataprovider of datagrid).
So, here is the problem, as datagrid contents are not getting
updated.
Can anyone guide me like what could be the problem.
Thanks.
Manu.|||
Unless you have used a Binding, datagrid.dataProvider doesn’t
know you’ve changed the data in the source array.
Just add datagrid.dataProvider = newArrayList to reset the
data in the datagrid.
Doug|||
Also, remember that data service calls are asynchronous. You
cannot access the data in the same function in which you invoke
send(), but must either bind or use a result handler.
Tracy
Related posts:
- facing problem with Datagrid item renderer
- Datagrid Refresh
- Howto clear datagrid contents?
- datagrid refresh after pop up window closed
- Refresh Component After sorting dataprovider
Related posts brought to you by Yet Another Related Posts Plugin.