Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid and DataSource

    Hi, I want to set the listgrid to be able to refresh and display new data whenever a selection change occurs in another listgrid. I have got it doing what I want it to, however, the outcome is very slow when there are many records. Can anybody tell me how to do this to make it quicker?

    I am currently using the ListGrid.setData() method. I have also attempted to create my own DataSource but the executefetch method is called only occasionally. Is there a way of doing this?

    P.s. The data in this second table is different data to that in the table with the selection, the data in this second table only relates to the selected data in the first table.

    Any help would be appreciated.

    Thanks

    #2
    Instead of passing the entire array as the new data, pass in a RecordList instance populated with the array data for the first grid. When you want to update data in the first grid, only update the appropriate record(s) using the RecordList API's. Changes made via the RecordList (or ResultSet) API's are automatically reflected in the grid.

    Comment

    Working...
    X