Inheritance: Column, ICustomConfigSerialization
示例#1
0
        /// <summary>
        ///
        /// </summary>
        public ImageCommandColumn.Builder ImageCommandColumn(ImageCommandColumn component)
        {
#if MVC
            component.ViewContext = this.HtmlHelper != null ? this.HtmlHelper.ViewContext : null;
#endif
            return(new ImageCommandColumn.Builder(component));
        }
示例#2
0
        private string GetColumnPlugins()
        {
            StringBuilder sb = new StringBuilder("[");

            for (int i = 0; i < this.ColumnModel.Columns.Count; i++)
            {
                CommandColumn      cmdCol    = this.ColumnModel.Columns[i] as CommandColumn;
                ImageCommandColumn imgCmdCol = this.ColumnModel.Columns[i] as ImageCommandColumn;
                Column             column    = this.ColumnModel.Columns[i] as Column;

                if (column != null && column.Commands.Count > 0 && imgCmdCol == null)
                {
                    continue;
                }

                if (cmdCol != null || imgCmdCol != null)
                {
                    sb.Append(i + ",");
                    continue;
                }

                CheckColumn cc = this.ColumnModel.Columns[i] as CheckColumn;

                if (cc != null && cc.Editable)
                {
                    sb.Append(i + ",");
                    continue;
                }

                RatingColumn rc = this.ColumnModel.Columns[i] as RatingColumn;

                if (rc != null && rc.Editable)
                {
                    sb.Append(i + ",");
                    continue;
                }
            }

            if (sb[sb.Length - 1] == ',')
            {
                sb.Remove(sb.Length - 1, 1);
            }

            sb.Append("]");

            return(sb.ToString());
        }
 /// <summary>
 ///
 /// </summary>
 public ImageCommandColumn.Builder ImageCommandColumn(ImageCommandColumn component)
 {
     return(new ImageCommandColumn.Builder(component));
 }