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

ExtJS populate combobox from other combobox selected record

(ExtJS 4.2.1) I have two combobox for searching employee. One search the employee by employee number and the other search the employee by name: This is the store shared by both comboboxes: var cboEmployeeStore =…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
1 answer

ExtJS Store add extraParams when creating store in view

I have my ExtJS 4.2.1 Application and Inside my view: xtype: 'combobox', itemId: 'cboEmployeeNumber', width: 180, store: Ext.create('App.store.employee.EmployeeCombo', { // here I want to set extraParams maybe like //…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
1 answer

ExtJS MVC can't bind TreePanel from TreeStore (standard JSON server structure)

In my ExtJS application (4.2.1) all my responses from server has a default structure. I'm trying to fill a TreeStore from my server method but I can't. This is my server JSON response: { "data": [ { "text": "Test 1", "id": "1", …
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
1 answer

ExtJS remote combo - add additional filter parameters (from other combo selection)

I have 2 combos, I want to force to select the first combo (employer combo), after it's selected then the combo 2 (employee combo) is enable. ExtJS 4.2.1 The code of the combos is: { xtype: 'combobox', store:…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
2 answers

ExtJS how to close a window from other function inside controller

In my controller (ExtJS 4.2.1) I have a function where I create a window like this: refs: [{ ref: 'holidayView', selector: '[xtype=holiday.view]' }], init: function (application) { this.control({ …
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
2 answers

ExtJS show "processing download" when downloading a file

I have my ExtJS 4.2.1 Application, where I have a reports section for generating and downloading PDF reports. Right now in my controller I have this for downloading a file: onPrint: function() { Ext.core.DomHelper.append(document.body,…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
5 answers

Changing the opacity of mask behind the modal window extjs4

I want to change the opacity of mask behind the modal window. I want to make it opaque. And this is to be donw only for one window. Can someone tell me how I can do it? I tried this.getEl().setOpacity(1); this.mask.setStyle('opacity', 1); …
user2316489
  • 159
  • 1
  • 5
  • 14
0
votes
1 answer

Overriding datefield format in ExtJs 4 according to different conditions

I want to override the datefield format depending on the country I am coming in from. I have written the following function, and then used the Ext.Loader.loadScript to apply this.But this is not overriding the datefield format. I am implementing…
user2316489
  • 159
  • 1
  • 5
  • 14
0
votes
0 answers

Load nested JSON data into gridpanel

I am working on ExtJS application. I wanted to know how to load deeply nested JSON data into gridpanel. My sample JSON is as follows: { "Users": [ { "id": "1", "status": "2", "name": "Sample", "email": { …
ryan
  • 333
  • 1
  • 15
  • 28
0
votes
1 answer

ExtJS Application launch on demand - not page load

I have a bundle of older ExtJs components that drive the UI, store management, and application logic in something that prior to the world of MVC I'd have called an application. I'm in the process of rewriting it, and wanted to take advantage of…
ca_peterson
  • 224
  • 2
  • 10
0
votes
1 answer

ExtJS 4.2 first time to load some complex view takes a few seconds

I have an Application with a Nav Menu, on each Nav item clicked a Tab is created with it's corresponding view. Here is an exmaple code that Im using to create the tab with it's view: var me = this; var newTab = me.getMainTab().add({ …
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
2 answers

Combobox store load after updating form with Model data

I noticed that there are a lot of ways to populate a form with data. I want to do it the ExtJS4 MVC style. However I now see something unwanted happening. My form has a combobox tied to a store. The store is filled after populating the form with the…
E. Rood
  • 13
  • 5
0
votes
0 answers

Extjs grouping grid editing is working for first group only and not working for other groups

I am using ext4.2.1 library for my app. I have a grouping grid which id editable for a few columns and have paging as well. But when I go to editing, it works for only the first group and for the other groups editing wont give the editor. Any ideas…
A DEv
  • 255
  • 1
  • 19
0
votes
1 answer

2 TreePanels with same store?

I have the following Case: TreePanel (width: 400, Height: 300) with a button in the TopBar. When user click on this Button , we open a new Window (width: 800, Height: 600) containing the same TreePanel. My Question is: Is it possible to copy the…
I3i0
  • 1,191
  • 2
  • 12
  • 25
0
votes
1 answer

Browser History with ExtJS MVC

I am looking for an example of ExtJs MVC which supports browser history. The example they have on the Sencha site here is not MVC based. The other one I found here uses dynamically loaded views and controller. I imagine the solution is a…
6ton
  • 4,174
  • 1
  • 22
  • 37