﻿@Html.DevExpress().PopupMenu(settings =>
{
    settings.Name = "CtxMultiSpecialObjectContextMenu";
    settings.AllowSelectItem = false;
    settings.PopupAction = PopupAction.LeftMouseClick;
     settings.ClientSideEvents.ItemClick = "function(s,e){SpecialObjects.OnContextMenuMultiSpecialObjectItemClick(s,e);}";
    var imageWidth = 16;
    settings.Items.Add(
       c =>
       {
           c.Name = "RefreshMultiSpecialObject";
           c.Text = T("Refresh").ToString();
           c.Image.SpriteProperties.CssClass = "rzSVG rzSVG-svgRefresh";
           c.Image.SpriteProperties.DisabledCssClass = "rzSVG rzSVG-svgRefresh rzSVGDisable";
           c.BeginGroup = true;
       });
    settings.Items.Add(c =>
    {
        c.Name = "Apply";
        c.Text = T("Apply").ToString();
        c.BeginGroup = true;
        c.Image.Width = imageWidth;

        c.Items.Add(T("ApplyThisValueToAll").ToString(), "ApplyThisValueToAll").Index = 1;
        c.Items.Add(T("ApplyThisValueToAllAbove").ToString(), "ApplyThisValueToAllAbove").Index = 2;
        c.Items.Add(T("ApplyThisValueToAllBelow").ToString(), "ApplyThisValueToAllBelow").Index = 3;
        c.Items.Add(T("ApplyThisValueToAllSelected").ToString(), "ApplyThisValueToAllSelected").Index = 4;
    });
    settings.Items.Add(
        c =>
        {
            c.Name = "ExportToExcel";
            c.Text = T("ExportToExcel").ToString();
            c.Image.Width = imageWidth;
        });

}).GetHtml()
