Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

AddData and ClientOnly datasources

$
0
0
SmartClient Version: v10.0p_2014-09-30/LGPL Development Only (built 2014-09-30)

I have a client-only DataSource backing a ListGrid that I am trying to update based upon events my client is receiving. Some of these updates indicate new records being added.

I am doing the add by calling ListGrid.addData method. Sometimes this is not working correctly. The record shows up in the DataSource (as seen by calling getCacheData) but never appears in the ListGrid (as seen by calling getRecords - there are no filters on the grid).

I noticed in the DataSource.addData documentation it says this should never be called on a client-only data source (and my data source is client-only). But the ListGrid.addData documentation does not mention this. Does the same restriction apply to ListGrid.addData? If so, is it possible that this could that be the cause of the problem?

Viewing all articles
Browse latest Browse all 4756

Trending Articles