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

Dynamic RadDock and StoreLayoutInViewState

3 Answers 84 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Shaun
Top achievements
Rank 1
Shaun asked on 01 Oct 2008, 11:34 AM
$0Hi, I am a quite confused about dynamically generating the raddocks and have been working on different approaches, reading your online demos without much success. And I'm not sure your demos are even accurate any more, for the newest version.$0$0$0$0$0I would have thought that setting the StoreLayoutInViewState property would keep the docks in their position after postback? For instance, I build the radDocks during Page Init, only on non-postback I set the docks into their initial Zones, otherwise (on postback) just to the Layout. (I assumed that the Layout would store-in-view-state the changes, and recreate them correctly)$0$0$0$0$0But it doesn't remember the state, if a command is clicked with postback, the states reset back to their original - but shouldn't the postback have sent the new state?$0$0$0$0$0Its obviously remembered something because it reverted back to the original zones, without me specifying them.$0$0$0$0$0Otherwise, what help is the StoreLayoutInViewState property?, which I assume will only work with non-dynamically generated docks? Is that correct?$0$0$0$0$0$0Most of your other controls have been really simple to implement, but this one is driving me crazy.$0$0$0$0$0Has a RadAjaxManager demo been created yet? Hope someone can help! $0$0$0$0$0Thanks!$0

3 Answers, 1 is accepted

Sort by
0
Shaun
Top achievements
Rank 1
answered on 01 Oct 2008, 11:37 AM
Hmm. And Google Chrome seemed to add lots of funny characters in your forum... odd.
0
Serrin
Top achievements
Rank 1
answered on 01 Oct 2008, 08:36 PM
Hey Shaun,

Have you tried using LoadDockLayout and SaveDockLayout like was linked to in this post?  I expected those properties to work like you did and fought with them for a while before finding the demo example to save states.

And I think the Chrome thing is fixed in the new release/sp that is coming out soon...
0
Shaun
Top achievements
Rank 1
answered on 02 Oct 2008, 12:08 AM
Thanks heaps Serrin,

That was a good cut down sample which will help.

I actually just worked out that the StoreLayoutInViewState does actually work, it wasn't working for me because I was loading the docks at INIT stage within a USERCONTROL.  However, the Usercontrol was being loaded into the Page at LOAD stage, so it was failing.

I guess the documentation says this, but I was thinking locally in terms of the user control lifecycle, not the actual PAGE lifecycle.

Thanks again for your help
Tags
Dock
Asked by
Shaun
Top achievements
Rank 1
Answers by
Shaun
Top achievements
Rank 1
Serrin
Top achievements
Rank 1
Share this question
or