/// <summary> /// Start editing the specified record, using the specified Column definition to define which field is being edited. /// </summary> /// <param name="record">The Store data record which backs the row to be edited.</param> /// <param name="columnIndex">The Column object index defining the column to be edited.</param> public virtual void StartEdit(ModelProxy record, int columnIndex) { this.Call("startEdit", JRawValue.From(record.ModelInstance), columnIndex); }
public virtual void LoadData(ModelProxy data, bool append) { this.Call("loadData", JRawValue.From(data.ModelInstance), append); }
public void AddSorted(ModelProxy model) { this.Call("addSorted", JRawValue.From(model)); }
/// <summary> /// Deselects a record instance by record instance or index. /// </summary> /// <param name="record">Record id</param> /// <param name="suppressEvent">Set to true to not fire a deselect event</param> public void Deselect(ModelProxy record, bool suppressEvent) { this.Call("deselect", record.ModelInstance, suppressEvent); }
/// <summary> /// Selects a record instance by record instance or index. /// </summary> /// <param name="record">An array of record indexes</param> /// <param name="keepExisting"></param> public void Select(ModelProxy record, bool keepExisting) { this.Call("select", record, keepExisting); }
/// <summary> /// Loads an Ext.data.Model into this form by calling setValues with the record data. See also trackResetOnLoad. /// </summary> /// <param name="model">The record to load</param> public virtual void LoadRecord(ModelProxy model) { this.CallForm("loadRecord", new JRawValue(model.ModelInstance)); }
/// <summary> /// Remove a CSS Class from a specific row. /// </summary> /// <param name="record">An HTMLElement, index or instance of a model representing this row</param> /// <param name="cls"></param> public void RemoveRowCls(ModelProxy record, string cls) { this.Call("removeRowCls", new JRawValue(record.ModelInstance), cls); }
/// <summary> /// /// </summary> public virtual TBuilder AddSorted(ModelProxy model) { this.ToComponent().AddSorted(model); return(this as TBuilder); }
/// <summary> /// Shows the built-in event edit form for the passed in event record. This method automatically hides the calendar views and navigation toolbar. To return to the calendar, call hideEditForm. /// </summary> /// <param name="record">The event record to edit</param> public void ShowEditForm(ModelProxy record) { this.Call("showEditForm", JRawValue.From(record.ModelInstance)); }
/// <summary> /// Focuses a particular row and brings it into view. Will fire the rowfocus event. /// </summary> /// <param name="record">An HTMLElement template node, index of a template node, the id of a template node or the record associated with the node.</param> public void FocusRow(ModelProxy record) { this.Call("focusRow", new JRawValue(record.ModelInstance)); }
/// <summary> /// Start editing the specified record, using the specified Column definition to define which field is being edited. /// </summary> /// <param name="record">The Store data record which backs the row to be edited.</param> /// <param name="dataIndex">The Column object dataIndex defining the column to be edited.</param> public virtual void StartEdit(ModelProxy record, string dataIndex) { this.Call("startEdit", JRawValue.From(record.ModelInstance), new JRawValue("{0}.grid.headerCt.down('gridcolumn[dataIndex={1}]')".FormatWith(this.ClientID, dataIndex))); }
/// <summary> /// /// </summary> /// <param name="array"></param> /// <returns></returns> public static string Serialize(ModelProxy[] array) { if(array == null) { return ""; } StringBuilder sb = new StringBuilder(); sb.Append("["); foreach (ModelProxy model in array) { sb.Append(model.ModelInstance); sb.Append(","); } if (array.Length > 0) { sb.Remove(sb.Length-1, 1); } sb.Append("]"); return sb.ToString(); }
/// <summary> /// /// </summary> public virtual TBuilder LoadData(ModelProxy data, bool append) { this.ToComponent().LoadData(data, append); return(this as TBuilder); }
/// <summary> /// Start editing the specified record. /// </summary> /// <param name="record">The Store data record which backs the row to be edited.</param> public virtual void StartEdit(ModelProxy record) { this.Call("startEdit", JRawValue.From(record.ModelInstance)); }
public void Deselect(ModelProxy[] records, bool suppressEvent) { this.CallSelectionModel("deselect", new JRawValue(ModelProxy.Serialize(records)), suppressEvent); }
/// <summary> /// Selects a record instance by record instance or index. /// </summary> /// <param name="record">An array of record indexes</param> public void Select(ModelProxy record) { this.Call("select", record); }
public void Select(ModelProxy[] records, bool keepExisting) { this.CallSelectionModel("select", new JRawValue(ModelProxy.Serialize(records)), keepExisting); }
/// <summary> /// Deselects a record instance by record instance or index. /// </summary> /// <param name="record">Record id</param> public void Deselect(ModelProxy record) { this.Call("deselect", record.ModelInstance); }
public void Select(ModelProxy[] records) { this.CallSelectionModel("select", new JRawValue(ModelProxy.Serialize(records))); }
/// <summary> /// Selects a record instance by record instance or index. /// </summary> /// <param name="record">record</param> /// <param name="keepExisting"></param> /// <param name="suppressEvent">Set to false to not fire a Select event</param> public void Select(ModelProxy record, bool keepExisting, bool suppressEvent) { this.Call("select", record, keepExisting, suppressEvent); }
/// <summary> /// Start editing the specified record. /// </summary> /// <param name="record">The Store data record which backs the row to be edited.</param> public virtual void StartEdit(ModelProxy record) { this.Call("startEdit", JRawValue.From(record.ModelInstance), 0); }
/// <summary> /// Removes the given record from the Store, firing the 'remove' event for each instance that is removed, plus a single 'datachanged' event after removal. /// </summary> /// <param name="record">Model instance or array of instances to remove.</param> public virtual void Remove(ModelProxy record) { RequestManager.EnsureDirectEvent(); this.Call("remove", new JRawValue(record.ModelInstance)); }
public virtual void LoadData(ModelProxy data) { this.Call("loadData", JRawValue.From(data.ModelInstance)); }