How to Create an ASP.NET Handler for a Sencha Touch Store

In this tutorial you will learn how to create a .NET server-side handler for a Sencha Touch store. Let’s begin by defining a sample Sencha Touch application with a “Hotels” store that contains data about a number of fictitious hotels. Our goal is to build the server-side .NET code that will work with the store in order to read, create, update and delete hotels information saved in a database.

To start, you will need to create a Visual Studio or WebMatrix project with the following directories:

app directories

The index.html file of the Sencha Touch app will look like this:

stores-5-index-file

Read More

Sencha Touch 2 Stores – Editing Model Instances and Reverting Changes

In this tutorial you are going to learn how to edit and save changes to the fields of a Sencha Touch Model instance, and under which conditions you can revert these changes. You will also learn how and when to query a Sencha Touch data store to obtain the records that have been updated.

The code that you will write in this tutorial is based on the application used in the Sencha Touch stores tutorial. This is a demo app that contains a Hotels Store loaded with instances of the Hotel model.

To start, you need to create the app’s directories:

st-stores-tut-1

Read More