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

EXTJS Mouse click not working after load a page for multi time

I have a grid on my panel, named gridView, and gridView is in panel named panelMain, by dbclick listener on grid row, I load a from by doing something like this: listeners:{ itemdblclick: function(dataview, index, item, e) { /* I did not create…
MahTa
  • 1
0
votes
1 answer

ExtJS RowExpander - nextBd is null

I have problem configuring RowExpander for my grid. When the grid renders the expander is already opened for each row and with nothing inside. When i click on its icon the following error is generated: nextBd is null. I found very similar problem…
patryks
  • 650
  • 2
  • 15
  • 32
0
votes
1 answer

Error while trying to display content from a store

I am trying to display console.log(r.get('info')) but, i am getting the output as (an empty string). What might have caused this error ? var myst = Ext.getStore('MyStore'); var r = myst.getAt(0); myst.on('load', function() { r =…
Illep
  • 16,375
  • 46
  • 171
  • 302
0
votes
2 answers

Getting field values from Window

I have a window. and some fields in it (textfield and button). Now i want to submit these details. I get this error: TypeError: button.up("form").getValues is not a function Button function buClicked : function (button,record) { var val=…
Illep
  • 16,375
  • 46
  • 171
  • 302
0
votes
2 answers

Button click not detected

I have a Window, and it contains some textfields and a button. Here's the definition of the button; alias.widget:'mywin', .... { xtype: 'button', height: 40, …
Illep
  • 16,375
  • 46
  • 171
  • 302
0
votes
0 answers

Running ExtJS app in Internet Explorer

Though i removed trailing comma, in my mvc project, it's not loading in IE 8. Can building this app for deployment resolve this issue ? I'm not sure why this issue occurs
Leo
  • 139
  • 4
  • 17
0
votes
1 answer

Mixing ASP.NET architecture with Sencha Ext JS MVC architecture

Below is the JavaScript file which is the root application file of my extjs 4 MVC application. I followed these instructions exactly, and used IIS 7 as my web server: http://docs.sencha.com/ext-js/4-1/#!/guide/application_architecture And followed…
JustBeingHelpful
  • 18,332
  • 38
  • 160
  • 245
0
votes
2 answers

Ext.getElementById does not work from Ext.Controller init or onLaunch events

I have the following Ext.getElementById call from a specific part of application code, that does work when called in this context: init: function() { // template method called when app boots; before Viewport is created this.control({ …
Joseph Victor Zammit
  • 14,760
  • 10
  • 76
  • 102
0
votes
1 answer

Setting Checbox values in checkboxselectionmodel

I want a grid with checkbox in all rows like the one in this link http://gwt-ext.com/demo/#checkboxSelectionGrid After saving selected records, i want to set the checbox selected earlier. How this can be done?
Leo
  • 139
  • 4
  • 17
0
votes
1 answer

Calling Store from App.JS

I am in the app.js file. there is a function that gets executed when user logs in to the stytem successfully; loginSuccess: function() { this.getViewport().getLayout().setActiveItem(1).store.load(); // Calls the Store of the i need to navigate …
Sharon Watinsan
  • 9,620
  • 31
  • 96
  • 140
0
votes
2 answers

Adding a Panel into a Panel

I have a card layout set in my app.js. here's the code; ... launch: function() { var vp = Ext.create('Ext.container.Viewport', { layout: 'card', items: [ { xtype: 'doctor' }, …
Illep
  • 16,375
  • 46
  • 171
  • 302
0
votes
1 answer

Display a View using form.show() - Logic issue

persomview is the ID of View class. part of its definition is as follows; Ext.define('ProjPerson.view.person.PersonTab' ,{ extend:'Ext.tab.Panel', alias : 'widget.ptab', id:'ptabid', ...... Now from another view classes Controller…
Sharon Watinsan
  • 9,620
  • 31
  • 96
  • 140
0
votes
1 answer

Button click navigate to another view

I have a button and when ever the user clicks it, i need to show a different view/page (navigate to a different view). For example, Screen A, has a button, and when i click on that button, i need to navigate to Screen B. my code is as…
Sharon Watinsan
  • 9,620
  • 31
  • 96
  • 140
0
votes
1 answer

Display values when the Window is displayed

I want to display a popout window with some values displayed on it fetched from a PHP server file. I have no clue how to display the items on the window. I don't know why but the console.log message 'method call' in the controller doesn't get…
Illep
  • 16,375
  • 46
  • 171
  • 302
0
votes
1 answer

Saving values to database - logic error

in the following example when we click the button, all the form data (both the KEY-VALUE) will be passed to the php file to be saved in the database. Grabbing the KEY-VALUE is done by var form = this.up('form').getForm(); statement. UPDATE…
Illep
  • 16,375
  • 46
  • 171
  • 302