protected void Page_Load(object sender, EventArgs e) { RadDock dock = CreateRadDock(); RadDockLayout1.Controls.Add(dock); dock.Dock(RadDockZone1); }
private void getTeamRoster(RadDockLayout rDL, RadDockZone rDZ, int SeasonID, int TeamID, RadDropDownList rDDPosition) { TeamBusinessLogicLayer TeamBLL = new TeamBusinessLogicLayer(); TeamDomainModel Team = new TeamDomainModel(); List <v_Team_Draft_RosterDomainModel> lstTeamDeal = TeamBLL.ListTeamRoster(SeasonID, TeamID); foreach (v_Team_Draft_RosterDomainModel item in lstTeamDeal) { if (rDDPosition.SelectedValue != string.Empty) { if (item.PositionTypeID == Convert.ToInt32(rDDPosition.SelectedValue)) { RadDock dock = CreateRadDock(item); dock.DockHandle = DockHandle.TitleBar; RadAjaxManager1.AjaxSettings.AddAjaxSetting(rDZ, dock, RadAjaxLoadingPanel1); rDL.Controls.Add(dock); dock.Dock(rDZ); } } } }