Questions tagged [sencha-touch-2]

JavaScript framework for mobile devices, UI interface, DataAccess and encapsulation.

Sencha Touch 2 is the second version of Sencha Touch, developed by Sencha.

It is a Javascript framework based on well-known Ext JS library and used to create cross-platform mobile devices webapps (Android 2.3+, Blackberry, Windows Phone 8 and iOS 4+).

With this new version, it is possible to package applications as native.

Official documentation and description can be found at: http://docs.sencha.com/touch/

3849 questions
7
votes
1 answer

Prev and next buttons for pickers in Sencha Touch 2

I'm building an App for Android, iOS and Blackberry with Sencha Touch 2.0.1. I have a Form-Panel with about 10 selectfields and some sextfields. If i ran the app on Android 2.3 or higher, the selectfields are shown as pickers. So far so good. When…
dom
  • 101
  • 5
7
votes
2 answers

Unable to add event on Google map Infobox

I am using Infobox with Google Map V3 (attached image). While clicking on Infobox, I want to go to a details page. But I am not able to add a click listener on the infobox. Here is the code I am using: This is my infobox config: var ib = new…
7
votes
3 answers

Disable store load mask in Sencha 2

The Sencha store is automatically adding a ajax loader mask when populating the store, but I want to hide it since I have made a more generic mask which is shown every time the app does a ajax request. How can I hide the store load mask? Tried to…
Thomas Vervik
  • 4,325
  • 9
  • 36
  • 64
7
votes
1 answer

How does Sencha Touch 2 cleanup resources

I'm starting to work with Sencha Touch 2 and I just wondered how does it (if even) handle resource cleanups. In particular: imagine we have a bunch of controllers which are triggered by url redirects. Will those Controller instances be cached or is…
Christoph
  • 26,519
  • 28
  • 95
  • 133
7
votes
1 answer

Loading associated data in Sencha Touch without nesting

I'm working on a basic Sencha Touch application that displays a list of text messages and the name of an associated user that sent the message. I have followed the tutorials online on how to setup model associations but each tutorial assumes that…
Noah Watkins
  • 5,446
  • 3
  • 34
  • 47
7
votes
1 answer

How to use webfont with @font-face

I want to change the font in my application to a custom font but the following code is not working: @font-face { font-family: "ArnoProBold"; src: url("resources/fonts/ArnoProBold.ttf"); } @font-face { font-family: "ArnoProCaption"; src:…
Rithesh
  • 101
  • 6
7
votes
3 answers

How to destroy an inactive view in Sencha Touch

i stuck with a problem which is really important i guess. In a simple Sencha Touch App I have many views. My Mainview is a TabPanel with docking icons in the bottom. Sometimes in my App I switch to another views which are outside of the Tabpanel. I…
Phil
  • 182
  • 1
  • 4
  • 16
7
votes
2 answers

Error in building Sencha Touch 2 application

While I am building my sencha touch 2 app using the command:- sencha app build production but it throws an error: [INFO] Deploying your application to /Applications/MAMP/htdocs/iPadapp/build/production [INFO] Copied sdk/sencha-touch.js [INFO]…
heyjii
  • 834
  • 8
  • 26
7
votes
2 answers

How to Add a Button to Each Row of a List?

How can I add a Sencha button to each row of a list? I've added text placeholders in the image to illustrate where the buttons should go. Ext.application({ launch: function() { var view = Ext.Viewport.add({ xtype:…
user568866
6
votes
1 answer

Display a list from nested json: Sencha Touch 2

I have a list that displays a list of restaurants with the logo of the restaurant etc. The view Ext.define('Test.view.Contacts', { extend: 'Ext.List', xtype: 'contacts', config: { title: 'Stores', cls: 'x-contacts', …
Wadester
  • 453
  • 4
  • 12
6
votes
1 answer

Ext.define/Ext.extend in Sencha Touch 2

I'm just starting to pick up Sencha Touch 2 MVC. I have heavy Ext 3 experience, but this is a totally new world. I can't seem to get very far in building a view. I've taken my code in two directions based on what I've seen on the Internet, and…
spamguy
  • 1,575
  • 2
  • 17
  • 37
6
votes
2 answers

Sencha Touch 2: Insert into TreeStore/NestedList

I'm using a NestedList with a underlying TreeStore. Now I want to add items to the NestedList as leafs. How can I do this? Currently my code (Controller, onAddButtonTapped) looks like this: var store = Ext.getStore('menuStore'); var…
Mahatma_Fatal_Error
  • 720
  • 1
  • 10
  • 26
6
votes
2 answers

Web application using Play framework and sencha

Ok, I have been thinking of developing a web application using the play framework as my back-end service and sencha for my front end stuff. Now I have been also looking into sencha touch and phonegap, which can help me make a native android…
6
votes
3 answers

Cannot use getApplication() in a store or a view

I'm writing a simple Sencha Touch 2 Application with the new MVC Pattern of the Framework - so, there are models, stores, controllers and views and all is tied together with an Application. Now, there is the possability to use…
jebbie
  • 1,418
  • 3
  • 17
  • 27
6
votes
1 answer

What is the purpose of Ext.require

I'm trying to migrate an app from Sencha-Touch 1 to Sencha-Touch 2 and I can't figure out what is the exact purpose of the following piece of code : Ext.require([ 'Ext.XTemplate', 'Ext.Panel', 'Ext.Button', 'Ext.List', …
Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121