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

Using BoundList as widget

I have an extended bound list, and I use it as a widget. Get/set value and other works good, but: How can I add a field label before it? Example of set value: setValue: function (v) { this.value = v; // TODO select selected var sm =…
Eleanor
  • 358
  • 5
  • 24
0
votes
1 answer

Ext Data Model listener

I'm new in ExtJS 4, and I make an extended Data Model. I want to listen model's set function. How can I make a custom listener on set, or override set with original set functions + extensions?
Eleanor
  • 358
  • 5
  • 24
0
votes
1 answer

How to set combox value on form from grid with nested data? Extjs 4.2 Mvc

I have a grid that pops up an edit form with combobox. Before I show the view I load the combobox store. Then I set the values of the form using form.loadRecord(record);. This loads the primary record ok. But how do I load the associated data value…
dan
  • 2,857
  • 6
  • 34
  • 60
0
votes
1 answer

how to change a chart with a click event using ExtJs mvc

I create 2 charts(bar column and radar) in one page using ExtJs mvc. I want that when I will click on the column of a chart the radar will show the change.. I wrote the function for click in controller. here is the…
user2261785
0
votes
1 answer

XML nested nodes to array in Extjs 4

I have the following structure for a blog: title of post (...) path_to_image path_to_other_image
QuintenVK
  • 749
  • 1
  • 9
  • 20
0
votes
1 answer

window does not close with close() method

Very strange problem but still do not understand why. I have a grid and on ColumnDblClick i open a window. Window works fine, submit data but when try to close window, it does not close. saveRefresh : function() { this.win.close();…
extjs user
  • 263
  • 7
  • 17
0
votes
1 answer

How to send parameter to a servlet using Ajax Call

i have a controller in my ExtJs application ,from where i have to make an Ajax call to a servlet and also have to send some parameters to that servlet also.i am able to call the servlet properly but i am getting null values.i think i am making…
user2262079
0
votes
0 answers

Simultaneous selection of similar records from two grids in two tab panels?

*I want to select similar records from grid1 and grid2 at the same time record is selected in grid1. * For example say that if emp_id 1 has dept_id A and B and emp_id 2 has dept_id C,D and E. A user selects dept_id D . On the back automatically,…
Dev
  • 3,922
  • 3
  • 24
  • 44
0
votes
1 answer

How to to call a function from a function in ExtJs

i have a controller in my application in extjs. i have a method in that controller ,that is doing some action .Now i have to call another method from that method.But when i am doing that the previous method is not working please give me the way to…
user2262079
0
votes
1 answer

How to show Image response to view in EXTJS 4?

I have web service in my controller that returns me a image in following format. I want to know that how i load this image response in my view. I use EXTJS 4 MVC architecture.I dont know this image is in which format. Please help me for this…
Raj
  • 252
  • 1
  • 5
  • 20
0
votes
1 answer

How to handle dom events in controller in extjs4?

I am working in Extjs4, and getting stuck on how to catch an event on hyperlink. I worked on it but couldn't get it solved. Here is my code: View code Ext.define('AM.view.user.linkView', { extend: 'Ext.panel.Panel', alias: 'widget.Link', …
Pravin Mane
  • 529
  • 4
  • 13
  • 25
0
votes
1 answer

Enable and disable a textfield so that user has one textfield to input the data in extjs

To enable or disable a textfield so that user can have only one textfield enabled to input data. Explanation : If their are two textfields : textfield1, textfield2. If user wishes to enter data in textfield1 then textfield2 should be disabled. …
Dev
  • 3,922
  • 3
  • 24
  • 44
0
votes
1 answer

Extjs 4.1 tree loading

I have created a extjs tree with the json response i.e created from the php function. I am fetching the complete data at once and convert to json and then send the response to extjs . But fetching lakhs of records and getting response at once will…
anupkumar
  • 357
  • 4
  • 14
  • 28
0
votes
1 answer

Flow of control between ExtJs MVC and Spring MVC

I had gone through a lot of docs and blogs but still not clear of how flow happens in ExtJs MVC (with JSON data). Below are the doubts which I have. What is the use of Extjs Model. I know that it can be used for validation and association but is…
CARTIC
  • 573
  • 3
  • 14
  • 26
0
votes
2 answers

Extjs 4 dateField getValue

I feel should be easy but still does not work, "toDate.getValue();" does not return Ext.date object. I cannot format date. Error: format is undefined. Below is my form field. var toDate = new Ext.form.DateField( { fieldLabel:…
extjs user
  • 263
  • 7
  • 17