Ejemplo n.º 1
0
        protected virtual void InitToolbar()
        {
            var toolbarDiv = this.ById("Toolbar");

            if (toolbarDiv.Length == 0)
            {
                return;
            }

            var opt = new ToolbarOptions
            {
                Buttons = GetToolbarButtons()
            };

            toolbar = new Toolbar(toolbarDiv, opt);
        }
Ejemplo n.º 2
0
        protected virtual void InitToolbar()
        {
            var toolbarDiv = this.ById("Toolbar");

            if (toolbarDiv.Length == 0)
            {
                return;
            }

            var hotkeyContext = this.Element.Closest(".ui-dialog");

            if (hotkeyContext.Length == 0)
            {
                hotkeyContext = this.element;
            }

            var opt = new ToolbarOptions
            {
                Buttons       = GetToolbarButtons(),
                HotkeyContext = hotkeyContext[0]
            };

            toolbar = new Toolbar(toolbarDiv, opt);
        }