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

create multiple RadDocks at a time But only one RadDock is displayed on the screen

1 Answer 36 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Dodi
Top achievements
Rank 1
Dodi asked on 08 Oct 2008, 10:39 AM
 i am trying to create multiple RadDocks at a time But only one RadDock is displayed on the screen and the rest of them are created but does not show up. When postback occurs they show but at the header of the page but not in the RAdDockzones.
and the RadDock width appears 100% of the window.

protected void CreateDynamicDock()
{

RadDockZone1.Docks.Clear();
RadDockZone2.Docks.Clear();

 

STDocksMasterRoot sTDocksMasterRootObj = new STDocksMasterRoot(); STDocksMasterCollection sTDocksMasterCollectionObj=sTDocksMasterRootObj.GetAllDocksName();
string _zone;
foreach (STDocksMaster dockName in sTDocksMasterCollectionObj)
{
RadDock dock = CreateRadDock(); UpdatePanel1.ContentTemplateContainer.Controls.Add(dock);
if (ViewState["i"] == null)
{
ViewState["i"] = 1;
_zone = "RadDockZone1" 
}
else
{
ViewState.Remove("i");
_zone = "RadDockZone2";
}

 

 

 

ScriptManager.RegisterStartupScript(
UpdatePanel1,
typeof(RadDock),
"DockIntoZone" + dock.ClientID,
string.Format(@"function _addDock() {{
Sys.Application.remove_load(_addDock);
$find('{1}').dock($find('{0}'));
$find('{0}').doPostBack('DockPositionChanged');}};
Sys.Application.add_load(_addDock);"
, dock.ClientID, _zone),
true);

CreateSaveStateTrigger(dock);
LoadWidget(dock);
}
}

 

 

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 10 Oct 2008, 02:24 PM
Tags
Dock
Asked by
Dodi
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or