/// <summary> /// /// </summary> public CheckColumn.Builder CheckColumn(CheckColumn component) { #if MVC component.ViewContext = this.HtmlHelper != null ? this.HtmlHelper.ViewContext : null; #endif return(new CheckColumn.Builder(component)); }
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 CheckColumn.Builder CheckColumn(CheckColumn component) { return(new CheckColumn.Builder(component)); }