예제 #1
0
 /// <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);
 }
예제 #2
0
 public virtual void LoadData(ModelProxy data, bool append)
 {
     this.Call("loadData", JRawValue.From(data.ModelInstance), append);
 }
예제 #3
0
 public void AddSorted(ModelProxy model)
 {
     this.Call("addSorted", JRawValue.From(model));
 }
예제 #4
0
 /// <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);
 }
예제 #5
0
 /// <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>
 /// 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);
 }
예제 #7
0
 /// <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));
 }
예제 #8
0
 /// <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);
 }
예제 #9
0
 /// <summary>
 ///
 /// </summary>
 public virtual TBuilder AddSorted(ModelProxy model)
 {
     this.ToComponent().AddSorted(model);
     return(this as TBuilder);
 }
예제 #10
0
 /// <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));
 }
예제 #11
0
 /// <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));
 }
예제 #12
0
 /// <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);
 }
예제 #13
0
 /// <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)));
 }
예제 #14
0
        /// <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();
        }
예제 #15
0
 /// <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));
 }
예제 #16
0
 /// <summary>
 ///
 /// </summary>
 public virtual TBuilder LoadData(ModelProxy data, bool append)
 {
     this.ToComponent().LoadData(data, append);
     return(this as TBuilder);
 }
예제 #17
0
 /// <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));
 }
예제 #18
0
 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);
 }
예제 #20
0
 public void Select(ModelProxy[] records, bool keepExisting)
 {
     this.CallSelectionModel("select", new JRawValue(ModelProxy.Serialize(records)), keepExisting);
 }
예제 #21
0
 /// <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);
 }
예제 #22
0
 public void Select(ModelProxy[] records)
 {
     this.CallSelectionModel("select", new JRawValue(ModelProxy.Serialize(records)));
 }
예제 #23
0
 /// <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);
 }
예제 #24
0
 /// <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));
 }
예제 #25
0
 /// <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);
 }
예제 #26
0
 /// <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);
 }
예제 #27
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));
 }
 /// <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);
 }
예제 #29
0
 public virtual void LoadData(ModelProxy data)
 {
     this.Call("loadData", JRawValue.From(data.ModelInstance));
 }
 /// <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);
 }
예제 #31
0
 /// <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>
 /// 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);
 }
예제 #33
0
 /// <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);
 }
예제 #34
0
 /// <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));
 }