Jul 03, 2015, 11:44 AM
Using clientside ViewControllers (Javascript)
I have a decent amount of experience using ExtJS and switched over to Ext.Net several months ago and I can't seem to figure out if this is possible or not.
I'm developing an application where responsiveness is a thing and doing a server roundtrip for every interaction is an absolute killer and since in many cases the data required is already in a store in the browser we use javascript for those cases. At the moment, we have separate Javascript files per view which are stored in a bundle and hook them up in the views using Listeners(l => ...).
That works, but the downside is that it is reasonably brittle and as files are refactored it has happened more than once that functionality stopped working.
Is there a possibility where I can define a ExtJS ViewController and add them to my application? In regular js I'd use the 'controller' config on components or define a controller and use the 'controllers' config on the Application object.
Is this possible or this is a deliberate design choice of ext.net that I do not understand?
I'm developing an application where responsiveness is a thing and doing a server roundtrip for every interaction is an absolute killer and since in many cases the data required is already in a store in the browser we use javascript for those cases. At the moment, we have separate Javascript files per view which are stored in a bundle and hook them up in the views using Listeners(l => ...).
That works, but the downside is that it is reasonably brittle and as files are refactored it has happened more than once that functionality stopped working.
Is there a possibility where I can define a ExtJS ViewController and add them to my application? In regular js I'd use the 'controller' config on components or define a controller and use the 'controllers' config on the Application object.
Is this possible or this is a deliberate design choice of ext.net that I do not understand?