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 move node/parent node of TreePanel to another TreePanel?

I'm not ExtJS expert. I have a problem on moving node of TreePanel to another TreePanel. I need a example that move node/if node is children then move it with parent node/ to another TreePanel. In addition I'm using ExtJS 4. I'm google it whole days…
Zeck
  • 6,433
  • 21
  • 71
  • 111
0
votes
1 answer

Values not Populating in COMBOBOX even though it is fired the values from MVC

I am Very new to EXTJS. i am adding a new combo to my html page using EXTJS in xxx.js file and fetching the values from MVC controller with sample information. while debugging the MVC application it is sending the sample information when i send…
0
votes
1 answer

ExtJS 4.2 Binding Tree Panel/TreeStore to client side dynamic JS object array

I'm building a simple JS object array client side based on user selections and do not want to query the back end. So I have an object such as: var data = [{ id : Ext.id(), dataIndex : 'status', text : 'pass', leaf : false …
jkyoutsey
  • 1,969
  • 2
  • 20
  • 31
0
votes
2 answers

dynamically changing chart series extjs 4

I'm using Extjs 4 with the MVC architecture. I have a python script that outputs this Json Data : { "data": [ { "inAnalysis": 3, "inQuest": 2, "inDevelopment": 6, "total": 12, "inValidation": 1, …
salamey
  • 3,633
  • 10
  • 38
  • 71
0
votes
3 answers

Extjs4 Load data in grid from server

How to load data in grid from server I am able to load data from Store to grid but not able to load data from server to the store and then into grid Server API Details : http://192.1681.102:8080/Petcrumbs/member/getMemberList Request Parameters…
Ram
  • 233
  • 4
  • 17
0
votes
1 answer

Extending components from another ExtJS custom framework

I'm familiar with extending components within the same ExtJS MVC application, but now I'm wanting to use components from another ExtJS MVC application? Can someone help me understand how this can be done and give an example of extending a component…
JustBeingHelpful
  • 18,332
  • 38
  • 160
  • 245
0
votes
1 answer

Alternate class name in controller

I just realized that alternate class names for controllers in ExtJS 4.2.1 don't work the way I expected them to: Ext.define('AppName.controller.subnamespace.Controller1', { extend: 'Ext.app.Controller', alternateClassName: 'AppName.Ctrl1', …
suamikim
  • 5,350
  • 9
  • 40
  • 75
0
votes
2 answers

ExtJs 4.2 :: difference between "record" and "raw" in GRID

When I was playing with associations in ExtJs 4.2 MVC, I came across a problem for which I came up with a solution. Problem Stmt: I have a grid page popullated with Model/Store : Issue. On click of the record on the grid, one should be able to see…
MBK
  • 307
  • 6
  • 23
0
votes
1 answer

Setting window field values from controller

I have a window that displays values about a user in a popup when a certain cell is clicked.. in my UserController I load a json of the user based on id, is there any way to pass particular values of this json into my window? I know I could use…
invictvs1
  • 469
  • 1
  • 6
  • 20
0
votes
1 answer

How to consume web services in Sencha Touch 2.2

am new to Sencha Touch. I tried to consume web service but its keeps saying "Unable to load data using the supplied configuration.Open in Browser". My store is Ext.define('MyApp.store.MyJsonPStore', { extend: 'Ext.data.Store', requires: [ …
Joseph
  • 1,060
  • 3
  • 22
  • 53
0
votes
1 answer

Sencha touch: Error-" The following classes are not declared even if their files have been loaded: 'Ext.panel'

I have just started with sencha touch,really impressed with sencha documentation and its native feel. I was trying out this link. But i got error in between and i got this error in console "The following classes are not declared even if their files…
SsNewbie
  • 257
  • 2
  • 8
  • 21
0
votes
1 answer

How to work with controllers for Extjs deeply nested components?

I have a large scale application with lots of views, models, stores in it. Till now i am able to manage all the functionality to run from functions, events withing the views itself. I have never used controller to handle the entire…
Anand Singh
  • 317
  • 5
  • 8
  • 22
0
votes
1 answer

Is there any standard practice when it comes to adding plugin into ExtJs 4.1 apps

I am going to add a plugin to my ExtJs 4.1 application. Currently I have added the code for plugin into one of the file where I am making use of the plugin and everything is working fine. Alternatively I can put the plugin code in a JS file and…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
0
votes
1 answer

grid itemdbclick functionality in ExtJs 4.2 MVC

I have build an extJs 4.2 MVC pattern application. I have agrid in the front page. On dbclick of an item in the grid, a pop up window is appearing which is working fine. The pop up window extends a window and has forms in it. The form displays the…
MBK
  • 307
  • 6
  • 23
0
votes
1 answer

how to get tree instance in controller - Ext 4

I have a small problem to get the instance of my tree in controller. Well, without the MVC pattern it looks like this and it works fine. var tree = Ext.create('Ext.tree.Panel', { tbar : [{ text : 'Delete', handler :…