private void frmOriginal_Load(object sender, EventArgs e) { if (!Common.bIsConnectionStringEstablish) { fnDisableControls(Common.bIsConnectionStringEstablish, false); btnDataConnection_Click(null, null); } //else //{ // fnIsTableMapped(); // //rbbtnDataConnection.Enabled = false; // //btnDataConnection.Enabled = false; //} iLeftMenuHeight = radLeftMenu.Height; fnSetImagesOfficeColors(); fnShowProjects(false); fnMapProjectDetails(); // fnOffersOpprortunityCount(); fnIsTableMapped(); RadPageViewExplorerBarElement explorerBarElement = (this.radLeftMenu.ViewElement as RadPageViewExplorerBarElement); explorerBarElement.ContentSizeMode = ExplorerBarContentSizeMode.AutoSizeToBestFit; //radLeftMenu.SelectedPage = radLeftMenu.Pages["pgRecommendation"]; radLeftMenu.Pages["pgRecommendation"].IsContentVisible = true; // btnMovementWindow_Click(null, null); btnMovementWindow.PerformClick(); bFormLoded = true; }
void item_MouseHover(object sender, EventArgs e) { RadPageViewExplorerBarItem item = (RadPageViewExplorerBarItem)sender; RadPageViewExplorerBarElement explorerBarElement = radPageView1.ViewElement as RadPageViewExplorerBarElement; foreach (RadPageViewExplorerBarItem i in explorerBarElement.Items) { i.IsExpanded = false; } item.IsExpanded = true; }
public RadForm1() { InitializeComponent(); RadPageViewExplorerBarElement explorerBarElement = radPageView1.ViewElement as RadPageViewExplorerBarElement; foreach (RadPageViewExplorerBarItem item in explorerBarElement.Items) { item.MouseHover += item_MouseHover; item.AssociatedContentAreaElement.RadPropertyChanging += AssociatedContentAreaElement_RadPropertyChanging; } timer = new System.Windows.Forms.Timer(); timer.Interval = 30; timer.Tick += timer_Tick; radPageView1.PageExpanded += radPageView1_PageExpanded; }