コード例 #1
0
        private List<GridActionItem> CreateGridActionItems()
        {
            var actionItems = CommonUtils.CreateGridActionItemList(true);

            var customAction = new GridActionItem
            {
                ActionType = GridActionType.Custom,
                Title = "View in Tree",
                ConfirmationNeeded = false,
                Command = "ViewInTree",
                CssClass = "fa fa-search icon-edit grow"
            };

            actionItems.Add(customAction);

            return actionItems;
        }
コード例 #2
0
        private static List<GridActionItem> BuildGridActionList(EventOccurrenceDto occurrence)
        {
            var list = CommonUtils.CreateGridActionItemList(true);

            //cancel
            if (!occurrence.IsCanceled)
            {
                var cancel = new GridActionItem
                {
                    ActionType = GridActionType.Custom,
                    CssClass = Constants.GridActionsCssClass + "fa-ban",
                    Command = CancelOccurrencesCommand,
                    Title = "Cancel this occurrence"
                };
                list.Add(cancel);
            }

            //copy
            var copy = new GridActionItem
            {
                ActionType = GridActionType.Custom,
                CssClass = Constants.GridActionsCssClass + "fa-clone",
                Command = CopyOcurrenceCommand,
                Title = "Copy occurrence"
            };
            list.Add(copy);

            return list;
        }
コード例 #3
0
        private static List<GridActionItem> BuildGridActionList()
        {
            var list = CommonUtils.CreateGridActionItemList(true);

            //build custom copy actions
            //copy event
            var copyEvent = new GridActionItem
            {
                ActionType = GridActionType.Custom,
                CssClass = Constants.GridActionsCssClass + "fa-clone",
                Command = CopyEventCommand,
                Title = "Copy Event"
            };
            list.Add(copyEvent);

            //copy event and occurrences
            var copyAll = new GridActionItem
            {
                ActionType = GridActionType.Custom,
                CssClass = Constants.GridActionsCssClass + "fa-files-o",
                Command = CopyEventAndOccurrencesCommand,
                Title = "Copy Event and Occurrences"
            };
            list.Add(copyAll);

            return list;
        }