示例#1
0
        public static JqGridColumn SetFormatter(this JqGridColumn obj, FormatterUtilEnum valor)
        {
            switch (valor)
            {
            case FormatterUtilEnum.MesAno:
                return(obj.SetFormatter("function (cellValue, options, rowObject) { return cellValue == null ? '' : (cellValue.toString().substr(4,2) + '/' + cellValue.toString().substr(0,4)); }"));

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
示例#2
0
        public JqGridBuilder AddColuna(JqGridColumn jqGridColumn)
        {
            _jqGridOptions.colModel.Add(jqGridColumn);

            return(this);
        }