[CLOSED] Loading UserControls with UserControlLoader --Version Ext.NET.MVC.Pro.2.1.1

Page 1 of 3 123 LastLast
  1. #1

    [CLOSED] Loading UserControls with UserControlLoader --Version Ext.NET.MVC.Pro.2.1.1

    Hello,

    I have in my application a few speed issues.
    At Page (View),I load at runtime several instances of a UserControl( .ascx with UserControlLoader)in
    my Panel.

    One can imagine the UserControl as a contribution to a profile in Facebook. This UserControl has many functions.
    I have the opportunity to build this client side. This also works well.

    But the problem is, for many controls will my contribution-container(panel) slowly.
    For example,the insert a text box in this panel by jscript takes an eternity until it sees
    and the browser has rendered finish...

    Have you any ideas for a solution to this problem ??

    Thanks for helping!
    Last edited by Daniil; Feb 13, 2013 at 10:16 AM. Reason: [CLOSED]
  2. #2
    Hi @ontiv,

    Please demonstrate how you add a test box.
  3. #3
    Hi Daniil,

    but that was just an example of many...
    .js
    var AddPanel = function () {
    
                var p_addpanel = new Ext.Panel({
                    height: 100
                });
    
                Ext.getCmp('p_contributionlist').add(p_addpanel);
            }
    All actions are influencing the content of the panel are slowly.

    Examples:
    -The height of an UserControls is changing...
    -I delete a UserControl
    -I add a panel
    -I show or hide an UserControl or an another element

    I hope you know what I mean :)

    That does not happen when I add just a lot of panels (ext:Panel) on the client side. I think
    it has to do with the UserControlLoader and UserControls..

    Thanks
  4. #4
    Could you test it with the Ext.NET sources from SVN trunk?

    There were some improvements regarding this part.
  5. #5
    The structure of my view is similar to this guestbook here :

    Click image for larger version. 

Name:	View Profile Daniil - Ext.png 
Views:	146 
Size:	51.6 KB 
ID:	5569

    Can you give me some hints to build a chronologicial list like your guestbook (or any other blog).

    I need a container that gives me a lot of possibilities to design my own items (UserControls)
    and in the same time the best performance as possible (to handle big data, lazy loading, loading by scrolling, paging).
  6. #6
    ASP.NET Repeater, Ext.NET DataView or XRender mechanism can be an option.

    It is hard to say what would be the best option.

    Maybe, the option that you currently use is not bad. Please provide a sample to reproduce the problem, we would be happy to try to improve the performance.

    loading by scrolling
    If you mean infinite scrolling in GridPanel, then it is only available for grids and trees (> v2.1).

    I need a container that gives me a lot of possibilities to design my own items (UserControls)
    Design? Please clarify.
  7. #7
    Hi,

    If you mean infinite scrolling in GridPanel, then it is only available for grids and trees (> v2.1).
    I mean "loading by scrolling" like this http://www.aspsnippets.com/demos/288/

    Design? Please clarify.
    The build of different templates or usercontrols and display them in one container
  8. #8
    Thanks for clarification.

    There is no ready solution for this, but it all should be possible.
  9. #9
    ASP.NET Repeater, Ext.NET DataView or XRender mechanism can be an option.
    I have already noticed that the DataView is very fast, but is there a way to add the templates dynamically to DataView ?
    because the problem is that I have several items..

    Another question...Can I build the template from DataView with Ext.Net controls ? or only asp ?

    Thanks
  10. #10
    Quote Originally Posted by ontiv View Post
    I have already noticed that the DataView is very fast, but is there a way to add the templates dynamically to DataView ?
    because the problem is that I have several items..

    Another question...Can I build the template from DataView with Ext.Net controls ? or only asp ?
    Well, a DataView now supports Ext.NET controls (very recent enhancement), but it is not recommended to use for rendering many complex items.

    Maybe, for your case XRender is better.
Page 1 of 3 123 LastLast

Similar Threads

  1. [CLOSED] UserControlLoader with properties
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 08, 2013, 5:49 AM
  2. [CLOSED] Loading userControls dinamically inside tabs
    By RogerioAquino in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 03, 2013, 4:20 PM
  3. Replies: 6
    Last Post: Dec 06, 2012, 4:03 PM
  4. Replies: 4
    Last Post: Feb 01, 2012, 8:37 AM
  5. Replies: 7
    Last Post: Oct 28, 2011, 4:25 PM

Tags for this Thread

Posting Permissions