Defer TabPanel rendering sencha touch 2 - extjs

I'm working on a big application, with tabpanel containing 5 tabs.
I would like to defer the render of the not active first tab, to speed up the loading of the application.
I've seen on Ext JS that there is an attribute deferRender, but it does not exist in sencha touch.
Problems is that sencha load all the image in the others panel causing delay in loading.
Someboy know any fix ?
Thank you

Based on this question: items not loading in sencha touch 2
I made the following fiddle. Take a look, it briefly shows how it might be done: https://fiddle.sencha.com/#fiddle/k2j

Related

2sxc: Accordion App - Open / Close section state regarding of desktop / mobile view

Because 2sxc Accordion App have in settings "Initially open/close" switch for each section, I wonder is it possible to tweak this in some way to get Accordion initially open for desktop page view and initially closed for mobile page view?
It would save space / scrolling time and look more appealing in mobile page view.
Or just take this as idea for some next version of this App.
This would be fairly easy to do. I suggest you do the following:
The toggle for open/close could be replaced with the boolean-tristate, so you have a true (open), false (closed) and null (automatic).
Then adjust the razor code a bit to make this happen.
If you got it to work, it would be awesome if you could contribute your code to the app in github: https://github.com/2sic/app-accordion

Angular UI Bootstrap Carousel Pager stops working after I visit other tabs and return back

I have angular UI bootstrap's carousel directive implemented on my site. Everything is working fine and suddenly I noticed that whenever I browse to other sites, leaving my site open in one tab and come back to my site again, the pager and carousel controls stop working. It's strange but I have set my carousel to auto rotate and it also stops.
The carousel won't work until I refresh. First, I thought I had some bugs in my code, but when I tried their own slider from the https://angular-ui.github.io/bootstrap/#/carousel website, also shows the same behavior.
Any thoughts or fixes on this?
For the code, please visit this link :
https://angular-ui.github.io/bootstrap/#/carousel
And scroll down to the Carousel section and click Edit in Plunker.
Thankyou!
This is a known issue and is under investigation.

Onsen UI transition Effect delay

im developing my first app with onsen ui and angular js. I have a dude. When i navigate between differents links from my lateral menu the app show the last page before load the new page. I dont know how explain very well the problem.
The last page displayed is stuck before loading the new page.
If you want some code just tell me.
To see the problem on live my app is here: https://build.phonegap.com/apps/1282748/share
Thanks a lot

Opening a Browser window popup in ExtJS 5 MVC application

I am working on an application in which we open all the views in a tabPanel, it was pretty simple to do that.
Now we got a new requirement where we have to open the view in Browser popup window so that it can be dragged to a secondary monitor. Ext.Window will not work.
we have a single page application and not sure how i can open a view in separate browser window.
i have tried the following, but then no JS events works on the new window:
var OpenWindow = window.open('', windowName, 'width=330,height=200,resizable=0');
OpenWindow.document.body.appendChild(divObj);//divObj is a div object in which i rendered the extjs view.
it open the popup but non of the style or js is working.
please help or point some example where it is accomplished.
Thanks in advance.
When opening a new window it doesn't have any information about ExtJS at all. you will need to include extjs into the new windows html. The best way to do this is to create a new popoup index file or page to be called. so say you are using routers properly in extjs say you have a site called http://testsite.com
Then you can in your window being opened create the elements in your current application to load when calling testsite.com/#popup then you just place it into your window.open. If you are managing your calls with something like PHP and using a framework for routing you can set it up the same way and have your javascript and extjs to be called from it as well.
var OpenWindow = window.open('http://testsite.com/#popup', windowName, 'width=330,height=200,resizable=0');
Reccomend creating a router like this: Extjs Routing Guide and from there have the component brought into focus on the page and placed that url into your popup if no backend system is used. Creating a new route in a backend link would be the best way to go, but you will still need to call your extjs applications components into your new page as well.

Using Multi select grid sencha ext js 4.1

I am new to Sencha. In one of my projects I have to use a Multiselect Grid Panel and update the store to and from the Grid. I have no clue as to how to achieve this.
I will highly appreciate if someone can send me their sample code or even links that display the usage of Multiselect grids. I found a few but unfortunately those links dont use Ext JS 4.1.
Thanks guys
First, have a look at the API docs:
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.selection.RowModel-cfg-mode
http://docs.sencha.com/ext-js/4-1/#!/example
Then look at the infinite grid example:
http://docs.sencha.com/ext-js/4-1/#!/example/grid/infinite-scroll.html
Oddly enough, this example uses an undocumented "multiSelect" config on the grid... but it could have been defined on the selection model per the API docs.

Resources