Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public virtual void LoadData(ModelProxy data, bool append)
 {
     this.Call("loadData", JRawValue.From(data.ModelInstance), append);
 }
Exemplo n.º 3
0
 public void AddSorted(ModelProxy model)
 {
     this.Call("addSorted", JRawValue.From(model));
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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));
 }
Exemplo n.º 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);
 }
Exemplo n.º 9
0
 /// <summary>
 ///
 /// </summary>
 public virtual TBuilder AddSorted(ModelProxy model)
 {
     this.ToComponent().AddSorted(model);
     return(this as TBuilder);
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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);
 }
Exemplo n.º 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)));
 }
Exemplo n.º 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();
        }
Exemplo n.º 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));
 }
Exemplo n.º 16
0
 /// <summary>
 ///
 /// </summary>
 public virtual TBuilder LoadData(ModelProxy data, bool append)
 {
     this.ToComponent().LoadData(data, append);
     return(this as TBuilder);
 }
Exemplo n.º 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));
 }
Exemplo n.º 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);
 }
Exemplo n.º 20
0
 public void Select(ModelProxy[] records, bool keepExisting)
 {
     this.CallSelectionModel("select", new JRawValue(ModelProxy.Serialize(records)), keepExisting);
 }
Exemplo n.º 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);
 }
Exemplo n.º 22
0
 public void Select(ModelProxy[] records)
 {
     this.CallSelectionModel("select", new JRawValue(ModelProxy.Serialize(records)));
 }
Exemplo n.º 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);
 }
Exemplo n.º 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));
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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));
 }