/// class PD.Web.UI.Controls.ViewGridShowDesignColumnsDialogCommand
/// using PD.Web.UI.Controls.ViewGridCommand

PD.Web.UI.Controls.ViewGridShowDesignColumnsDialogCommand =
PD.Web.UI.Controls.ViewGridCommand.extend({

    //===================================
    // PUBLIC METHODS
    //===================================

    setDefaults: function () {
        this._super();
        this.props("id", "view-grid/design-columns-dialog");
        this.props("enabled", true);
        this.props("icon", PD.Path.resolve("~/application/icons/misc/columns.png"));
        this.props("label", "Columns...");
        this.props("tooltip", "Columns...");
    },

    execute: function (e) {
        this._super(e);

        var that = this;

        ProspectDirector.Modules.Views.ViewDesignColumnsDialog.Dialog.show({
            params: {
                viewStateId: this.get_viewStateId()
            },
            callbacks: {
                ok: function (sender, e) {
                    that.get_viewGrid().build();
                }
            }
        });

    }

});