void frmSMSReply_Load(object sender, EventArgs e)
        {
            grdLister.EnableAlternatingRowColor        = true;
            grdLister.TableElement.AlternatingRowColor = Color.AliceBlue;

            menu           = new RadDropDownMenu();
            menu.BackColor = Color.Orange;

            RadMenuItem subMenu1 = new RadMenuItem("Delete");

            subMenu1.ForeColor = Color.DarkBlue;
            subMenu1.BackColor = Color.Orange;
            subMenu1.Font      = new Font("Tahoma", 10, FontStyle.Bold);

            subMenu1.Click += new EventHandler(btnDelete_Click);
            menu.Items.Add(subMenu1);

            subMenu1           = new RadMenuItem("Reply");
            subMenu1.ForeColor = Color.DarkBlue;
            subMenu1.BackColor = Color.Orange;
            subMenu1.Font      = new Font("Tahoma", 10, FontStyle.Bold);

            subMenu1.Click += new EventHandler(btnReply_Click);
            menu.Items.Add(subMenu1);

            subMenu1           = new RadMenuItem("Show Job History");
            subMenu1.ForeColor = Color.DarkBlue;
            subMenu1.BackColor = Color.Orange;
            subMenu1.Font      = new Font("Tahoma", 10, FontStyle.Bold);

            subMenu1.Click += new EventHandler(btnLastBookings_Click);
            menu.Items.Add(subMenu1);

            grdLister.ContextMenuOpening += new ContextMenuOpeningEventHandler(grdLister_ContextMenuOpening);
        }
        void frmSMSReply_Load(object sender, EventArgs e)
        {
            PopulateData();

            FormatColumns();

            grdLister.EnableAlternatingRowColor        = true;
            grdLister.TableElement.AlternatingRowColor = Color.AliceBlue;

            menu           = new RadDropDownMenu();
            menu.BackColor = Color.Orange;

            RadMenuItem subMenu1 = new RadMenuItem("Delete");

            subMenu1.ForeColor = Color.DarkBlue;
            subMenu1.BackColor = Color.Orange;
            subMenu1.Font      = new Font("Tahoma", 10, FontStyle.Bold);

            subMenu1.Click += new EventHandler(btnDelete_Click);
            menu.Items.Add(subMenu1);


            //RadMenuItem subMenu2 = new RadMenuItem("Delete All");
            //subMenu2.ForeColor = Color.DarkBlue;
            //subMenu2.BackColor = Color.Orange;
            //subMenu2.Font = new Font("Tahoma", 10, FontStyle.Bold);
            //subMenu2.Click += new EventHandler(btnDeleteAll_Click);
            //menu.Items.Add(subMenu2);

            grdLister.ContextMenuOpening += new ContextMenuOpeningEventHandler(grdLister_ContextMenuOpening);
        }
        void grdLister_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
        {
            try
            {
                GridDataCellElement cell = e.ContextMenuProvider as GridDataCellElement;
                if (cell == null)
                {
                    return;
                }

                else if (cell.GridControl.Name == "grdLister")
                {
                    if (menu_Job == null)
                    {
                        menu_Job = new RadDropDownMenu();


                        RadMenuItem viewJobItem1 = new RadMenuItem("View Job");
                        viewJobItem1.ForeColor = Color.DarkBlue;
                        viewJobItem1.BackColor = Color.Orange;
                        viewJobItem1.Font      = new Font("Tahoma", 10, FontStyle.Bold);

                        viewJobItem1.Click += new EventHandler(viewJobItem1_Click);
                        menu_Job.Items.Add(viewJobItem1);
                    }

                    e.ContextMenu = menu_Job;
                    return;
                }
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }
Ejemplo n.º 4
0
        void grdLister_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
        {
            try
            {
                GridDataCellElement cell = e.ContextMenuProvider as GridDataCellElement;
                if (cell == null)
                {
                    return;
                }

                if (statsContextMenu == null)
                {
                    statsContextMenu = new RadDropDownMenu();

                    RadMenuItem menu_showJobs = new RadMenuItem("Show Bookings");
                    menu_showJobs.ForeColor = Color.Blue;
                    menu_showJobs.BackColor = Color.Blue;
                    menu_showJobs.Font      = new Font("Tahoma", 10, FontStyle.Bold);
                    menu_showJobs.Click    += new EventHandler(menu_showJobs_Click);
                    statsContextMenu.Items.Add(menu_showJobs);
                }

                e.ContextMenu = statsContextMenu;
            }
            catch (Exception ex)
            {
                //   ENUtils.ShowMessage(ex.Message);
            }
        }
Ejemplo n.º 5
0
 private void InitializeGridContextMenu()
 {
     librosContextMenu = new RadDropDownMenu();
     var rmiClientesConsignacion = new RadMenuItem("Clientes Consig.");
     rmiClientesConsignacion.Click += rmiClientesConsignacion_Click;
     librosContextMenu.Items.Add(rmiClientesConsignacion);
 }
Ejemplo n.º 6
0
        private void ManageGrid()
        {
            radGridView1.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;

            radGridView1.TableElement.RowHeight = 20;
            radGridView1.AllowAddNewRow         = false;
            radGridView1.AllowRowReorder        = DisableOrderAssets;
            radGridView1.ReadOnly            = true;
            radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;

            _menu = new RadDropDownMenu();

            RadMenuItem menuPortifolio = new RadMenuItem(Program.LanguageDefault.DictionarySelectTools["editPortfolios"]);

            menuPortifolio.Click += EditPortfolio;

            RadMenuItem menuChart = new RadMenuItem(Program.LanguageDefault.DictionarySelectTools["viewChart"]);

            menuChart.Click += ContextViewGraphic;

            RadMenuItem menuNewChart = new RadMenuItem(Program.LanguageDefault.DictionarySelectTools["newChart"]);

            menuNewChart.Click += NewChart;

            _menu.Items.Add(menuChart);
            _menu.Items.Add(menuNewChart);
            _menu.Items.Add(menuPortifolio);
        }
Ejemplo n.º 7
0
        private void InitializeGridContextMenu()
        {
            librosContextMenu = new RadDropDownMenu();
            var rmiClientesConsignacion = new RadMenuItem("Clientes Consig.");

            rmiClientesConsignacion.Click += rmiClientesConsignacion_Click;
            librosContextMenu.Items.Add(rmiClientesConsignacion);
        }
Ejemplo n.º 8
0
 public VirtualGridContextMenuOpeningEventArgs(
     int rowIndex,
     int columnIndex,
     VirtualGridViewInfo viewInfo,
     RadDropDownMenu contextMenu)
     : base(rowIndex, columnIndex, viewInfo)
 {
     this.contextMenu = contextMenu;
 }
Ejemplo n.º 9
0
        public frmInvoiceList()
        {
            InitializeComponent();
            grdLister.ShowRowHeaderColumn = false;
            grdLister.AllowEditRow        = false;
            grdLister.CellDoubleClick    += new GridViewCellEventHandler(grdLister_CellDoubleClick);
            grdLister.RowsChanging       += new Telerik.WinControls.UI.GridViewCollectionChangingEventHandler(Grid_RowsChanging);
            //objMaster = new DriverCommisionBO();

            //this.SetProperties((INavigation)objMaster);

            grdLister.ShowRowHeaderColumn = false;
            this.Shown += new EventHandler(frmCompanyInvoiceList_Shown);

            grdLister.CommandCellClick += new CommandCellClickEventHandler(grid_CommandCellClick);

            // for menus
            grdLister.ContextMenuOpening += new ContextMenuOpeningEventHandler(grdLister_ContextMenuOpening);

            AddCommisionItems           = new RadDropDownMenu();
            AddCommisionItems.BackColor = Color.Orange;

            RadMenuItem AddCommisionItems1 = new RadMenuItem("Add Company Invoice");

            AddCommisionItems1.ForeColor = Color.Green;
            AddCommisionItems1.BackColor = Color.Green;
            AddCommisionItems1.Font      = new Font("Tahoma", 10, FontStyle.Bold);
            AddCommisionItems1.Click    += new EventHandler(AddCommisionItems1_Click);
            AddCommisionItems.Items.Add(AddCommisionItems1);

            RadMenuItem AddCommisionItems2 = new RadMenuItem("Company Invoice List");

            AddCommisionItems2.ForeColor = Color.Red;
            AddCommisionItems2.BackColor = Color.Red;
            AddCommisionItems2.Font      = new Font("Tahoma", 10, FontStyle.Bold);
            AddCommisionItems2.Click    += new EventHandler(AddCommisionItems2_Click);
            AddCommisionItems.Items.Add(AddCommisionItems2);


            RadMenuItem AddCommisionItems4 = new RadMenuItem("UnPaid Invoice List");

            AddCommisionItems4.ForeColor = Color.DarkBlue;
            AddCommisionItems4.BackColor = Color.Orange;
            AddCommisionItems4.Font      = new Font("Tahoma", 10, FontStyle.Bold);
            AddCommisionItems4.Click    += AddCommisionItems4_Click;
            AddCommisionItems.Items.Add(AddCommisionItems4);

            RadMenuItem AddCommisionItems3 = new RadMenuItem("Paid Invoice List");

            AddCommisionItems3.ForeColor = Color.DarkBlue;
            AddCommisionItems3.BackColor = Color.Orange;
            AddCommisionItems3.Font      = new Font("Tahoma", 10, FontStyle.Bold);
            AddCommisionItems3.Click    += AddCommisionItems3_Click;
            AddCommisionItems.Items.Add(AddCommisionItems3);

            //RadMenuItem AddCommisionItems3 = new RadMenuItem("Driver Commis");
        }
        void grdSelectedPostCodes_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
        {
            try
            {
                GridDataCellElement cell = e.ContextMenuProvider as GridDataCellElement;
                if (cell == null)
                {
                    e.Cancel = true;
                    return;
                }
                else if (cell.GridControl.Name == "grdSelectedPostCodes")
                {
                    if (Update == null)
                    {
                        Update           = new RadDropDownMenu();
                        Update.BackColor = Color.Orange;

                        RadMenuItem UpdateCurrent = new RadMenuItem("Update Coordinates");
                        UpdateCurrent.ForeColor = Color.DarkBlue;
                        UpdateCurrent.BackColor = Color.Orange;
                        UpdateCurrent.Font      = new Font("Tahoma", 10, FontStyle.Bold);

                        UpdateCurrent.Click += new EventHandler(UpdateCurrent_Click);
                        Update.Items.Add(UpdateCurrent);


                        RadMenuItem UpdateUp = new RadMenuItem("Move Up");
                        UpdateUp.ForeColor = Color.DarkBlue;
                        UpdateUp.BackColor = Color.Orange;
                        UpdateUp.Font      = new Font("Tahoma", 10, FontStyle.Bold);
                        UpdateUp.Click    += new EventHandler(UpdateUp_Click);
                        Update.Items.Add(UpdateUp);


                        RadMenuItem UpdateDown = new RadMenuItem("Move Down");
                        UpdateDown.ForeColor = Color.DarkBlue;
                        UpdateDown.BackColor = Color.Orange;
                        UpdateDown.Font      = new Font("Tahoma", 10, FontStyle.Bold);
                        UpdateDown.Click    += new EventHandler(UpdateDown_Click);
                        Update.Items.Add(UpdateDown);
                    }

                    e.ContextMenu = Update;
                    return;
                }
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }
Ejemplo n.º 11
0
 private void gvDetalle_ContextMenuOpening(object sender, Telerik.WinControls.UI.ContextMenuOpeningEventArgs e)
 {
     try {
         if (this.gvDetalle.RowCount > 0)
         {
             RadDropDownMenu Menu     = new RadDropDownMenu();
             RadMenuItem     MenuItem = new RadMenuItem("Exportar a Excel");
             MenuItem.Click += new EventHandler(MenuItem_Click);
             Menu.Items.Add(MenuItem);
             e.ContextMenu = Menu;
         }
     } catch (Exception ex) {
         throw ex;
     }
 }
Ejemplo n.º 12
0
        public override RadDropDownMenu MergeMenus(
            RadDropDownMenu contextMenu,
            params object[] parameters)
        {
            if (contextMenu == null)
            {
                return((RadDropDownMenu)null);
            }
            int index = contextMenu.Items.Count - 1;

            if (index >= 0)
            {
                contextMenu.Items.RemoveAt(index);
            }
            return(contextMenu);
        }
        void grdJobDetails_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
        {
            if (contextMenu == null)
            {
                contextMenu = new RadDropDownMenu();


                RadMenuItem firstContextMenuItem1 = new RadMenuItem("View Jobs");

                firstContextMenuItem1.Font = new Font("Tahoma", 10, FontStyle.Bold);

                firstContextMenuItem1.Click += new EventHandler(firstContextMenuItem1_Click);
                contextMenu.Items.Add(firstContextMenuItem1);
            }

            e.ContextMenu = contextMenu;
        }
Ejemplo n.º 14
0
        void radGridViewAdvanced_ContextMenuOpening(object sender, Telerik.WinControls.UI.ContextMenuOpeningEventArgs e)
        {
            RadDropDownMenu menu     = new RadDropDownMenu();
            RadMenuItem     menuItem = new RadMenuItem("مشاهده اسناد پرونده");

            menuItem.Click += new EventHandler(menuItem_Click);
            menu.Items.Add(menuItem);
            e.ContextMenu.Items.Add(menuItem);

            for (int i = 0; i < e.ContextMenu.Items.Count; i++)
            {
                if (e.ContextMenu.Items[i].Text == "مخفی کردن ستون")
                {
                    string name = e.ContextMenu.Items[i].Name;
                    e.ContextMenu.Items[i].Click += DossierDocumentsManage2_Click;
                    //// hide the Conditional Formatting option from the header row context menu
                    //e.ContextMenu.Items[i].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
                    //// hide the separator below the CF option
                    //e.ContextMenu.Items[i + 1].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
                }
                if (e.ContextMenu.Items[i].Text == "قالب بندی مشروط")
                {
                    e.ContextMenu.Items[i].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
                }
                if (e.ContextMenu.Items[i].Text == "گروهبندی بر حسب این ستون")
                {
                    e.ContextMenu.Items[i].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
                }
                if (e.ContextMenu.Items[i].Text == "انتخابگر ستون")
                {
                    e.ContextMenu.Items[i].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
                }
                if (e.ContextMenu.Items[i].Text == "حالت ستون")
                {
                    e.ContextMenu.Items[i].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
                }
                if (e.ContextMenu.Items[i].Text == "اندازه بهینه ستون")
                {
                    e.ContextMenu.Items[i].Text   = "بازیابی ستون ها";
                    e.ContextMenu.Items[i].Click += DossierDocumentsManage3_Click;
                }
            }
        }
        public frmDriverRentList2()
        {
            InitializeComponent();
            grdLister.CellDoubleClick += new GridViewCellEventHandler(grdLister_CellDoubleClick);
            grdLister.RowsChanging    += new Telerik.WinControls.UI.GridViewCollectionChangingEventHandler(Grid_RowsChanging);
            objMaster = new DriverRentBO();

            this.SetProperties((INavigation)objMaster);

            grdLister.ShowRowHeaderColumn = false;
            this.Shown += new EventHandler(frmCompanyInvoiceList_Shown);

            grdLister.CommandCellClick += new CommandCellClickEventHandler(grid_CommandCellClick);



            // for menus
            grdLister.ContextMenuOpening += new ContextMenuOpeningEventHandler(grdLister_ContextMenuOpening);

            AddRentItems           = new RadDropDownMenu();
            AddRentItems.BackColor = Color.Orange;

            RadMenuItem AddRentItems1 = new RadMenuItem("Add Driver Rent");

            AddRentItems1.ForeColor = Color.DarkBlue;
            AddRentItems1.BackColor = Color.Orange;
            AddRentItems1.Font      = new Font("Tahoma", 10, FontStyle.Bold);
            AddRentItems1.Click    += new EventHandler(AddRentItems1_Click);
            AddRentItems.Items.Add(AddRentItems1);

            RadMenuItem AddRentItems2 = new RadMenuItem("Driver Rent List");

            AddRentItems2.ForeColor = Color.DarkBlue;
            AddRentItems2.BackColor = Color.Orange;
            AddRentItems2.Font      = new Font("Tahoma", 10, FontStyle.Bold);
            AddRentItems2.Click    += new EventHandler(AddRentItems2_Click);
            AddRentItems.Items.Add(AddRentItems2);
        }
Ejemplo n.º 16
0
        private void InitializeConstructor()
        {
            objMaster = new SysPolicyBO();

            this.SetProperties((INavigation)objMaster);

            grdSMSTemplets.CellDoubleClick += new GridViewCellEventHandler(grdSMSTemplets_CellDoubleClick);


            EditFare = new RadDropDownMenu();

            EditFare.BackColor = Color.Orange;


            RadMenuItem EditFareItem1 = new RadMenuItem("Delete");  // 0 index

            EditFareItem1.ForeColor = Color.Red;
            EditFareItem1.Font      = new Font("Tahoma", 10, FontStyle.Bold);
            EditFareItem1.Click    += new EventHandler(btnDelete_Click);
            EditFare.Items.Add(EditFareItem1);

            grdSMSTemplets.ContextMenuOpening += new ContextMenuOpeningEventHandler(grdSMSTemplets_ContextMenuOpening);
            grdSMSTemplets.RowsChanging       += new GridViewCollectionChangingEventHandler(grdSMSTemplets_RowsChanging);
        }
Ejemplo n.º 17
0
        private void InitToolStripMenuItems()
        {
            _contextMenuStrip      = new RadDropDownMenu();
            _toolStripMenuItemCopy = new RadMenuItem();
            _toolStripMenuItemOpen = new RadMenuItem();
            _toolStripMenuItemOpenWithCalculate = new RadMenuItem();

            //
            // contextMenuStrip
            //
            _contextMenuStrip.Name = "_contextMenuStrip";
            _contextMenuStrip.Size = new Size(179, 176);
            //
            // _toolStripMenuItemOpen
            //
            _toolStripMenuItemOpen.Text   = "Open";
            _toolStripMenuItemOpen.Click += OpenItemClick;
            //
            // toolStripMenuItemCopy
            //
            _toolStripMenuItemOpenWithCalculate.Text   = "Open with Calculate";
            _toolStripMenuItemOpenWithCalculate.Click += OpenCalItemClick;
            //
            // toolStripMenuItemCopy
            //
            _toolStripMenuItemCopy.Text   = "Copy";
            _toolStripMenuItemCopy.Click += CopyItemsClick;

            _contextMenuStrip.Items.Clear();
            _contextMenuStrip.Items.AddRange(
                _toolStripMenuItemOpen,
                _toolStripMenuItemOpenWithCalculate,
                new RadMenuSeparatorItem(),
                _toolStripMenuItemCopy
                );
        }
Ejemplo n.º 18
0
 /// <summary>
 /// disable ContextMenuShowing
 /// </summary>
 /// <param name="element"></param>
 /// <param name="contextMenu"></param>
 /// <returns></returns>
 protected override RadDropDownMenu OnContextMenuShowing(Telerik.WinControls.RadElement element, RadDropDownMenu contextMenu)
 {
     /// Do Nothing;
     return null;
 }
        void grdLister_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
        {
            try
            {
                GridDataCellElement cell = e.ContextMenuProvider as GridDataCellElement;
                if (cell == null)
                {
                    return;
                }

                else if (cell.GridControl.Name == "grdLister")
                {
                    if (EditFare == null)
                    {
                        EditFare           = new RadDropDownMenu();
                        EditFare.BackColor = Color.Orange;

                        RadMenuItem EditFareItem1 = new RadMenuItem("Edit Fare");
                        EditFareItem1.ForeColor = Color.DarkBlue;
                        EditFareItem1.BackColor = Color.Orange;
                        EditFareItem1.Font      = new Font("Tahoma", 10, FontStyle.Bold);

                        EditFareItem1.Click += new EventHandler(EditFareItem1_Click);
                        EditFare.Items.Add(EditFareItem1);


                        //RadMenuItem EditFareItem2 = new RadMenuItem("Arrival Text");
                        //EditFareItem2.ForeColor = Color.DarkBlue;
                        //EditFareItem2.BackColor = Color.Orange;
                        //EditFareItem2.Font = new Font("Tahoma", 10, FontStyle.Bold);
                        //EditFareItem2.Click += new EventHandler(EditFareItem2_Click);
                        //EditFare.Items.Add(EditFareItem2);


                        //EditFareItem2 = new RadMenuItem("SMS Job Details");
                        //EditFareItem2.ForeColor = Color.DarkBlue;
                        //EditFareItem2.BackColor = Color.Orange;
                        //EditFareItem2.Font = new Font("Tahoma", 10, FontStyle.Bold);
                        //EditFareItem2.Click += new EventHandler(SMSJob_Click);
                        //EditFare.Items.Add(EditFareItem2);


                        //EditFareItem1 = new RadMenuItem("Complete Job");
                        //EditFareItem1.ForeColor = Color.Black;
                        //EditFareItem1.Font = new Font("Tahoma", 10, FontStyle.Bold);
                        //EditFareItem1.Click += new EventHandler(ForceCompleteJob_Click);
                        //EditFare.Items.Add(EditFareItem1);


                        RadMenuItem EditFareItem3 = new RadMenuItem("View Job");
                        EditFareItem3.ForeColor = Color.DarkBlue;
                        EditFareItem3.BackColor = Color.Orange;
                        EditFareItem3.Font      = new Font("Tahoma", 10, FontStyle.Bold);
                        EditFareItem3.Click    += new EventHandler(EditFareItem3_Click);
                        EditFare.Items.Add(EditFareItem3);
                    }

                    e.ContextMenu = EditFare;
                    return;
                }
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }
Ejemplo n.º 20
0
        private RadDropDownMenu BuildContextMenu(SpanLayoutBox spanBox)
        {
            RadDropDownMenu menu = new RadDropDownMenu();
            RadMenuItem     menuItem;

            if (this.Document.Selection.IsEmpty && this.IsSpellCheckingEnabled && spanBox != null)
            {
                this.Document.CaretPosition.MoveToInline(spanBox, 0);

                string spanBoxTextAlphaNumericOnly = String.Concat(spanBox.Text.TakeWhile(c => char.IsLetterOrDigit(c)));

                if (spanBoxTextAlphaNumericOnly.Length > 0 && !this.ControlSpellChecker.SpellChecker.CheckWordIsCorrect(spanBoxTextAlphaNumericOnly))
                {
                    string[] suggestions = (string[])this.ControlSpellChecker.SpellChecker.GetSuggestions(spanBox.Text);

                    if (suggestions.Length <= 0)
                    {
                        menuItem         = new RadMenuItem("(No Spelling Suggestions)");
                        menuItem.Enabled = false;
                        menu.Items.Add(menuItem);
                    }

                    foreach (string suggestion in suggestions)
                    {
                        menuItem        = new RadMenuItem(suggestion);
                        menuItem.Click += (object sender, EventArgs e) => { this.ReplaceCurrentWord(spanBox, (sender as RadMenuItem).Text); };
                        menu.Items.Add(menuItem);
                    }

                    menu.Items.Add(new SeparatorElement());

                    menuItem        = new RadMenuItem("Add to Dictionary");
                    menuItem.Click += (object sender, EventArgs e) => { this.ControlSpellChecker.SpellChecker.AddWord(spanBoxTextAlphaNumericOnly); };
                    menu.Items.Add(menuItem);

                    menu.Items.Add(new SeparatorElement());
                }
            }

            menuItem        = new RadMenuItem("Undo");
            menuItem.Click += (object sender, EventArgs e) => { this.Undo(); };
            menu.Items.Add(menuItem);

            menu.Items.Add(new SeparatorElement());

            menuItem        = new RadMenuItem("Cut");
            menuItem.Click += (object sender, EventArgs e) => { this.Cut(); };
            menu.Items.Add(menuItem);

            menuItem        = new RadMenuItem("Copy");
            menuItem.Click += (object sender, EventArgs e) => { this.Copy(); };
            menu.Items.Add(menuItem);

            menuItem        = new RadMenuItem("Paste");
            menuItem.Click += (object sender, EventArgs e) => { this.Paste(); };

            menu.Items.Add(menuItem);

            menuItem        = new RadMenuItem("Delete");
            menuItem.Click += (object sender, EventArgs e) => { this.Delete(false); };
            menu.Items.Add(menuItem);

            menu.Items.Add(new SeparatorElement());

            menuItem        = new RadMenuItem("Select All");
            menuItem.Click += (object sender, EventArgs e) => { this.Document.Selection.SelectAll(); };
            menu.Items.Add(menuItem);

            return(menu);
        }
        void grdLister_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
        {
            try
            {
                GridDataCellElement cell = e.ContextMenuProvider as GridDataCellElement;
                if (cell == null)
                {
                    return;
                }

                else if (cell.ColumnInfo.Name == "BackupPlot1" || cell.ColumnInfo.Name == "BackupPlot2")
                {
                    if (contextMenu == null)
                    {
                        contextMenu           = new RadDropDownMenu();
                        contextMenu.BackColor = Color.Orange;

                        RadMenuItem item1 = new RadMenuItem("High Priority");
                        item1.ForeColor = Color.DarkBlue;
                        item1.BackColor = Color.Orange;
                        item1.Font      = new Font("Tahoma", 10, FontStyle.Bold);

                        item1.Click += new EventHandler(item1_Click);
                        contextMenu.Items.Add(item1);


                        RadMenuItem item2 = new RadMenuItem("Mark All Bidding");
                        item2.ForeColor = Color.DarkBlue;
                        item2.BackColor = Color.Orange;
                        item2.Font      = new Font("Tahoma", 10, FontStyle.Bold);

                        item2.Click += new EventHandler(item2_Click);
                        contextMenu.Items.Add(item2);


                        RadMenuItem item3 = new RadMenuItem("UnMark All Bidding");
                        item3.ForeColor = Color.DarkBlue;
                        item3.BackColor = Color.Orange;
                        item3.Font      = new Font("Tahoma", 10, FontStyle.Bold);
                        item3.Click    += new EventHandler(item3_Click);
                        contextMenu.Items.Add(item3);



                        RadMenuItem item4 = new RadMenuItem("Mark All AutoDespatch");
                        item4.ForeColor = Color.DarkBlue;
                        item4.BackColor = Color.Orange;
                        item4.Font      = new Font("Tahoma", 10, FontStyle.Bold);

                        item4.Click += new EventHandler(item4_Click);
                        contextMenu.Items.Add(item4);


                        RadMenuItem item5 = new RadMenuItem("UnMark All AutoDespatch");
                        item5.ForeColor = Color.DarkBlue;
                        item5.BackColor = Color.Orange;
                        item5.Font      = new Font("Tahoma", 10, FontStyle.Bold);
                        item5.Click    += new EventHandler(item5_Click);
                        contextMenu.Items.Add(item5);
                    }

                    e.ContextMenu = contextMenu;
                    return;
                }
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }