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

how to refresh the center region of a viewport using button

There is button in West region to refresh the center region. But it didn't working. Can anyone help me about it. I am using viewport as the frame.I'm new in ExtJS.
user1913106
0
votes
1 answer

Extjs store isn't loaded after changing active tab

I have a grid.panel on the side with table names and I'd like to show the table(or it's structure) when the user clicks on it, in another grid.panel inside a tab view. what i did: in the actionlistener var store =…
Peter
  • 1,047
  • 2
  • 18
  • 32
0
votes
1 answer

Make extjs4 data store url dynamic based on the context

I have a grid and associated store which is used to display data about two different entities i.e. System and Customer . If the grid is shown after clicking on the System link, the url to use is /configuration/systemid/234 and if it is from…
0
votes
0 answers

Set axis fields from controller- Extjs4 charts

How can I dynamically set axis and series fields of ExtJs4 Chart? I have a combobox which contains all attributes of a store using which user can select X-Axis and Y-Axis fields of a line chart. So whenever user changes selection I have to change…
pnhegde
  • 695
  • 1
  • 8
  • 19
0
votes
2 answers

Ext js how move date picker handler into controller

I want move my DatePicker handler event into controller. But i do not know how catch handler event there. Ext.define('MyApp.view.MyGridPanel', { ........... dockedItems:[ { xtype:'toolbar', items:[ …
0
votes
2 answers

Record not getting updated

I am new to Ext js, using Extjs 4.1.1. I am trying to update a record(User - model) by editing(View- Edit.js) it. But when the request is sent, operation is being aborted in the mid and not getting completed. Is extra code to be written to save or…
Supereme
  • 2,379
  • 12
  • 46
  • 67
0
votes
1 answer

How to completely remove Grid and its Columns

I have implemented Grid A which is extending Ext.grid.Panel and implemented some other Grids which are extending Grid A.For all grids which are extending Grid A, I have added an extra column to them through the constructor of their Parent Grid…
Waseem
  • 1,392
  • 5
  • 21
  • 30
0
votes
4 answers

Proper way to store user information during the session in ExtJS MVC

Where do I store user specific (session) information in an ExtJS MVC application? Is it right to define a custom base controller that can contain an object with user specific info and use it in…
shatzibtten
  • 27
  • 1
  • 6
0
votes
1 answer

Ext JS 4.1 - Window isn't show after hide

I'm not able to show a window that is defined class-level after hiding it. I need to use show & hide it whenever it's necessary. Here's what I've tried so far: isCapsLock Utility function for caps lock on/off handling: function(e) { e = (e) ?…
talha06
  • 6,206
  • 21
  • 92
  • 147
0
votes
1 answer

Extjs 4 catching combobox selected value in button click

I'm just beginning with Extjs 4, and I need to get the selected value of a combobox to change stores and rendering a chart corresponding to the data of each store. I'm using the MVC model, here's my view containing comboboxes :…
salamey
  • 3,633
  • 10
  • 38
  • 71
0
votes
1 answer

ExtJS MVC belongsTo/hasMany accessing children

I'm using ExtJS 4.0.7 with the ExtJS MVC features. I have a parent model which hasMany children which belongsTo the parent. What is the correct way to access the children? If I go through parent.children().data.items[0].data (as opposed to…
ipavlic
  • 4,906
  • 10
  • 40
  • 77
0
votes
1 answer

Slim Scroll Bars in extjs 4

I am developing an application in extjs 4 mvc. I have a problem with the scroll bars. None of my extjs components renders a slim scroll bar. All the components only renders a ugly browser scroll bar. Ext.define('Complaints.view.ComplaintGrid',{ …
swordfish
  • 4,899
  • 5
  • 33
  • 61
0
votes
1 answer

ExtJS MVC defer control until grid is loaded

I have a textbox and a grid in ExtJS 4.0.7. I'd like to input something in the textbox and update the grid on change. Using this snippet in the controller init : function() { this.control({ 'filter' : { change :…
ipavlic
  • 4,906
  • 10
  • 40
  • 77
0
votes
1 answer

switching back and forth between controllers in extjs 4

I am building an application in extjs 4 (MVC). I often find the need to switch back and forth between two controllers. But i cant seem to find how in the documentation. My scenario is like this. Ext.define('mycontroller',{ someMethod: function() { …
swordfish
  • 4,899
  • 5
  • 33
  • 61
0
votes
1 answer

EXTJS MVC Pie chart

Am having a pie chart and a grid displaying below it, both of which use the same store. And, in the store, am having the following fields: Total, Allocated, Used, Remaining. Is it possible to make the pie chart to have only three of the fields from…
rosebrit3
  • 523
  • 1
  • 18
  • 32