Then it should be very easy to produce a standalone test case.
Announcement
Collapse
No announcement yet.
X
-
I have been having trouble with interaction between ListGrids and clientOnly:true datasources when it comes to removing records.
After much poking around, the simplest example of failure I could come up with is the following:
Open the feature explorer:
/isomorphic/system/reference/SmartClient_Explorer.html#localDataSource
OR browse to the 'Data Binding' > 'Lists' > 'Local DataSource' example.
Go to the JS tab and add the line canRemoveRecords:true so that it looks as follows:
Code:isc.ListGrid.create({ ID: "countryList", width:500, height:224, alternateRecordStyles:true, showAllRecords:true, dataSource: countryDS, autoFetchData: true, canRemoveRecords:true })
Although the red crosses appear by each row, if I click one, the record does not disappear.
I would expect the behaviour of a clientOnly datasource to be that when I click remove, the record is removed from the testData set.
Programatically calling removeSelectedData or removeData(primary_key) on the ListGrid also do not result in the records disappearing.
Behaves this way on SmartClient 7.0rc2 (& nightly SmartClient_SC_SNAPSHOT-2010-07-17) on Win:IE8 IE7 OSX:FF Chrome Safari
Comment
-
Originally posted by IsomorphicYou're the only one experiencing this "bug" while others are reporting that it works.
Don't file a ticket. Try producing a standalone test case instead.
Comment
-
I add datasource to a listgrid and use the ds just for client-only. prior to smartgwt 2.2 releases,we use the following two code lines to clear the data in the list grid and it worked fine:
listgrid.invalidateCache();
listgrid.getDataSource().setTestData(null);
now we use Smartgwt2.5(we also tried the previous ones after 2.2)and we cannot clear the listgrid data.
Comment
Comment