Exemplo n.º 1
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.searchTextBox = this.CreateSearchTextBox();
     this.Children.Add((RadElement)this.searchTextBox);
     this.waitingBar = this.CreateWaitingBarElement();
     this.Children.Add((RadElement)this.waitingBar);
     this.findPreviousButton = this.CreateFindPreviousButton();
     this.Children.Add((RadElement)this.findPreviousButton);
     this.findNextButton = this.CreateFindNextButton();
     this.Children.Add((RadElement)this.findNextButton);
     this.matchCaseButton                   = this.CreateMatchCaseButton();
     this.chooseColumnsMenuItem             = this.CreateChooseColumnsMenuItem();
     this.matchCaseMenuItem                 = this.CreateMatchCaseMenuItem();
     this.searchFromCurrentPositionMenuItem = this.CreateSearchFromCurrentPositionMenuItem();
     this.optionsButton = this.CreateOptionsButton();
     this.Children.Add((RadElement)this.optionsButton);
     this.buttonsStack        = new StackLayoutPanel();
     this.buttonsStack.Margin = new Padding(0, 1, 0, 2);
     this.Children.Add((RadElement)this.buttonsStack);
     this.closeButton        = this.CreateCloseButton();
     this.closeButton.Class  = "SearchRowCloseButton";
     this.closeButton.Click += new EventHandler(this.CloseButton_Click);
     this.buttonsStack.Children.Add((RadElement)this.closeButton);
 }
Exemplo n.º 2
0
        protected virtual GridSearchCellButtonElement CreateFindNextButton()
        {
            GridSearchCellButtonElement cellButtonElement = new GridSearchCellButtonElement();

            cellButtonElement.Arrow.Direction = Telerik.WinControls.ArrowDirection.Down;
            cellButtonElement.DisplayStyle    = DisplayStyle.Image;
            cellButtonElement.Margin          = new Padding(0, 1, 0, 2);
            return(cellButtonElement);
        }