Questions tagged [extjs-mvc]

Attempt to implement MVC-like pattern in ExtJS framework, using the terms from the pattern and some of the concepts.

The following is how ExtJS defines "MVC" in their codebase:

Model is a collection of fields and their data (e.g. a User model with username and password fields). Models know how to persist themselves through the data package, and can be linked to other models through associations. Models work a lot like the Ext JS 3 Record class, and are normally used with Stores to present data into grids and other components

View is any type of component - grids, trees and panels are all views.

Controllers are special places to put all of the code that makes your app work - whether that's rendering views, instantiating Models, or any other app logic.

651 questions
7
votes
2 answers

Where does ExtJS Action fit into MVC pattern

I really like concept of ExtJS Actions. I looked at this example and it is (almost) exactly what I need. Only thing is that I'm trying to use MVC pattern. I have: invoicelist (view) Inovice (controller) Invoice (model) Invoices (store) Where and…
Milan
  • 969
  • 2
  • 16
  • 34
7
votes
2 answers

how to prevent window from closing on ESC extjs 4

I am stuck with one problem with one problem in stop the window from closing using ESC button. The window gets closed as soon as I click the ESC button from my keyboard. I want the window should not close, instead it should prompt a message box…
Yogendra Singh
  • 553
  • 4
  • 12
  • 33
7
votes
4 answers

extjs combo won't stop loading 4.07

I have 3 combo box's. When you click the first box the second box needs to update showing the relevant data. I select the first combo the second box updates perfectly. However if i try the same steps again the second box doesn't stop loading ( see…
frosty
  • 5,330
  • 18
  • 85
  • 122
7
votes
2 answers

ExtJS Application Event Woes

EXTJS 4.1 I have run into a bit of a conundrum and would love to hear some other developers input on this scenario regarding ExtJS events and controller methods. I understand this topic has been covered and debated on numerous occasions but I feel…
John Hall
  • 1,346
  • 13
  • 27
7
votes
1 answer

Understanding how stores models are referenced/loade/instantiated in Extjs 4.2 MVC pattern

Using Extjs 4.2 I have read many docs,google,forums trying to understand how components load and where to place them such as stores, models, ect but still confused. This is an example I am trying to get working Application description Main menu with…
dan
  • 2,857
  • 6
  • 34
  • 60
7
votes
2 answers

Update method bug in extjs

In my extjs project, I have some panel's to which I am showing toolbar on mouseEnter event. This is working fine. But when I just update the panel with new html then the mouseenter event is not working on it. panel.update('hello'); Then I realised…
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
7
votes
2 answers

Major changes to MVC in ExtJS4.2?

I recently heard that there are some major changes coming up with 4.2 concerning the way a MVC application work. I downloaded the beta but the API seems all in all the same. Can anyone explain me the upcoming changes and what thats all about? Do I…
seba
  • 974
  • 2
  • 10
  • 30
7
votes
6 answers

how to get the server response.responseText after store load extjs 4

I'm having one problem with getting the response.responseText from the server response in extjs 4. Below is my code to load the store: store.load({ params: { 'projectid': this.projectid }, callback: function (records, operation,…
Yogendra Singh
  • 553
  • 4
  • 12
  • 33
6
votes
1 answer

Exj JS 5, Access Store/Model from ViewController

I want to load item/items from ViewController. Here is an example: Ext.define('MyApp.model.User', { extend: 'Ext.data.Model', fields: ['name', 'email'], proxy: { type: 'rest', ... } }); Ext.define('MyApp.store.User', { …
Alexandr
  • 9,213
  • 12
  • 62
  • 102
6
votes
1 answer

View Reference in Controller EXTJS 4

I am not able to get combobox value in a controller. The getter method of combobox view returns function i(){ return this.constructor.apply(this,arguments)||null } instead of view object instance. If I use var…
Rakesh Goyal
  • 3,117
  • 8
  • 39
  • 69
6
votes
4 answers

Rendering ExtJS 4+ MVC application in a html div - how-to?

All examples that I have found so far explain how to render ExtJS (4.2) MVC application within the "viewport", which in other words means full browser screen, and occupying whole HTML BODY. I would like to render application within the existing HTML…
ljgww
  • 3,418
  • 6
  • 19
  • 21
6
votes
3 answers

EXT JS 4 use an model association to render a grid display value

Details I have a grid used to display invoice information. The grid is populated using the Invoice store, the Invoice store uses the Invoice model, the Invoice model has a "has one" association with the InvoiceStatus model with a primary key of 'id'…
Levi Putna
  • 2,863
  • 6
  • 30
  • 47
6
votes
3 answers

ExtJS Architecture for Multi Page Application

I have a .NET application in which most of the UI is custom. On some of the pages, I am using ExtJS4 components, such as Grid, to display a table of Users for example. I also have another page where I display a user profile, and another page where…
raj
  • 81
  • 1
  • 5
6
votes
1 answer

Extjs How to stop reloading a store

I'm building an application using Ext Js MVC approach. I have a couple of combos on different views bound to one store. The store is set to query: remote and autoLoad: false and loads its data from server. The problem every time I change the view…
user49126
  • 1,825
  • 7
  • 30
  • 53
6
votes
1 answer

How to get application from view?

How can I get my application from a view? For example consider I have an application Boo and there's a view that named Boo.view.Foo.List and I want to get Boo in the view List. Edit: See this code, and look at the line…
Afshin Mehrabani
  • 33,262
  • 29
  • 136
  • 201
1
2
3
43 44