PDA

View Full Version : MVC in Extjs



gameboy87
15 May 2013, 5:52 AM
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-application-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 ?

evant
15 May 2013, 7:21 PM
The guide you linked is still relevant, you can follow exactly the same principles to build your application.

gameboy87
15 May 2013, 10:14 PM
Let my hands get dirty on the /examples/simple-tasks/ in the SDK.

Thanks for the reply evant.

gameboy87
23 May 2013, 6:11 AM
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() ?



this.getUsersStore().sync();