Mar 11, 2013, 6:25 PM
[FIXED] [#173] [4.4.1] Dataview animated plugin error when items have changed
Hi,
I am trying to implement the DataviewAnimated plugin.
It works fine until i change the users in the Dataview through a directevent.
After the number of users has changed it throws an error saying it cannot set the style.
It is trying to find the old users that were in the dataview previously.
Is there a way to reset the dataviewanimated plugin to use the new data.
The javascript error it is throwing on in as follows.
"Cannot call method ApplyStyles of null"
Thanks
Fergus
I am trying to implement the DataviewAnimated plugin.
It works fine until i change the users in the Dataview through a directevent.
After the number of users has changed it throws an error saying it cannot set the style.
It is trying to find the old users that were in the dataview previously.
Is there a way to reset the dataviewanimated plugin to use the new data.
The javascript error it is throwing on in as follows.
"Cannot call method ApplyStyles of null"
Ext.iterate(added, function(id, item) {
Ext.fly(this.dataviewID + '-' + item.internalId).applyStyles({
top: newPositions[item.internalId].top + "px",
left: newPositions[item.internalId].left + "px"
}).setDisplayed(true);
Ext.fly(this.dataviewID + '-' + item.internalId).animate({
remove: false,
duration: duration,
opacity: 1
});
}, this);
this.cacheStoreData(store);
Thanks
Fergus
Last edited by Daniil; Mar 15, 2013 at 12:02 PM.
Reason: [OPEN] [#173]