/// <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>
 /// 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()));
 }
Beispiel #4
0
        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()));
        }