Aug 23, 2012, 2:06 PM
-
-
Aug 23, 2012, 2:43 PMJust in Ext.NET v2 the onReady scripts are executed according the queue they are registered. I though it works the same in Ext.NET v1. Never mind.
Then I would try with Delay="1" ("1" should be enough) for the Update listener. It should cause the main Ext.onReady script will be executed before the listener and all components should be registered in Ext.ComponentMgr.Last edited by Daniil; Aug 23, 2012 at 2:45 PM. -
Aug 23, 2012, 3:11 PMThis appears to be working well in IE9 and FireFox 14. It doesn't work in IE8. Maybe, the delay of 1 is not sufficient. I don't feel comfortable having to rely on timed-out actions here but it looks more and more like we're running out of options. Hopefully, my paradigm will work well enough most of the time.
-
Aug 23, 2012, 3:14 PMYes, I always try to avoid any delays if possible.
If you will be able to provide a sample to reproduce the issue, we would do our best to investigate a possibility to avoid the delay. -
Aug 23, 2012, 4:26 PMWhere does ResourceManager logically place a script registered on the server by means of RegisterAfterClientInitScript method? I've noticed that it gets appended to the Ext.net.ResourceMgr.init() stack, so would it be fair to state that it always gets executed when the document is loaded the first time?
-
Aug 23, 2012, 5:09 PMTo the end of the function passed to Ext.onReady.
Example
this.ResourceManager1.RegisterAfterClientInitScript("alert('RegisterAfterClientInitScript');");
Ext.net.ResourceMgr.init() call is separate. You could look at the Page Sources to check that.Ext.onReady(function () { // the script generated by markup and code behind alert('RegisterAfterClientInitScript'); });
Yes, any script registered by the RegisterAfterClientInitScript method will get always executed on first load. -
Aug 23, 2012, 5:17 PMThanks for clarification! What would be the correct call on the server that would register a script on a page level similar in timing to that of BeforeUpdate event handler? Is it RegisterBeforeClientInitScript?
-
Aug 23, 2012, 5:27 PMWhere? On the page which is loaded? Or on the page which initiates a load request?
-
Aug 23, 2012, 6:18 PM
-
Aug 24, 2012, 4:44 AMWell, this page does know nothing about an BeforeUpdate listener of its loader.
I think you could try to use the RegisterAfterClientInitScript method or DocumentReady for your needs.
Similar Threads
-
[CLOSED] Desktop Windows synchronization best approach
By FAS in forum 1.x Legacy Premium HelpReplies: 3Last Post: Nov 23, 2011, 6:17 PM -
Tab Panel Content Loading
By xMAC in forum 1.x HelpReplies: 5Last Post: Dec 10, 2010, 7:07 AM -
Deferred loading of Panel
By lionelhutz in forum 1.x HelpReplies: 0Last Post: Oct 09, 2009, 8:40 AM -
ext:Panel, Icon isn't loading
By flaviodamaia in forum 1.x HelpReplies: 4Last Post: Aug 07, 2009, 10:15 AM -
How to set ext:panel 's Collapsed proprty to false upon loading of ext:Panel?
By Rizwan-Ali in forum 1.x HelpReplies: 0Last Post: May 27, 2009, 6:50 AM