public void CloseTab(string id, CloseAction action) { this.Call("closeTab", JRawValue.From(id), action.ToString().ToLowerInvariant()); }
/// <summary> /// Changes the data store bound to this view and refreshes it. /// </summary> /// <param name="storeId">The store id to bind to this view</param> public virtual void BindStore(string storeId) { this.Call("bindStore", JRawValue.From(storeId)); }
public virtual void AddColumn(ColumnBase column) { this.ColumnModel.Columns.Add(column); this.Call("addColumn", JRawValue.From(column.ToConfig(Ext.Net.LazyMode.Config))); }
public virtual void UpdateSelectedItems() { this.Call("setSelectedItems", JRawValue.From(this.SelectedItems.Serialize())); }
/// <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("editingPlugin.startEdit", JRawValue.From(record.ModelInstance), new JRawValue("{0}.headerCt.down('gridcolumn[dataIndex={1}]')".FormatWith(this.CallID, dataIndex))); }
public virtual void Remove(Sprite sprite) { sprite.Draw = this; this.CallSurface("remove", JRawValue.From(sprite.Proxy)); }
public virtual void SetStyle(Sprite sprite, Dictionary <string, string> styles) { sprite.Draw = this; this.CallSurface("setStyle", JRawValue.From(sprite.Proxy), styles); }
public virtual void On(string eventName, JFunction fn, string scope) { this.Call("on", eventName, JRawValue.From(fn.ToScript()), JRawValue.From(scope)); }
public virtual void On(string eventName, JFunction fn, string scope, HandlerConfig options) { this.Call("on", eventName, JRawValue.From(fn.ToScript()), JRawValue.From(scope), JRawValue.From(options.Serialize())); }
public void ShowTab(AbstractContainer tab, int index) { this.Call("addTab", JRawValue.From(tab.ClientID), index, false); }
public void ShowTab(AbstractContainer tab, bool activate) { this.Call("addTab", JRawValue.From(tab.ClientID), activate); }
public void ShowTab(string id, bool activate) { this.Call("addTab", id.Contains(".") ? JRawValue.From(id) : JRawValue.From("Ext.getCmp('" + id + "')"), activate); }
public void ShowTab(string id, int index) { this.Call("addTab", id.Contains(".") ? JRawValue.From(id) : JRawValue.From("Ext.getCmp('" + id + "')"), index, false); }
public void CloseTab(AbstractContainer tab, CloseAction action) { this.Call("closeTab", JRawValue.From(tab.ClientID), action.ToString().ToLowerInvariant()); }
public virtual void Add(Sprite sprite) { sprite.Draw = this; this.CallSurface("add", JRawValue.From(new ClientConfig().Serialize(sprite, true, true))); }
public virtual void Un(string eventName, string fn, string scope) { this.Call("un", eventName.ToLowerInvariant(), new JRawValue(fn), JRawValue.From(scope)); }
public virtual void AddGradient(Gradient gradient) { this.CallSurface("addGradient", JRawValue.From(new ClientConfig().Serialize(gradient))); }
public virtual void On(string eventName, string fn) { this.Call("on", eventName, JRawValue.From(fn)); }
public virtual void RemoveCls(Sprite sprite, string[] className) { sprite.Draw = this; this.CallSurface("removeCls", JRawValue.From(sprite.Proxy), className); }
/// <summary> /// /// </summary> /// <param name="windowId"></param> public virtual void MinimizeWindow(string windowId) { this.Call("minimizeWindow", JRawValue.From(windowId)); }
public virtual void SetText(Sprite sprite, string text) { sprite.Draw = this; this.CallSurface("setText", JRawValue.From(sprite.Proxy), text); }
/// <summary> /// /// </summary> /// <param name="windowId"></param> public virtual void RestoreWindow(string windowId) { this.Call("restoreWindow", JRawValue.From(windowId)); }
/// <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("editingPlugin.startEdit", JRawValue.From(record.ModelInstance), columnIndex); }
/// <summary> /// /// </summary> /// <param name="window"></param> /// <param name="instanceOf"></param> public virtual void CreateWindow(AbstractWindow window, string instanceOf) { this.Call("createWindow", window.ToConfig(), JRawValue.From(instanceOf)); }
/// <summary> /// /// </summary> /// <param name="keyBinding"></param> public virtual void AddKeyBinding(KeyBinding keyBinding) { RequestManager.EnsureDirectEvent(); this.Call("addBinding", JRawValue.From(new ClientConfig().Serialize(keyBinding, true))); }
/// <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 virtual void SetAttributes(SpriteAttributes attrs) { this.CallTemplate("setAttributes", JRawValue.From(attrs.Serialize())); }
/// <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)); }
public virtual void InsertColumn(int index, ColumnBase column) { this.ColumnModel.Columns.Add(column); this.Call("insertColumn", index, JRawValue.From(column.ToConfig(Ext.Net.LazyMode.Config))); }
public void HideTab(AbstractContainer tab) { this.Call("closeTab", JRawValue.From(tab.ClientID), "hide"); }