Oct 21, 2015, 8:03 PM
[CLOSED] Single page application
Hello
My question is bot more generic, I'm just looking for the direction where to read and aditionaly some ideas if possible
So we are planning to to brand new application, relativelly wide one, everything on one page (well login will be probably another)
now what I'm looking for is to understand and choose what Ext.net offers me (I tried forums and did not find too much)
So let's start with relativelly simple example like http://mvc.ext.net/#/XRender_Basic/Add_Items/
the control is created during direct call - which is great - but I would rather have it ready on clinet and just instantiate it using Ext.create
You probably saw me playing with the
ComponentLoader.ToConfig
method in one of previous post. which works, but in general I don't have impression it's recomendd solution
problem is that in bit complex controls it generate additional stuff (for example .show calls, divs for <content> tag with hardcoded ids, so the overall script is not reusable). I can write the details if you want. But for now I'm just looking for recomended way how to do single page application, with UI json loaded when the page load, and based on loaded json dynamically create UI componets. Basically how the typical ExtJs application works
And note that I'm trying to avoid going extjs way as ( I do not want to make you unhappy :-)) creating UI in ascx/mvc is pretty productive way of dealing with ExtJs and additionally your small enhancements to ExtJs are particulary usefull.
I know that I can include ResourceManager on the page and create UI in js, like with ExtJs, possibly even using their MVVM. But that would exclude ascx files where intelisence and compile time check is more then handy
Thanks
Zdenek
My question is bot more generic, I'm just looking for the direction where to read and aditionaly some ideas if possible
So we are planning to to brand new application, relativelly wide one, everything on one page (well login will be probably another)
now what I'm looking for is to understand and choose what Ext.net offers me (I tried forums and did not find too much)
So let's start with relativelly simple example like http://mvc.ext.net/#/XRender_Basic/Add_Items/
the control is created during direct call - which is great - but I would rather have it ready on clinet and just instantiate it using Ext.create
You probably saw me playing with the
ComponentLoader.ToConfig
method in one of previous post. which works, but in general I don't have impression it's recomendd solution
problem is that in bit complex controls it generate additional stuff (for example .show calls, divs for <content> tag with hardcoded ids, so the overall script is not reusable). I can write the details if you want. But for now I'm just looking for recomended way how to do single page application, with UI json loaded when the page load, and based on loaded json dynamically create UI componets. Basically how the typical ExtJs application works
And note that I'm trying to avoid going extjs way as ( I do not want to make you unhappy :-)) creating UI in ascx/mvc is pretty productive way of dealing with ExtJs and additionally your small enhancements to ExtJs are particulary usefull.
I know that I can include ResourceManager on the page and create UI in js, like with ExtJs, possibly even using their MVVM. But that would exclude ascx files where intelisence and compile time check is more then handy
Thanks
Zdenek
Last edited by Daniil; Oct 29, 2015 at 1:58 PM.
Reason: [CLOSED]