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
0 answers

how to extend Ext.grid.header.container class

I have 10 grids in my project where I want to define one extra header, and that header will open menu on double click, single click will return null. This functionality works fine in my 3.4 version. But somehow i am not able to extend…
user2135671
  • 60
  • 2
  • 7
0
votes
1 answer

What is the syntax for assigning the plugins property in Extjs 4.1

What is the syntax for the plugin property in Ext.grid.Panel? If I comment out the plugins property in the code below, it works fine, but it produces an error if left in. this.grid = new Ext.grid.Panel( { id: "t-"+this.gridName+"-grid", …
user2135671
  • 60
  • 2
  • 7
0
votes
1 answer

How to make border layout center region infinite scrolling?

I am working in extjs4.And I have a task there I am going to work on border layout.I want to make my border layout center region get infinite scrolled i.e. it loading child components in center region at that time my footer goes on downward…
user2131948
  • 23
  • 2
  • 4
0
votes
1 answer

Which event is fired changing the tabpanels tab in extjs4?

I am working in extjs4 mvc.I am getting stuck at a point where I want to handle event when tab panels tab going to changed.I am using MVC structure in extjs4. I am tried with tab change event but it never get fired when tab is changed.please give me…
Pravin Mane
  • 529
  • 4
  • 13
  • 25
0
votes
4 answers

change the html from controller in extjs

In my Extjs 4.1.1a project, Fiddle (this fiddle is not working, it is just for reference) I am changing the HTML(In controller) value using Ext.apply(weekNotifications,{html: {"hello"}); But the page(view) is not updating. When I checked the…
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
0
votes
2 answers

Update the changes made in controller to the view

How to update the changes made in the controller to the view? View Ext.define('SomeClassName', extends: 'Ext.container.Container', alias: 'widget.somewidget' /* other content here */ Controller requires: ['SomeClassName'], init: function(){ …
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
0
votes
1 answer

Syntax error Invalid Property id in Extjs 4

I am trying to load the controller from Ext app.js My code is var controller = this.getController('member.Member'); Here Member.js is a controller inside my member folder under Extjs controller folder. But I am getting error at the above line of…
anupkumar
  • 357
  • 4
  • 14
  • 28
0
votes
2 answers

Add tip text dynamically to a slider

In my project, I am trying to add the tip text (config) dynamically to a slider. How to do that? I need to add it dynamically because I am generating the array of variables in a "Controller", which holds the text for each value of the slider (for…
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
0
votes
1 answer

Uncaught TypeError: undefined is not a function in extjs4?

I am working in extjs4 MVC, where I have a problem when I am storing data using a local storage, and I am going to change the proxy type dynamically from ajax to localStorage. After setting the data to localstorage I got a error Uncaught TypeError:…
user2131948
  • 23
  • 2
  • 4
0
votes
1 answer

How to handle checked and unchecked event on checkbox in extjs4?

I am working in extjs4.I am going to stuck at a point where I have to handle checked and unchecked event on checkbox.I did not found proper event for this selection. I just want to handle checked and unchecked event on check box.. here Is my some…
Pravin Mane
  • 529
  • 4
  • 13
  • 25
0
votes
0 answers

Creating Own Controller for ExtJS Tab?

In my app I have a project controller and a tree view in my viewport. The treeview displays a list of projects. In the center of my viewport there is a tab panel. When I select I project in my tree view I want to open a specific tab for the current…
Gerrit
  • 2,515
  • 5
  • 38
  • 63
0
votes
1 answer

ExtJS mvc loading view after successfully logged in

I am trying to develop an application in ExtJS using MVC. The aim of design application is something: 1. Create a log in page for authentication 2. after successful log in I have to show 3 grids in single page. These 3 grids have different stores…
aksdch11
  • 683
  • 6
  • 14
0
votes
1 answer

Adding the cell values of a record in grid and get the result in the last cell of the record in extjs

Here my grid name is "rightpanel". I am trying to add the values entered in each cell of the record and display the total in the last cell/column of the record. But I m facing a issue with calculating the total efforts with the login…
Dev
  • 3,922
  • 3
  • 24
  • 44
0
votes
2 answers

what to write in the controller for delete in extjs

..................My view................................................. Ext.define('AM.view.emp.EDUGRID', { extend: 'Ext.grid.Panel', alias: 'widget.education', title: 'All Users', store: 'AddEdu', //id:'111', dockedItems:…
drum
  • 33
  • 10
0
votes
1 answer

pass combobox value to php extjs 4

I want to pass a combobox value to a PHP file that'll execute a mySQL query. I'm using Extjs 4 with the MVC architecture. This is my combobox : { xtype: 'combobox', id: 'cmbMetric', name: 'sev', mode:…
salamey
  • 3,633
  • 10
  • 38
  • 71