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:
- DataGrid REFRESH Problem
- facing problem with Datagrid item renderer
- checkboxes in datagrid
- Problem with datagrid dataprovider
- problem with Datagrid.selectedItem
Related posts brought to you by Yet Another Related Posts Plugin.