/// <summary> /// /// </summary> /// <param name="store"></param> /// <param name="id"></param> public ModelProxy(AbstractStore store, object id, bool isInternal) { if (isInternal) { this.internalId = id; } else { this.id = id; } this.store = store; }
/// <summary> /// Reconfigure the table with a new store/column. Either the store or the column can be ommitted if you don't wish to change them. /// </summary> /// <param name="store">The new store.</param> /// <param name="columns">An array of column configs</param> public virtual void Reconfigure(AbstractStore store, ColumnBase[] columns) { StringBuilder sb = new StringBuilder(); sb.Append("["); foreach (ColumnBase column in columns) { sb.Append(column.ToConfig()); sb.Append(","); } sb.Remove(sb.Length - 1, 1); sb.Append("]"); this.Call("reconfigure", store.ToConfig(LazyMode.Instance), new JRawValue(sb.ToString())); }
public virtual void Reconfigure(AbstractStore store, IEnumerable <ColumnBase> columns) { StringBuilder sb = new StringBuilder("["); var comma = false; foreach (var column in columns) { if (comma) { sb.Append(","); } sb.Append(column.ToConfig(Ext.Net.LazyMode.Config)); comma = true; } sb.Append("]"); this.Call("reconfigure", JRawValue.From(store == null ? "undefined" : store.ToConfig(Ext.Net.LazyMode.Instance)), JRawValue.From(sb.ToString())); }
/// <summary> /// /// </summary> /// <param name="store"></param> /// <param name="expression"></param> public ModelProxy(AbstractStore store, string expression) : this(store) { this.expression = expression; }
/// <summary> /// /// </summary> /// <param name="store"></param> public ModelProxy(AbstractStore store) { this.store = store; this.CreateVariable = true; }
/// <summary> /// /// </summary> /// <param name="store"></param> /// <param name="index"></param> public ModelProxy(AbstractStore store, int index) { this.index = index; this.store = store; }
/// <summary> /// /// </summary> /// <param name="store"></param> /// <param name="id"></param> public ModelProxy(AbstractStore store, object id) { this.id = id; this.store = store; }
/// <summary> /// /// </summary> public virtual TBuilder Reconfigure(AbstractStore store, IEnumerable <ColumnBase> columns) { this.ToComponent().Reconfigure(store, columns); return(this as TBuilder); }
public virtual void Reconfigure(AbstractStore store, IEnumerable<ColumnBase> columns) { StringBuilder sb = new StringBuilder("["); bool comma = false; foreach (ColumnBase column in columns) { if (comma) { sb.Append(","); } sb.Append(column.ToConfig(Ext.Net.LazyMode.Config)); comma = true; } sb.Append("]"); this.Call("reconfigure", JRawValue.From(store == null ? (this.ClientID + ".store") : store.ToConfig(Ext.Net.LazyMode.Instance)), JRawValue.From(sb.ToString())); }