hello,
I’m used with jqwidgets to use “updateboundata” to refresh for example my grids.
But there is no method like this to refresh cards.
The only way I’ve found to refresh my cards is to create new adapters.
Is it the right way ?
for example I have a refresh button, my code is :
$(‘#bt_Refresh’).on(‘click’, function(){
// —
// here, some code to create a new array aDataEquipeEPS
// —
aSrcAdapter.dataSource = aDataEquipeEPS;
oAdapterCard = new Smart.DataAdapter(aSrcAdapter);
oMyCardView.dataSource = oAdapterCard;
});
(on jqwidgets, I don’t creat new adapter, I just change my localdata and ask for an updatebounddata.)
here is an example on codepen :
https://codepen.io/mogador/pen/GRLJGXW
I already have created the oAdapterCard on initialisation, but I don’t know how to modify it without creating a new adapter.
(sorry for the poor language explanations, my english is quite bad…)
fabriceb