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 form.load using the url of different domain server to fetch the data and bind to fields

I want to load the form fields using json data. I am using extjs 4.1 for ui and asp.net webapi to fetch the data. My objective is to load the data and bind it to the field dynamically which form.load is used for if the name of field corresponds to…
nilesh
  • 315
  • 2
  • 11
  • 24
0
votes
1 answer

How to call set or get a Controller's config property from a view?

I have a controller something like this: Ext.define('DigitalPaper.controller.Documents', { extend: 'Ext.app.Controller', views: ['Documents'], stores: ['Documents'], models: ['Documents'], config: { defaultColumnSet: undefined },.... I want…
0
votes
1 answer

Store is undefine after extjs sdk

my mvc applications works fine. However when i run the sdk. I get store is undefined. Below the store is defined as "Cutters" I've also tried the full name namespace "Mis.store.Cutters" I've uploaded the whole file. all-classes.txt here is my view…
frosty
  • 5,330
  • 18
  • 85
  • 122
0
votes
1 answer

How do I extend Ext.Ajax?

I use it quite often in an app I am making, so I would like to shorten it up if I can and make an extended class to handle all the callback logic in one place, I tried setting it up like this but fails when trying to load the class with: Uncaught…
Nathan
  • 2,941
  • 6
  • 49
  • 80
0
votes
1 answer

How to show "parent data" of model on Grid?

So I've a problem 'cause i want to show parent data on grid, illustrated here: PARENT MODEL Ext.define('Ab.model.Marca', { extend: 'Ext.data.Model', fields: ['id','nombre'], hasMany: {model: 'Ab.model.Maquina', name: 'maquina'}, …
richardhell
  • 969
  • 2
  • 10
  • 22
0
votes
0 answers

select event on grid is called when i try and sort

I have the following in my controller. This is use to edit the selected row. This does as is intended however this event is also called when i click on the field name to sort the column. '#cutterGrid':{ select…
frosty
  • 5,330
  • 18
  • 85
  • 122
0
votes
2 answers

How to get plugin from component using component query on Extjs 4.1?

I want to add event listener to plugin on Controller.like http://docs.sencha.com/ext-js/4-1/#!/api/Ext.app.Controller It seems different to get plugin using component query than normal component. Is it possible to get plugin from component using…
XenoN
  • 984
  • 1
  • 10
  • 23
0
votes
1 answer

EXTJS4.1 XTemplate not drawing from Store

I am trying to create a sidebar navigation for my app with a store loaded with JSON data & XTemplate. There is basic categories & sub categories. However, the Categories are drawing, it isn't creating/rendering the sub-categories in the sidebar.…
Nathan
  • 2,941
  • 6
  • 49
  • 80
0
votes
1 answer

history and selection model questions

I am trying to build an app using Extjs 4.1. In general: it is a viewport with a tree panel on the west and a center panel that it is actually a tab-holder panel. When a user clicks on a tree node a tab is populating the center view. I had set an…
user734094
0
votes
0 answers

Adding markers based on data in store to gmappanel

So here's the situation: I have a class called Map which is a child of GMapPanel. I want to place markers on the map based on data loaded into MapIncidents via JSON. Now, I know I can't do that during the initialization of Map because the JSON…
gordon
  • 824
  • 1
  • 9
  • 18
0
votes
1 answer

Is there an easy way to override one of the fields in an extjs store to hard coded values while the backend is figuring out how to add the new object?

I'm searching for how other extjs developers work on a UI component before the json response from the backend is hooked up and working. Feel free to be specific with code samples of how I might toggle back and forth between live data and a hard…
DaveAlger
  • 2,376
  • 25
  • 24
0
votes
1 answer

EXTJS generation of bar chart

I am working on extjs & i want to make a bar chart from xml Here is my XML http://pastebin.ca/2150257 I hav made grid like this columns: [ {text: "Department Performance", flex: 1,dataIndex: 'DepartmentPerformance', sortable: true}, {text :…
Amit
  • 323
  • 3
  • 18
0
votes
2 answers

Does exists a Validation framework in ExtJs 3.4?

I'm developing with extjs 3.4 and I'd like to know if exists a pluging or library that I can used to validate models
yeraycaballero
  • 1,603
  • 3
  • 19
  • 29
0
votes
1 answer

Error while binding values to form field in extjs

I'm getting the following error, while using ExtJs MVC, Uncaught TypeError: Cannot call method 'remove' of undefined I traced the above error which goes to the line where i bind values from model to…
Leo
  • 139
  • 4
  • 17
0
votes
1 answer

An additional id field is being added to my json request in extjs 4.1

In my controller i use the "record.save" function. In extjs 4.07 this would send a single record as json. I've notice in 4.1 it now send an array of the record. This is fine as i can update my server controllers to handle an array ( tho would be…
frosty
  • 5,330
  • 18
  • 85
  • 122