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
0
votes
1 answer

Share functions between EXTJS and Touch Apps that follows MVC pattern - Sencha Workspace

I am creating an Web App and a Mobile App using Sencha while doing so I am following sencha's recommended MVC pattern to develop these apps Sencha recommends to create Worksapce and then create extjs and touch applications one by one inside the…
Mrinmoy
  • 1,611
  • 3
  • 18
  • 20
0
votes
2 answers

Itemclick and itemmove in EXTJS MVC

Am having a tree panel in my view, and its corresponding controllers. What is happening is that am having two controllers, one for the itemdblclick and another for itemmove. The itemdblclick is working ok, but when i add the controller for itemmove,…
rosebrit3
  • 523
  • 1
  • 18
  • 32
0
votes
2 answers

EXTJS MVC Tree store

Am having a tree view which gets its data from the tree store. But, however, am able to see only the small folders that gets displayed as part of a tree structure. the name of the nodes is not getting displayed, and when i try to print the record,…
rosebrit3
  • 523
  • 1
  • 18
  • 32
0
votes
2 answers

extjs4 MVC Scope Issue

I am trying to call resetCombo method once i click on link from tooltip which is rendered on combo But i am not able to access it because of scope issue not sure what i am missing. Please help me on this. Ext.define('test.BasicForm', { …
Elango
  • 1
0
votes
3 answers

Firing application wide events from button handlers

I have this gridPanel: Ext.define('BM.view.test.MacroList', { extend: 'BM.view.GridPanel', alias:'widget.macro-test-list', store: 'Tests', initComponent: function() { this.columns = [ { xtype:'actioncolumn', …
bldoron
  • 1,050
  • 4
  • 20
  • 37
0
votes
2 answers

Extjs4, How to call controller action method from view?

I want to call method in controller from view when click a cell in grid. { header: "", width: 30, dataIndex: 'documents', sortable: true, renderer: this.hasDocument, listeners: { …
Expert wanna be
  • 10,218
  • 26
  • 105
  • 158
0
votes
0 answers

EXT JS 4 MVC click event on a div

I was wondering if it's possible to catch a click event on a certain div from the controller in an EXT JS 4 MVC app. Lets say we have: Ext.define('MyApp.controller.myController', { extend : 'Ext.app.Controller', init : function() { …
0
votes
4 answers

How to change LoadMask text in ExtJS

Is there a way to change Ext.LoadMask.msg on ExtJS 4.1 MVC Application globally?
s.webbandit
  • 16,332
  • 16
  • 58
  • 82
0
votes
2 answers

EXTJS MVC sending data from one view to another

Am developing application using EXTJS MVC Architecture. I have created a dataview which consists of the list of users in the system, and each item in the dataview consists of three buttons. One of them is the edit button, which on clicking opens…
rosebrit3
  • 523
  • 1
  • 18
  • 32
0
votes
1 answer

Ext JS tab panel detect tab destroy

How can I detect when a tab in a tab panel is destroyed? There seems to be no event for that (only for tab and title change) I know I can listen on 'destroy' event of the components that I am using as tabs, and that works, but I need to do this from…
zam6ak
  • 7,229
  • 11
  • 46
  • 84
0
votes
1 answer

Store loading order

My code of App.js here: Ext.Loader.setConfig({ enabled: true }); Ext.application({ name: 'KP', appFolder: 'scripts/app', controllers: [ 'MainSearch', 'List' ], launch: function () { …
Oleg
  • 1,467
  • 4
  • 26
  • 39
0
votes
1 answer

ExtJs 4.1.1 Custom Build for MVC Application - Application doesn't run

In trying to create a custom build for an application, I followed these steps - 1. Added the following in the index.html header My…
abhijit
  • 6,363
  • 5
  • 26
  • 32
0
votes
1 answer

Focus a editable grid's row within the form

I have a editable grid (Ext.grid.plugin.RowEditing) The grid is with in a form. The form is shown in a window As the form is shown by showing the window, i want to focus on the first editable row's first column. This is the method called for…
0
votes
2 answers

Add a "permanent" filter to a store, until I manually call clearFilter

I'm using a store to fetch the specializations of all hikers (so hiker has many specializations). However, I have a detail window where this specializations are added/removed/shown ony for currently selected hiker (yea, it's a detail window). My…
Francesco Belladonna
  • 11,361
  • 12
  • 77
  • 147
0
votes
2 answers

Cannot access correct scope within controller

I am trying to dynamically build a form based on data returned from the server. In this instance, I do not have my store in the /store folder. I have it in /store/admin. It is defined like…
Nathan
  • 2,941
  • 6
  • 49
  • 80