PDA

View Full Version : Ext.ux.ajax.SimManager - delay is undefined



hermann.s
13 Feb 2014, 10:02 AM
Has anyone else succeeded in using the SimManager?

I can't seem to be able to get it working, no matter what I try.
Anyone with a working example?


function initAjaxSim () {
Ext.ux.ajax.SimManager.init({
delay: 300
}).register(
{
'/app/data/url': {
stype: 'json', // use JsonSimlet (stype is like xtype for components)
data: [
{ id: 1, name: 'user1', age: 25 },
{ id: 2, name: 'user2', age: 35 },
{ id: 3, name: 'user3', age: 45 }
]
}
}
);
}

Gary Schlosberg
13 Feb 2014, 10:23 AM
This thread has an example that might help you:
http://www.sencha.com/forum/showthread.php?269844

hermann.s
14 Feb 2014, 1:22 AM
I do not have permission to access that page.

Gary Schlosberg
14 Feb 2014, 9:07 AM
Apologies, didn't notice that it was Premium. Here's the Fiddle from the thread:
https://fiddle.sencha.com/#fiddle/8a

I've not used SimManager myself, but here's a tutorial I found that might help.
http://extjs-tutorials.blogspot.com/2012/01/extjs-ajax-simulate-jsfiddle.html

dirtdevil
14 Mar 2016, 10:52 AM
When I run that fiddle, I get an error saying SimManager is undefined and I'm still getting that same delay error when I run the SimManager in my non-fiddle code.

btw. I'm using ext6.