[CLOSED] chart rendering problem and ext resources

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] chart rendering problem and ext resources

    Hello
    I have a problem where i can not easily create an example but I know where the problem comes from, hopefully someone has a solution:

    I am creating some charts dynamically through partial view and clicking on a button will show these charts. The first time I click not all charts are displayed and there is a mess somewhere in rendering process as ext net resources are rendered in between and the remaining charts do not render. the second and next times clicking on the button all charts will be rendered correctly.

    So is there a way to control the downloading these resources?
    Resources that are loaded for the first time:
    https://localhost:44300/extjs/packag...xt.axd?v=4.1.0
    https://localhost:44300/extjs/packag...xt.axd?v=4.1.0
    https://localhost:44300/extnet/src/d...xt.axd?v=4.1.0

    Click image for larger version. 

Name:	network.png 
Views:	96 
Size:	41.8 KB 
ID:	25001
    Last edited by fabricio.murta; Jul 14, 2017 at 4:29 PM.
  2. #2
    Hello @mirwais!

    As you sated you're not able to make a test case for us to reproduce the issue, I don't think we can help much. But as far as an idea is concerned, you could just preload the resources up front, before loading the charts.

    While we once did this (in our Mobile Examples Explorer) just to make smoother dynamic charts loading once the page is first open, this may be just as useful for you to (in a pragmatic approach) preload charts or other components' resources beforehand.

    I'm talking about this: Default.aspx on Ext.NET Mobile examples explorer code. The lines should be hilighted once you open the link.

    But if you happen to be able to make us a test case then we'd could get to the bottom of it and provide you a more specific solution and feedback.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3

    closed

    come on Fabricio, you sure can solve it without a complete example! in fact you did:) Thanks a lot for the tip, this was an annoying problem, which is now solved.
  4. #4
    Hello @mirwais!

    Thanks for your feedback! But it is like a shot in the dark when we don't know what exactly we are talking about. This could solve the problem for you but knowing how exactly you triggered it could allow us to pinpoint the reason and fix it so in future releases you won't even needing to bother loading resources by yourself.

    Well, preloading the scripts can be a good choice as it may eliminate "hicks" during the page interaction though.

    I am glad the shot hit the bird (poor bird, well, the dummy target!) and helped you out!
    Fabrício Murta
    Developer & Support Expert
  5. #5

    upgrade 4.5 not working

    Hello Fabricio
    That fix is not working anymore in the current version 4.5 when we were trying to upgrade.
    ResourceManager.RegisterControlResources<DrawContainer>();
    Is that some other control than DrawContainer?
  6. #6
    Hello @mirwais, this aspect of Ext.NET didn't really change from 4.4 to 4.5 but maybe if you upgraded from an even older version, this could be the case. If you draw the same chart in a static page (all defined in markup/razor), does it load all the resources?..

    To be honest, the first reply was a shoot in the dark and I was lucky it helped you, but I'm still in the dark here to help you. All I can think is you should add additional resources (like, maybe, the chart component itself). But we really didn't change the resources loading hierarchy, so maybe the issue is happening to static pages as well (maybe some breaking change?) and the fact you load them dynamically biased identifying the exact issue?
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] LoadMask the Rendering of a Chart
    By csfesta in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 11, 2013, 4:29 AM
  2. [CLOSED] IE10 - Chart rendering
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 20, 2013, 1:53 PM
  3. Replies: 0
    Last Post: Jun 18, 2013, 2:02 PM
  4. Chart rendering issue
    By raiwinashu in forum 2.x Help
    Replies: 3
    Last Post: Jun 12, 2013, 11:24 AM
  5. [CLOSED] [1.0] Repeated JavaScript resources requests problem
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 14, 2011, 4:47 PM

Tags for this Thread

Posting Permissions