public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onChange", OnChange); writer.AppendClientEvent("onOpen", OnOpen); writer.AppendClientEvent("onClose", OnClose); }
public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onChange", OnChange); writer.AppendClientEvent("onOpen", OnOpen); writer.AppendClientEvent("onClose", OnClose); }
public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onSelectionChange", OnSelectionChange); writer.AppendClientEvent("onChange", OnChange); writer.AppendClientEvent("onExecute", OnExecute); }
public override void WriteInitializationScript(TextWriter writer) { IClientSideObjectWriter objectWriter = ClientSideObjectWriterFactory.Create(Id, "tPanelBar", writer); objectWriter.Start(); if (!defaultEffects.SequenceEqual(Effects.Container)) { objectWriter.Serialize("effects", Effects); } objectWriter.AppendClientEvent("onExpand", ClientEvents.OnExpand); objectWriter.AppendClientEvent("onCollapse", ClientEvents.OnCollapse); objectWriter.AppendClientEvent("onSelect", ClientEvents.OnSelect); objectWriter.AppendClientEvent("onLoad", ClientEvents.OnLoad); objectWriter.AppendClientEvent("onError", ClientEvents.OnError); objectWriter.Append("expandMode", (int)ExpandMode); objectWriter.AppendContentUrls("contentUrls", Items, IsSelfInitialized); objectWriter.Complete(); base.WriteInitializationScript(writer); }
public override void WriteInitializationScript(TextWriter writer) { IClientSideObjectWriter objectWriter = ClientSideObjectWriterFactory.Create(Id, "tMenu", writer); objectWriter.Start() .Append("orientation", Orientation, MenuOrientation.Horizontal); if (!defaultEffects.SequenceEqual(Effects.Container)) { objectWriter.Serialize("effects", Effects); } if (OpenOnClick) { objectWriter.Append("openOnClick", true); } objectWriter.AppendClientEvent("onOpen", ClientEvents.OnOpen); objectWriter.AppendClientEvent("onClose", ClientEvents.OnClose); objectWriter.AppendClientEvent("onSelect", ClientEvents.OnSelect); objectWriter.AppendClientEvent("onLoad", ClientEvents.OnLoad); objectWriter.Complete(); base.WriteInitializationScript(writer); }
/// <summary> /// Serializes the client-side events. /// </summary> /// <param name="writer">The writer object to serialize to.</param> public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onDataBound", OnDataBound); writer.AppendClientEvent("onDataBinding", OnDataBinding); writer.AppendClientEvent("onSeriesClick", OnSeriesClick); writer.AppendClientEvent("onError", OnError); }
public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onResize", OnResize); writer.AppendClientEvent("onExpand", OnExpand); writer.AppendClientEvent("onCollapse", OnCollapse); writer.AppendClientEvent("onContentLoad", OnContentLoad); }
/// <summary> /// Serializes the client-side events. /// </summary> /// <param name="writer">The writer object to serialize to.</param> public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onDataBound", OnDataBound); writer.AppendClientEvent("onDataBinding", OnDataBinding); writer.AppendClientEvent("onSeriesClick", OnSeriesClick); writer.AppendClientEvent("onError", OnError); }
public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onResize", OnResize); writer.AppendClientEvent("onExpand", OnExpand); writer.AppendClientEvent("onCollapse", OnCollapse); writer.AppendClientEvent("onContentLoad", OnContentLoad); }
public override void WriteInitializationScript(TextWriter writer) { IClientSideObjectWriter objectWriter = ClientSideObjectWriterFactory.Create(Id, "tWindow", writer); objectWriter.Start(); if (!defaultEffects.SequenceEqual(Effects.Container)) { objectWriter.Serialize("effects", Effects); } //client events objectWriter.AppendClientEvent("onClose", ClientEvents.OnClose); objectWriter.AppendClientEvent("onError", ClientEvents.OnError); objectWriter.AppendClientEvent("onLoad", ClientEvents.OnLoad); objectWriter.AppendClientEvent("onDragStart", ClientEvents.OnDragStart); objectWriter.AppendClientEvent("onDragEnd", ClientEvents.OnDragEnd); objectWriter.AppendClientEvent("onOpen", ClientEvents.OnOpen); objectWriter.AppendClientEvent("onActivate", ClientEvents.OnActivate); objectWriter.AppendClientEvent("onResize", ClientEvents.OnResize); objectWriter.AppendClientEvent("onRefresh", ClientEvents.OnRefresh); //properties objectWriter.Append("modal", Modal); objectWriter.Append("contentUrl", ContentUrl); objectWriter.Append("draggable", Draggable); objectWriter.Append("resizable", ResizingSettings.Enabled); if (ResizingSettings.Enabled) { if (ResizingSettings.MinHeight != int.MinValue) { objectWriter.Append("minHeight", ResizingSettings.MinHeight); } if (ResizingSettings.MinWidth != int.MinValue) { objectWriter.Append("minWidth", ResizingSettings.MinWidth); } if (ResizingSettings.MaxHeight != int.MinValue) { objectWriter.Append("maxHeight", ResizingSettings.MaxHeight); } if (ResizingSettings.MaxWidth != int.MinValue) { objectWriter.Append("maxWidth", ResizingSettings.MaxWidth); } } objectWriter.Complete(); base.WriteInitializationScript(writer); }
/// <summary> /// Serializes the client-side events. /// </summary> /// <param name="writer">The writer object to serialize to.</param> public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onSelect", OnSelect); writer.AppendClientEvent("onUpload", OnUpload); writer.AppendClientEvent("onSuccess", OnSuccess); writer.AppendClientEvent("onError", OnError); writer.AppendClientEvent("onComplete", OnComplete); writer.AppendClientEvent("onCancel", OnCancel); writer.AppendClientEvent("onRemove", OnRemove); }
public override void WriteInitializationScript(System.IO.TextWriter writer) { IClientSideObjectWriter objectWriter = ClientSideObjectWriterFactory.Create(Id, "tCalendar", writer); objectWriter.Start(); objectWriter.AppendDateOnly("selectedDate", this.Value); objectWriter.AppendDateOnly("minDate", this.MinDate); objectWriter.AppendDateOnly("maxDate", this.MaxDate); objectWriter.AppendDatesOnly("dates", SelectionSettings.Dates); objectWriter.Append("urlFormat", urlFormat); objectWriter.AppendClientEvent("onLoad", ClientEvents.OnLoad); objectWriter.AppendClientEvent("onChange", ClientEvents.OnChange); objectWriter.Complete(); base.WriteInitializationScript(writer); }
public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onChange", OnChange); writer.AppendClientEvent("onOpen", OnOpen); writer.AppendClientEvent("onClose", OnClose); writer.AppendClientEvent("onDataBinding", OnDataBinding); writer.AppendClientEvent("onDataBound", OnDataBound); writer.AppendClientEvent("onError", OnError); }
public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onChange", OnChange); writer.AppendClientEvent("onOpen", OnOpen); writer.AppendClientEvent("onClose", OnClose); writer.AppendClientEvent("onDataBinding", OnDataBinding); writer.AppendClientEvent("onDataBound", OnDataBound); writer.AppendClientEvent("onError", OnError); }
public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onPaste", OnPaste); writer.AppendClientEvent("onSelectionChange", OnSelectionChange); writer.AppendClientEvent("onChange", OnChange); writer.AppendClientEvent("onExecute", OnExecute); writer.AppendClientEvent("onError", OnError); }
public override void WriteInitializationScript(TextWriter writer) { string id = Id; IClientSideObjectWriter objectWriter = ClientSideObjectWriterFactory.Create(id, "tTabStrip", writer); objectWriter.Start(); if (!defaultEffects.SequenceEqual(Effects.Container)) { objectWriter.Serialize("effects", Effects); } objectWriter.AppendClientEvent("onSelect", ClientEvents.OnSelect); objectWriter.AppendClientEvent("onContentLoad", ClientEvents.OnContentLoad); objectWriter.AppendClientEvent("onLoad", ClientEvents.OnLoad); objectWriter.AppendClientEvent("onError", ClientEvents.OnError); objectWriter.AppendContentUrls("contentUrls", Items, IsSelfInitialized); objectWriter.Complete(); base.WriteInitializationScript(writer); }
public void SerializeTo(string key, IClientSideObjectWriter writer) { writer.AppendClientEvent("onColumnResize", OnColumnResize); writer.AppendClientEvent("onColumnReorder", OnColumnReorder); writer.AppendClientEvent("onCommand", OnCommand); writer.AppendClientEvent("onComplete", OnComplete); writer.AppendClientEvent("onDelete", OnDelete); writer.AppendClientEvent("onDetailViewCollapse", OnDetailViewCollapse); writer.AppendClientEvent("onDetailViewExpand", OnDetailViewExpand); writer.AppendClientEvent("onDataBinding", OnDataBinding); writer.AppendClientEvent("onDataBound", OnDataBound); writer.AppendClientEvent("onEdit", OnEdit); writer.AppendClientEvent("onError", OnError); writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onRowDataBound", OnRowDataBound); writer.AppendClientEvent("onRowSelect", OnRowSelect); writer.AppendClientEvent("onSave", OnSave); writer.AppendClientEvent("onSubmitChanges", OnSubmitChanges); }
public void SerializeTo(string key, IClientSideObjectWriter writer) { writer.AppendClientEvent("onColumnResize", OnColumnResize); writer.AppendClientEvent("onColumnReorder", OnColumnReorder); writer.AppendClientEvent("onColumnHide", OnColumnHide); writer.AppendClientEvent("onColumnShow", OnColumnShow); writer.AppendClientEvent("onCommand", OnCommand); writer.AppendClientEvent("onComplete", OnComplete); writer.AppendClientEvent("onDelete", OnDelete); writer.AppendClientEvent("onDetailViewCollapse", OnDetailViewCollapse); writer.AppendClientEvent("onDetailViewExpand", OnDetailViewExpand); writer.AppendClientEvent("onDataBinding", OnDataBinding); writer.AppendClientEvent("onDataBound", OnDataBound); writer.AppendClientEvent("onEdit", OnEdit); writer.AppendClientEvent("onError", OnError); writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onRowDataBound", OnRowDataBound); writer.AppendClientEvent("onRowSelect", OnRowSelect); writer.AppendClientEvent("onSave", OnSave); writer.AppendClientEvent("onSubmitChanges", OnSubmitChanges); }
/// <summary> /// Serializes the client-side events. /// </summary> /// <param name="writer">The writer object to serialize to.</param> public void SerializeTo(IClientSideObjectWriter writer) { writer.AppendClientEvent("onLoad", OnLoad); writer.AppendClientEvent("onSelect", OnSelect); writer.AppendClientEvent("onUpload", OnUpload); writer.AppendClientEvent("onSuccess", OnSuccess); writer.AppendClientEvent("onError", OnError); writer.AppendClientEvent("onComplete", OnComplete); writer.AppendClientEvent("onCancel", OnCancel); writer.AppendClientEvent("onRemove", OnRemove); }
public override void WriteInitializationScript(TextWriter writer) { IClientSideObjectWriter objectWriter = ClientSideObjectWriterFactory.Create(Id, "tTreeView", writer); objectWriter.Start(); if (!defaultEffects.SequenceEqual(Effects.Container)) { objectWriter.Serialize("effects", Effects); } if (!ShowLines) { objectWriter.Append("showLines", ShowLines); } if (ShowCheckBox) { objectWriter.Append("showCheckBox", ShowCheckBox); } if (DragAndDrop.Enabled) { if (DragAndDrop.DropTargets.HasValue()) { var dragAndDropOptions = new Dictionary <string, string>(); dragAndDropOptions["dropTargets"] = DragAndDrop.DropTargets; objectWriter.AppendObject("dragAndDrop", dragAndDropOptions); } else { objectWriter.Append("dragAndDrop", true); } } if (Ajax.Enabled) { Dictionary <string, string> ajax = new Dictionary <string, string>(); ajax["selectUrl"] = UrlGenerator.Generate(ViewContext.RequestContext, Ajax.Select); objectWriter.AppendObject("ajax", ajax); } if (WebService.Enabled) { Dictionary <string, string> webService = new Dictionary <string, string>(); webService["selectUrl"] = UrlGenerator.Generate(ViewContext.RequestContext, WebService.Select.Url); objectWriter.AppendObject("ws", webService); } objectWriter.AppendClientEvent("onExpand", ClientEvents.OnExpand); objectWriter.AppendClientEvent("onCollapse", ClientEvents.OnCollapse); objectWriter.AppendClientEvent("onSelect", ClientEvents.OnSelect); objectWriter.AppendClientEvent("onLoad", ClientEvents.OnLoad); objectWriter.AppendClientEvent("onError", ClientEvents.OnError); objectWriter.AppendClientEvent("onChecked", ClientEvents.OnChecked); objectWriter.AppendClientEvent("onNodeDragStart", ClientEvents.OnNodeDragStart); objectWriter.AppendClientEvent("onNodeDragging", ClientEvents.OnNodeDragging); objectWriter.AppendClientEvent("onNodeDragCancelled", ClientEvents.OnNodeDragCancelled); objectWriter.AppendClientEvent("onNodeDrop", ClientEvents.OnNodeDrop); objectWriter.AppendClientEvent("onNodeDropped", ClientEvents.OnNodeDropped); objectWriter.AppendClientEvent("onDataBinding", ClientEvents.OnDataBinding); objectWriter.AppendClientEvent("onDataBound", ClientEvents.OnDataBound); objectWriter.Complete(); base.WriteInitializationScript(writer); }