This is a migrated thread and some comments may be shown as answers.

LoadDockLayout event does not fire

3 Answers 88 Views
Dock
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 22 May 2008, 02:00 AM
I am running the sample LoadSaveLayout on this machine with VS 2008 and the SaveDockLayout event fires as expected, but the LoadDockLayout event never fires.  Is this a current issue that is being addressed?

I first saw the problem with a composite control that I am creating which wraps some of the telerik controls and thought I was doing something wrong, but then tested on an XP SP2 machine and all was fine.  So then I tried the LoadSaveLayout sample on my 64-bit Vista machine and still no luck in the firing of the LoadDockLayout event.

Does anyone have a work around for this?  I am assuming that since this event doesn't fire on 64-bit Vista that is most likely won't fire on a 64-bit 2008 server.  I haven't tested this just yet, but plan to do so soon and will try to put my findings on this post to aid in resolving this issue.

Thanks
John

3 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 22 May 2008, 01:36 PM
Hello John,

I tested the Load/SaveLayout demo on 64-bit Vista machine using VS2008 and was not able to reproduce the problem you mention. I  put breakpoints at SaveDockLayout and LoadDockLayout event handlers and when running the page it stopped at both of them. For your convenience I have attached a video demonstrating my testing process. Please, take a look at the enclosed video and let me know whether I am missing something. Make sure that in your test page which you run on 64-bit Vista machine the LoadDockLayout event of the RadDockLayout has an event handler set. 

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ian Blackburn
Top achievements
Rank 1
answered on 09 Jul 2008, 12:03 PM
I think it is to do with where you wire up the event.  If you wire it in code with in Page_loaded then it is too late in the lifecycle and won't fire.

Better to wire the event up declaritively as shown below, however this is not obvious because the events do not show in the event properties window in VS2008, and they look like client events rather than server ones!

<telerik:raddocklayout runat="server" enableviewstate="false" id="RadDockLayout1" onloaddocklayout="RadDockLayout1_LoadDockLayout"
            onsavedocklayout="RadDockLayout1_SaveDockLayout" storelayoutinviewstate="false">
            
0
Shaun
Top achievements
Rank 1
answered on 01 Oct 2008, 11:35 PM
Hi, I was just having this problem, and finally worked out what was going on. The load event continued to not fire even when the docks where initialised in the INIT stage and declared within the ASPX.

But the problem is that it fires on the PAGE INIT. So if it is within a USER CONTROL, running it on INIT isn't enough if the actual usercontrol is added to the base page at the PAGE LOAD stage, which I was doing.

So my process was:

PAGE
 -> Load Usercontrol -- MUST BE INIT
 -> User control Loads Docks - MUST BE INIT

Anyway, thats probably obvious in hindsight but hopefully this helps someone else out there!
Tags
Dock
Asked by
John
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Ian Blackburn
Top achievements
Rank 1
Shaun
Top achievements
Rank 1
Share this question
or