Results 1 to 4 of 4

Thread: MVC in Extjs

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6

    Default MVC in Extjs

    I am developing a yousendit like application in extjs. I have created some web-applications in extjs.So, I know about layouts, graphs, components, viewport etc..

    But I like to go in MVC way ! Please help me in posting some tutorials.

    This Tutorial explains about the row editing grid.
    http://www.sencha.com/learn/the-mvc-...-architecture/
    But this is old and it uses row editing grid. I want to create a grid in a border layout viewport . And the tbar of the grid config has some buttons. say Add, Delete, Edit. On clicking, Add button a panel/window must appear with columns to be inserted into DB. The same is for Delete & Edit.

    Like the above feature I have created a web app. But all i want to know is how to do that in MVC way?

    Any Tutorials regrading that ?

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,257
    Answers
    759

    Default

    The guide you linked is still relevant, you can follow exactly the same principles to build your application.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6

    Default

    Let my hands get dirty on the /examples/simple-tasks/ in the SDK.

    Thanks for the reply evant.

  4. #4
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6

    Default

    Today, I got time to review the MVC structure for examples/app/simple,

    There, I found a code for updateUser & this does the trick for saving the data in the back-end.

    Please let me know how the below code works to synchronize data which we haven't declared anywhere - getUsersStore() ?

    Code:
    this.getUsersStore().sync();

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •