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:

  1. facing problem with Datagrid item renderer
  2. Datagrid Refresh
  3. Howto clear datagrid contents?
  4. datagrid refresh after pop up window closed
  5. Refresh Component After sorting dataprovider

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD