Example #1
0
 private void OnInsertTableSelectionChanged(object sender, TableSelectionChangedEventArgs e)
 {
     if (e.RowIndex >= 0 && e.ColumnIndex >= 0)
     {
         this.radRichTextBox1.InsertTable(e.RowIndex + 1, e.ColumnIndex + 1);
     }
 }
Example #2
0
        protected virtual void OnSelectionChanged(TableSelectionChangedEventArgs e)
        {
            EventHandler <TableSelectionChangedEventArgs> handler = this.SelectionChanged;

            if (handler != null)
            {
                handler(this, e);
            }

            RadDropDownButtonElement buttonElement = this.Owner as RadDropDownButtonElement;

            if (buttonElement != null)
            {
                buttonElement.DropDownMenu.ClosePopup(RadPopupCloseReason.Mouse);
                this.ResetVisuals();
            }
        }