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

Re-selecting checked nodes Tree Grid after reload store

I have a Check Tree using Extjs 4, and I have a problem: My Tree be reload each 30s, and only reload a specific node expaned. var node = this.getMyDeviceTree().store.getNodeById('myTree/107'); this.getMyDeviceTree().store.load({ node: node…
Van Teo
  • 25
  • 8
0
votes
2 answers

xtype: filefield not displaying properly

i had a popup that looks like this : items : [{ xtype: 'form', title: 'Upload a Photo', width: 400, bodyPadding: 10, frame: false, renderTo: Ext.getBody(), items: [{ xtype: 'filefield', name: 'photo', …
tonyo
  • 678
  • 1
  • 7
  • 22
0
votes
2 answers

ExtJS 4.2 - Error Loading Store From Command - Data Returned From Service - MVC Setup

I am having all sorts of issues learning ExtJS (I am a flex Dev). Currently, I am unsure how to load a store from a command. I have a command where I make a service call and get the data. I then want to load the model with this data (from inside the…
anad2312
  • 787
  • 2
  • 8
  • 20
0
votes
1 answer

ExtJS - Ajax Call Added to Store From Service Call

I am new to ExtJS and I am a Flex Developer. I am trying to do a mockup of a page we have in our Flex App. I am trying to do a basic service call to hit our servers (on same domain as the ExtJS App) and add the data into Store, which will then be…
anad2312
  • 787
  • 2
  • 8
  • 20
0
votes
1 answer

Two Grids on Same Page Extjs 4

I am using this Ext.define('Wifi.view.widget', { extend: 'Ext.grid.Panel', xtype: 'customerlist', selModel: { selType: 'cellmodel' }, height: 380, width: 700, viewConfig: { stripeRows: true }, …
Rakesh Goyal
  • 3,117
  • 8
  • 39
  • 69
0
votes
1 answer

ExtJS MVC app not loading on firefox

I've got an MVC application that works fine on IE and Chrome but fails to call Ext application launch on Firefox. The application is declared as: Ext.application({ name: 'uoozo.piko', appFolder: '/piko/desktop', controllers: [ …
GlGuru
  • 756
  • 2
  • 10
  • 21
0
votes
1 answer

In Line graph, Why x-axis date format is not coming proper?

I have done application using Extjs 4.1. I have plotted line graph, in this x-axis date format is not coming proper. I have defined fromdate, todate and date format, but duplicating December month, Feb month is not coming. line is plotting proper.…
Ramesh Lamani
  • 1,117
  • 3
  • 25
  • 54
0
votes
1 answer

referencing containers in extjs4

i create these containers : var cont0 = Ext.create ... var cont1 = Ext.create ... var cont2 = Ext.create ... i used them here: var cont3 = Ext.create ..., { items: [cont0, cont1] } var cont4 = Ext.create ... , { items : [cont1,…
tonyo
  • 678
  • 1
  • 7
  • 22
0
votes
1 answer

How to make default landscape print using javascript/Extjs?

I have done application using Extjs 4.1, have implemented print functionality by creating XTemplte opening in new window. Print is working very nicely. once i click print it will open by default in portrait mode, instead of this one how to open…
Ramesh Lamani
  • 1,117
  • 3
  • 25
  • 54
0
votes
2 answers

filter/search grid using combobox extjs mvc

I have a comboBox in which items are coming from database and a have applied filter option using that comboBox...Combo works good at first time ,but the problem is when i want to select items from the comboBox at second time i don't find items in my…
Mir Gulam Sarwar
  • 2,588
  • 2
  • 25
  • 39
0
votes
1 answer

grid and form in a same view extjs mvc

I need to attach both form and grid on a same view, but unable to do this...How can i extend both. Ext.grid.Panel and Ext.form.Panel My view code is…
Mir Gulam Sarwar
  • 2,588
  • 2
  • 25
  • 39
0
votes
2 answers

disable row select extjs mvc

i am using checkboxmodel to select rows but i want to make some rows to be selection disabled based on some logic... here is my what i am trying but 'beforeselect' function doesn't even fires selModel: Ext.create('Ext.selection.CheckboxModel',…
Mir Gulam Sarwar
  • 2,588
  • 2
  • 25
  • 39
0
votes
1 answer

declare plugin in a variable in the view section extjs mvc

i have done cell editing/ row editing using row editing plugin. But for some condition i need to declare the plugin in the view's view section as var editing = Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit:…
Mir Gulam Sarwar
  • 2,588
  • 2
  • 25
  • 39
0
votes
1 answer

CheckboxModel makes some particular fields editable

i am using checkboxmodel plugin for a checkbox column.But, what i want is that 'if i check a column some cells of that row will be editable'...i searched a lot but no luck.I am working with MVC pattern and because of the plugin i dont know how to…
Mir Gulam Sarwar
  • 2,588
  • 2
  • 25
  • 39
0
votes
1 answer

How to show alert message if pdf file not found in server?

i have done application using Extjs, here requirement is need to download file from server also need to showcase loadmask untill file is completely download. Here i am generating dynamic pdf url by appending name to server base URL. some time in…
Ramesh Lamani
  • 1,117
  • 3
  • 25
  • 54