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

positioning of a container in extjs

In my project, I am trying to position a container as absolute. but if I do so, it is also effecting the neighbour items. I mean, after positioning the container, if I give some width and height to that particular container, it is effecting all the…
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
0
votes
1 answer

Ext js 4 boxselect shows multiselect data when editing the form

Is there any methods to load the multiselected data on Boxselect xtype while editing the form in EXTJS 4 I am using Ext.getCmp('boxselect id').setValue(5,6,7,10). The above code is working when i give the single value to set value,but my condtion…
anupkumar
  • 357
  • 4
  • 14
  • 28
0
votes
3 answers

How to refer the store in Controller --> Code.js file?

I am storing the JSON format in to Code.js of store folder. 'store' folder --> Code.js Ext.define('LoginPage.store.Code', { extend: 'Ext.data.Store', model: 'LoginPage.model.Code', autoLoad: true, proxy: { type:…
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
0
votes
1 answer

check the json data for comparing in extjs

I created a simple login page using extjs MVC to understand MVC architecture of extjs. As you can see below, I am trying to get the json data into the store and then I will check each username and password in that data with the entered login…
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
0
votes
1 answer

Extend Ext.grid.column.Action

I have a custom actioncolumn in my grid like this: Ext.define('Profiler.view.Common.ActionColumn', { alias: 'widget.asaActionColumn', extend: 'Ext.grid.column.Action', items: [{ iconCls: 'edit', tooltip: __("Edit"), …
user1968030
0
votes
1 answer

set field dynamically in the store in extjs or getCount() gives 0 in model

Hope you are doing good. I have 2 different class University and Students Relation : University hasMany Students University fields: uni_id, uni_name,total_students Students fields: stud_id,stud_name I have following json file: { "data": [ …
Rishabh Shah
  • 541
  • 7
  • 28
0
votes
1 answer

extjs4 MVC listeners in controller

I'm having trouble creating a listener for the 'itemmouseup' event for my series chart, in the controller. Controller: init: function () { this.control({ 'monthbalance > chart': { render: this.onChartRendered, …
polarbear
  • 5
  • 5
0
votes
1 answer

Ext.Calendar duplicate error

Tell me please, how i can create two Ext.calendar object? write this code, and he say Ext.Error: Registering duplicate id "left-col" with this manager var lPanel = Ext.create('Ext.calendar.CalendarPanel', { id: 'app-calendar-left', …
Judzhin Miles
  • 71
  • 3
  • 5
0
votes
1 answer

Extjs4 set a button at the very left side of a statusbar

I have a statusbar where I want to set a button at the very left side of it. I can place it left using margin but it does not set completely at left side. But I need to do it. Can anyone please help me on this ?! Here is my code below : me.tbar =…
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
0
votes
1 answer

Extjs4 mvc templated data not rendering

I am working with the mvc nested-loading example: http://docs.sencha.com/ext-js/4-1/#!/example/app/nested-loading/nested-loading.html. While trying to build my own project out of this I ran in to a problem trying to render the data in my content…
robasc
  • 307
  • 1
  • 5
  • 15
0
votes
2 answers

Extjs 4 set focus on number field

I have a number field in my form named cashPay and another field name is totalPayable. Now if cashPay is less then totalPayable I need to alert a message and focus on the cashPay field. But I am not being able to do it. focus method works on…
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
0
votes
1 answer

extjs and Translation

I have token a look at the Sencha's official example, now I want to applicate the translation to my application. In the example I have followed the two files.js and the file.html are in the same directory, but my application follows the MVC…
Aminesrine
  • 2,082
  • 6
  • 35
  • 64
0
votes
1 answer

ExtJS MVC make a window invisible from the controller

I have the following situation, In an ExtJS MVC Controller I have the following lines that makes a custom window visible: this.control({ 'grid_file button[action=change_settings]': { click: this.open_settings } }) Further below:…
Art F
  • 3,992
  • 10
  • 49
  • 81
0
votes
2 answers

Ext not defined on RowModel's select event

I have a form bound to a grid where a user can either create a new user or select a row in the grid and edit a user. Selecting a row in a grid should change some button visibility. Anyway my main obstacle is that Ext seems not to be fully loaded on…
Hines Bourne
  • 600
  • 1
  • 7
  • 20
0
votes
1 answer

ExtJS convering an Ext.app.Controller to an Ext.app.Application

I am trying to convert a class that extends Ext.app.Controller to extending Ext.app.Application. Since Ext.app.Application is a child class of Ext.app.Controller I assumed that simply changing the class being extended would work, instead however, it…
Art F
  • 3,992
  • 10
  • 49
  • 81