Best Practices for Ext.NET: version 2 vs. version 1.3

  1. #1

    Best Practices for Ext.NET: version 2.x vs. version 1.x

    Hello,

    I've spent quite some time navigating through the forums looking how to best code a UI of a relatively large CRM-type application. For Ext.NET 1.3, I decided it would be rather difficult to use user controls, so I opted for the server control modular design route, as illustrated in this example:

    https://examples1.ext.net/#/Combinat...s/Feed_Viewer/

    In version 2 of Ext.NET, I've noticed that the same example has changed quite a bit Instead of being server control based, it is now user control based with the help of <ext:UserControlLoader>

    https://examples2.ext.net/#/Combinat...s/Feed_Viewer/

    Correct me if I'm wrong, but I believe a UserControlLoader was not available in 1.3. The questions I have:

    • What do you believe is the best practice for modularizing complex UIs? (I've mentioned 2 possibilities above, if you have other ideas, please share! )
    • For Ext.NET 2.0, are there any performance implications by going to user controls from server controls?


    Any help will be greatly appreciated. Thanks!
    Last edited by geoffrey.mcgill; Nov 02, 2012 at 7:04 PM.
  2. #2
    Hi,

    Quote Originally Posted by MacGarnicle View Post
    Correct me if I?m wrong, but I believe ?UserControlLoader? was not available in 1.3.
    You are right, it appears in Ext.NET v2 to provide more comfortable mechanism to load user controls.

    Quote Originally Posted by MacGarnicle View Post
    What do you believe is the best practice for modularizing complex UIs? (I?ve mentioned 2 possibilities above, if you have other ideas, please share! )
    You can use any from these two as you wish. We don't think there is a noticeable difference in the performance aspect between these two options. So, you can choose this one that more comfortable for you.

    Another option might be creating the widgets directly via JavaScript. Certainly, it's not always possible.

    Also, MasterPage might be helpful.

    In some scenario iframes might be useful as well.

    You may be interested in the following threads:
    http://forums.ext.net/showthread.php?13726
    http://forums.ext.net/showthread.php?15712
    http://forums.ext.net/showthread.php?15699
    http://forums.ext.net/showthread.php...ll=1#post73904
    http://forums.ext.net/showthread.php?17984

    Quote Originally Posted by MacGarnicle View Post
    For Ext.NET 2.0, are there any performance implications by going to user controls from server controls?
    No. Just user controls are more clear/understandable for an example than C# code of server controls. Therefore we have switched to user controls.
  3. #3
    Quote Originally Posted by Daniil View Post
    No. Just user controls are more clear/understandable for an example than C# code of server controls. Therefore we have switched to user controls.
    Thank you for your response.

    So, if it's more clear and understandable, and has similar performance, why not use user controls all the time? :)

    I know in some cases server controls are more useful, but that's mainly to change default behavior (or add your own)...
  4. #4
    Well, I think server controls are more flexible. And yes, it allows to extend the existing classes with some functionality.

Similar Threads

  1. Replies: 0
    Last Post: Jun 15, 2012, 8:42 AM
  2. Replies: 1
    Last Post: Mar 12, 2012, 9:31 PM
  3. Replies: 2
    Last Post: Jul 02, 2011, 7:16 PM
  4. ext.net 1.0 version
    By lihl in forum Licensing
    Replies: 2
    Last Post: Jul 07, 2010, 2:04 PM
  5. Replies: 2
    Last Post: Jan 26, 2010, 12:54 PM

Tags for this Thread

Posting Permissions