private void OnInsertTableSelectionChanged(object sender, TableSelectionChangedEventArgs e) { if (e.RowIndex >= 0 && e.ColumnIndex >= 0) { this.radRichTextBox1.InsertTable(e.RowIndex + 1, e.ColumnIndex + 1); } }
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(); } }