I have a datagrid in my project. It lists all the tasks from
the database. When i create or delete or update a task, the
datagrid is not refreshing to show the updated tasks. Can anyone
help on this? Thank you|||
try this:

dataGridName.invalidateList();|||
Thank you for the reply. But It us not working.|||


“rocknrollcar” <webforumsuser@macromedia.com> wrote in
message

news:g67jes$dcu$1@forums.macromedia.com…

>I have a datagrid in my project. It lists all the tasks
from the database.

>When

> i create or delete or update a task, the datagrid is not
refreshing to

> show the

> updated tasks. Can anyone help on this? Thank you

What are you using as the dataProvider? How are you adding to
the

dataProvider? Are you calling the refresh() method on your
dataProvider?

|||
Data Provider is a XMLListCollection

<mx:XMLListCollection id=”tasksXLC”
source=”{XMLList(tasksindex.lastResult.children())}”/>

<mx:DataGrid id=”tasksGrid” width=”100%” height=”100%”
dataProvider=”{tasksXLC}”>

<mx:columns>

<mx:DataGridColumn headerText=”Name” width=”300″
dataField=”name”/>

<mx:DataGridColumn headerText=”Description” width=”150″
dataField=”description”/>

</mx:columns>

</mx:DataGrid>

Related posts:

  1. DataGrid REFRESH Problem
  2. facing problem with Datagrid item renderer
  3. checkboxes in datagrid
  4. Problem with datagrid dataprovider
  5. problem with Datagrid.selectedItem

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