/// <summary> /// 定义字段是否可以编辑。用于单元格,行编辑,和表单编辑。 /// </summary> /// <param name="editType">编辑的类型</param> /// <param name="editOptions">根据edittype提供允许的值列表。</param> /// <param name="editOptions">对于可编辑单元格的一些额外属性设置。</param> /// <returns></returns> public Column SetEditable(EditType editType = EditType.Text, EditOptions editOptions = null, EditRules editRules = null, EditFormOptions editFormOptions = null) { _editable = true; _editType = editType; _editOptions = editOptions; _editRules = editRules; _editFormOptions = editFormOptions; return(this); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { EditType?editType = value as EditType?; if (!editType.HasValue) { return(null); } switch (editType.Value) { case EditType.CreateNew: case EditType.Modify: return(string.Format("{0} Contact", editType.Value)); default: return(null); } }
/// <summary> /// Sets the type of html element to render when column is in edit mode, /// SetEditable(true) must be called for this to be respected. /// </summary> /// <param name="editType"></param> /// <returns></returns> public JQColumn SetEditType(EditType editType) { this.editType = editType; return(this); }
public Column setEditType(EditType editType) { this._editType = editType; return this; }
/// <summary> /// Sets the type of html element to render when column is in edit mode, /// SetEditable(true) must be called for this to be respected. /// </summary> /// <param name="editType"></param> /// <returns></returns> public Column SetEditType(EditType editType) { _editType = editType; return(this); }
/// <summary> /// Sets the type of html element to render when column is in edit mode, /// SetEditable(true) must be called for this to be respected. /// </summary> /// <param name="editType"></param> /// <returns></returns> public Column SetEditType(EditType editType) { _editType = editType; return this; }
/// <summary> /// 定义字段是否可以编辑。用于单元格,行编辑,和表单编辑。 /// </summary> /// <param name="editType">编辑的类型</param> /// <param name="editOptions">根据edittype提供允许的值列表。</param> /// <param name="editOptions">对于可编辑单元格的一些额外属性设置。</param> /// <returns></returns> public Column SetEditable(EditType editType = EditType.Text, EditOptions editOptions = null, EditRules editRules = null, EditFormOptions editFormOptions = null) { _editable = true; _editType = editType; _editOptions = editOptions; _editRules = editRules; _editFormOptions = editFormOptions; return this; }
public Column setEditType(EditType editType) { this._editType = editType; return(this); }