protected void UserItemCommand(object o, GridCommandEventArgs e) { if (e.CommandName == RadGrid.EditCommandName || e.CommandName == "RowClick" && e.Item is GridDataItem) { e.Item.Selected = true; CurrentCampaignID = (int)e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"]; CurrentOverView = new OverViewReport(CurrentCampaignID); CurrentTotals = new CMData.CampaignTotalsRepository().GetByCampaignID(CurrentCampaignID); tsCampaignDetails.SelectedIndex = CurrentTab; LoadDetailsByTab(tsCampaignDetails.SelectedTab.Value, true); } }
protected void Page_Load(object sender, EventArgs e) { Master.Page.Title = TITLE_TEXT + "Campaign Dashboard"; //RadAjaxManager ram = (RadAjaxManager)this.Master.FindControl("RadAjaxManager1"); //RadAjaxLoadingPanel alp = (RadAjaxLoadingPanel)this.Master.FindControl("AjaxLoadingPanel1"); //ram.AjaxSettings.AddAjaxSetting(rgCampaignHistory, rgCampaignHistory, alp); //ram.AjaxSettings.AddAjaxSetting(rgCampaignHistory, rgCampaignHistory); //ram.AjaxSettings.AddAjaxSetting(rgCampaignHistory, tsCampaignDetails); //ram.AjaxSettings.AddAjaxSetting(rgCampaignHistory, mpCampaignDetails); //ram.AjaxSettings.AddAjaxSetting(tsCampaignDetails, tsCampaignDetails); //ram.AjaxSettings.AddAjaxSetting(tsCampaignDetails, mpCampaignDetails); if (!IsPostBack) { CurrentCampaignID = -1; CurrentTab = 0; CurrentOverView = null; CurrentTotals = null; LoadCampaigns(true); tsCampaignDetails.SelectedIndex = CurrentTab; mpCampaignDetails.PageViews[0].Selected = true; LoadDetailsByTab(CurrentTab.ToString(), true); } }