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
1
vote
1 answer

How can I get a Store in a Controller to bind data to a View?

I have a Controller with a handler onLogin() that gets called after a successful log in request: Ext.define('AddressBook.controller.Application', { extend: 'Ext.app.Controller', ... onLogin: function(form, record) { var editButton =…
Olivier de Jonge
  • 1,454
  • 2
  • 15
  • 31
1
vote
1 answer

getter returning undefined

i am using sencha touch 2 to build an app. i Have the following view: Ext.define("DRT.view.Pbox", { extend: 'Ext.form.Panel', xtype: 'pboxcard', config: { floating: true, centered: true, modal: true, …
keshav
  • 866
  • 11
  • 19
1
vote
1 answer

Sencha Touch 2 dynamic button on Navigation View

I'm trying to initialize() and destroy() dynamically a button on Navigation View's bar from another view. Button is created fine, but I can't remove it... Tried also hide(), but it's being called twice and isn't helpful. So I'm officially stuck,…
eistrati
  • 2,314
  • 6
  • 26
  • 35
1
vote
2 answers

How to create MVC from simple app.js in Sencha Touch 2

I have a simple login form that after a correct login slides to the next view. A combination of two examples I found. I want to divide this login over several files using the MVC pattern. In many examples I have seen on the web this is a piece of…
Olivier de Jonge
  • 1,454
  • 2
  • 15
  • 31
1
vote
1 answer

Appending to list not updating on pull to refresh

I am still new to ST so I am probably doing several things wrong here but I can't figure out where the problems are. Problem 1 when I use the pull to refresh plug-in, I get double the data instead of it just refreshing the data. I have seen to use…
codeMagic
  • 44,549
  • 13
  • 77
  • 93
1
vote
3 answers

Sencha Touch 2 Get Current Location on Button Click

I have a toolbar button which when clicked should update my map to my current location. I am unable to find a working example of this functionality and hoping someone can advise me. Please see below for sample code - thanks for your…
Arkady
  • 393
  • 2
  • 9
  • 29
1
vote
1 answer

Sencha - Syncing store to MySQL Database with JSONP?

I'm attempting to both display a list from data in an external MySQL database and to insert records to the same database from a Sencha Touch App. After much confusion I was able to read and display the records using: Ext.define("App.store.Share",…
JoshTFS
  • 27
  • 8
1
vote
2 answers

Why does sencha build app fail?

I'm allways running into this exception when I try to build my app with the sencha commandline tools. However, other apps seem to work fine. What am I missing? UPDATE I figured out it has something to do with the fact that I want my buildPath to be…
Christoph
  • 26,519
  • 28
  • 95
  • 133
1
vote
1 answer

Sencha Touch 2 - togglefield alignment to the right inside a fieldset component

does anyone know how to align a togglefield in Sencha Touch 2 to the right side of the fieldset component? Having this simple example: Ext.widget("fieldset", { items: [ { xtype: 'togglefield', label: 'Toggle 1', …
1
vote
1 answer

How to change color of Done and Cancel button of select Field in sencha touch 2 framework

// Hi i am using sencha touch 2.0 framework . I used selectfield in my project the thing is that i need to change the color of done and cancel button of the selectfield. But those picker buttons are not visible in browser but appearing in android…
swathi001
  • 49
  • 3
  • 10
1
vote
1 answer

Sencha Touch Grouper Property Conversion

I have a list reading from a Json store which contains a grouper on a field of type int. This field is called "req" in the sample model below. However, rather than group by the int value, I would like to assign a text value instead, so for example,…
Arkady
  • 393
  • 2
  • 9
  • 29
1
vote
1 answer

Is it possible to add a button to a fieldset title in sencha touch?

I would like to add a button in the fieldset title. Maybe something like this: var btn = Ext.create('Ext.Button', { text: 'my button' }); ... xtype: 'fieldset', title: 'my title' + btn Is something like this possible. I really don't want to…
squistbe
  • 305
  • 1
  • 3
  • 18
1
vote
1 answer

Sencha Touch 2- Parsing Store JSON file containing Array

I have the following JSON file I would like to parse into my Sencha Touch application. I cannot figure out what type of "store" (Store, JsonStore, ArrayStore, etc.) to use and what the "field" setup would be like. Each "datapoint" in the array…
1
vote
1 answer

WebStorm project template

Is there a way to have our own project template. For example I would like to use it with sencha touch2 and create automatically the mvc folders structure for each new project created. Any experience or help will be welcomed.
Alain BUFERNE
  • 2,016
  • 3
  • 26
  • 37
1
vote
1 answer

Sencha touch 2.0 Calendar Plugin Run Issues in production, package and device

I have implemented this calendar in my app developed in sencha touch 2.0 and I face a problem.When I run my application source code in a web browser, Calendar works fine. But when I generate the production & package of the app the calendar not work…
1 2 3
99
100