Announcement

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

    Correct way to remove entries from ListGRid

    All

    I have the following code where I insert data into a ListGrid

    Code:
    this.display.getListGrid().addData(record);
    Now when I want to remove an entry as an update has come from the server, what is the correct way?

    Do I create a new ListGridRecord and then call getListGrid.removeData(record)?

    Or should I search the grid for the record like

    Code:
    DataRecord record = (DataRecord)this.display.getListGrid().getRecordList().find(DataRecord.GRID_ID, Id);
    
    this call getListGrid().removeData(record);
    Thank you

    #2
    It seems after 20 minutes of inserting and removing / updating items the list grid starts to loose track of the items and old records still end up in the grid. What performance can the ListGrid handle? Should it only be used to search a database table and returning records? or can it handle add/update/remove quickly

    Comment


      #3
      No, the ListGrid has no such limitation. Start by reading the QuickStart Guide - it looks like you don't yet understand the basics of databinding and DataSources, which is very fundamental.

      Comment

      Working...
      X