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 4.2 setLoading() after expanding panel issue

I have a panel that is collapsible but by default its collapsed until the user selects an element in the view. In my controller, when the user clicks on an element I listen to the event and then I do the…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
2 answers

ExtJS 4.2 grid cellediting how to bind column value with combo display value

I have a grid with cellediting plugin. One of my columns is a int field which represents a value in a combo store when editing the cell. I want to know how can I have this column to show the displayfield instead of the value before I edit the…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
1 answer

ExtJS 4.2 dataview - how to know if item is selected

HI I have a DataView with XTemplate. In my controller, I listen to the itemclick event. onItemClick: function(view, record, item) { var me = this, panel = me.getRightPanel(); // here I need to know if the item clicked is…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
1 answer

ExtJS 4.2 Show a 1 - 12 Month Dynamic calendar

In my ExtJS 4.2 Application I have the requirement to show from 1 to 12 months calendar depending on the Holiday calendar from a selected employee. I need to show something like this: So from the above approach I think this can be done by using…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
2 answers

ExtJS 4.2 DatePicker get the first day and last day in the calendar

I have an ExtJS datepicker where I disable some dates so the user can't select them. After the calendar is renderer I send to the server the current date and the server sends back an array of days to disable, so the visual result is the…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
2 answers

ExtJS 4.2 get the store of child component

I have a panel that dynamically I can add as items a Grid, Chart, etc. Any of those "Widgets" (grid, chart, etc.) have a store. My panel has a "refresh tool" that onRefreshClick I want to reload the "Widget" store. In my main Controller I…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
1 answer

ExtJS5 How to let keymap call viewController function?

I was wondering how to call a controller function from a keymaps in extjs 5? The following code in the view is working to bind the keys to a an anonymous function, however not to a controller function. The function is also called by the button, and…
Manuel
  • 9,112
  • 13
  • 70
  • 110
0
votes
1 answer

folder structure to be used for an application with extjs and java?

I have created a Java Project wherein I am using ExtJS for the web pages and I should be using Java for the programming logic. Right now,I am able to display the web pages. However, I do not have any java files and my current folder structure…
user777777
  • 228
  • 4
  • 25
0
votes
1 answer

ExtJS form getValues convert to int some values

I have a search form (ExtJS 4.2) with a few fields: xtype: 'fieldcontainer', layout: 'hbox', items: [{ xtype: 'combobox', itemId: 'cboEmployee', width: 400, store: cboEmployeeStore, cls: 'arigth', …
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
1 answer

Extjs4 grid column accepting accented characters and tabpanel title including accented chars(special characters in spanish).

Extjs4 grid column accepting accented characters and tabpanel title including accented chars(special characters in spanish). Grid column should display it properly and title of tab should also display it properly, Right now its shown as question…
user2316489
  • 159
  • 1
  • 5
  • 14
0
votes
1 answer

I'm trying to connect ExtJs to PHP with database and I'm having a trouble to show a data to the gridpanel

I'm trying to connect ExtJs to PHP with database and I having a trouble to show a data to the gridpanel, I'm confused why no data show in gridpanel and there's no error in firebug. Anyone can check and correct me or teach how to achieve to create a…
itsmecidz
  • 93
  • 1
  • 2
  • 15
0
votes
2 answers

Extjs 5 Ext.app.ViewModel, stores - load data using proxy

I'm trying load data from server and bind data. Such method does not work. Whats wrong? Ext.define('Configurator.view.activityType.ActivityTypeModel', { extend: 'Ext.app.ViewModel', alias: 'viewmodel.activityTypeModel', stores: { …
Max
  • 417
  • 7
  • 21
0
votes
1 answer

ExtJS textfield or combobox defaultValue when model has ID = 0

In my Application (ExtJS 4.2.1) I have a window for creating a new record and save it to database. When I create the window and show it I create a new record and assign it to the window form record: onNewPunchClick: function(button, e, options) { …
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
1 answer

ExtJS how to create a custom field from a custom component

I have my application (ExtJS 4.2.1) and I have a form: xtype: 'form', bodyPadding: 10, autoScroll: false, itemId: 'editForm', defaults: { msgTarget: 'side', xtype: 'textfield' }, //layout:'anchor', items:…
VAAA
  • 14,531
  • 28
  • 130
  • 253
0
votes
1 answer

grid with page not delete the records

I have a problem in removing the records. I have a grid with pages if i select one record in the first page and change the page and try to remove the record it is not working . (Not delete the record). Whats i have to do? Is a limitation of…
alexander
  • 19
  • 1
  • 5