IEnumerable <ScriptDescriptor> IExtenderControl.GetScriptDescriptors(Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("Web.Menu", targetControl.ClientID); descriptor.AddProperty("id", this.ClientID); if (HoverStyle != MenuHoverStyle.Auto) { descriptor.AddProperty("hoverStyle", Convert.ToInt32(HoverStyle)); } if (PopupPosition != MenuPopupPosition.Left) { descriptor.AddProperty("popupPosition", Convert.ToInt32(PopupPosition)); } if (ItemDescriptionStyle != MenuItemDescriptionStyle.ToolTip) { descriptor.AddProperty("itemDescriptionStyle", Convert.ToInt32(ItemDescriptionStyle)); } if (ShowSiteActions) { descriptor.AddProperty("showSiteActions", "true"); } if (PresentationStyle != MenuPresentationStyle.MultiLevel) { descriptor.AddProperty("presentationStyle", Convert.ToInt32(PresentationStyle)); } return(new ScriptBehaviorDescriptor[] { descriptor }); }
protected override void ConfigureDescriptor(ScriptBehaviorDescriptor descriptor) { descriptor.AddProperty("displayRememberMe", Properties["DisplayRememberMe"]); descriptor.AddProperty("rememberMeSet", Properties["RememberMeSet"]); descriptor.AddProperty("displaySignUp", Properties["DisplaySignUp"]); descriptor.AddProperty("displayPasswordRecovery", Properties["DisplayPasswordRecovery"]); descriptor.AddProperty("displayMyAccount", Properties["DisplayMyAccount"]); string s = ((string)(Properties["Welcome"])); if (!(String.IsNullOrEmpty(s))) { descriptor.AddProperty("welcome", Properties["Welcome"]); } s = ((string)(Properties["User"])); if (!(String.IsNullOrEmpty(s))) { descriptor.AddProperty("user", Properties["User"]); } descriptor.AddProperty("displayHelp", Properties["DisplayHelp"]); descriptor.AddProperty("enableHistory", Properties["EnableHistory"]); descriptor.AddProperty("enablePermalinks", Properties["EnablePermalinks"]); descriptor.AddProperty("displayLogin", Properties["DisplayLogin"]); if (Properties.ContainsKey("IdleUserTimeout")) { descriptor.AddProperty("idleTimeout", Properties["IdleUserTimeout"]); } string cultures = ((string)(Properties["Cultures"])); if (cultures.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries).Length > 1) { descriptor.AddProperty("cultures", cultures); } }
protected override void RenderInnerScript(ScriptBehaviorDescriptor descriptor) { base.RenderInnerScript(descriptor); descriptor.AddProperty("interval", 20000); descriptor.AddProperty("journalName", JournalName); descriptor.AddProperty("rowID", RowID); }
protected override void RenderScriptAttributes(ScriptBehaviorDescriptor descriptor) { base.RenderScriptAttributes(descriptor); descriptor.AddProperty("updatePanelID", TargetControl.UniqueID); descriptor.AddProperty("updatePanelClientID", TargetControl.ClientID); }
protected override void ConfigureDescriptor(ScriptBehaviorDescriptor descriptor) { descriptor.AddProperty("displayRememberMe", Properties["DisplayRememberMe"]); descriptor.AddProperty("rememberMeSet", Properties["RememberMeSet"]); descriptor.AddProperty("displaySignUp", Properties["DisplaySignUp"]); descriptor.AddProperty("displayPasswordRecovery", Properties["DisplayPasswordRecovery"]); descriptor.AddProperty("displayMyAccount", Properties["DisplayMyAccount"]); string s = ((string)(Properties["Welcome"])); if (!(String.IsNullOrEmpty(s))) { descriptor.AddProperty("welcome", Properties["Welcome"]); } s = ((string)(Properties["User"])); if (!(String.IsNullOrEmpty(s))) { descriptor.AddProperty("user", Properties["User"]); } descriptor.AddProperty("displayHelp", Properties["DisplayHelp"]); descriptor.AddProperty("enableHistory", Properties["EnableHistory"]); descriptor.AddProperty("enablePermalinks", Properties["EnablePermalinks"]); descriptor.AddProperty("displayLogin", Properties["DisplayLogin"]); if (Properties.ContainsKey("IdleUserTimeout")) { descriptor.AddProperty("idleTimeout", Properties["IdleUserTimeout"]); } }
/// <summary> /// When overridden in a derived class, registers the <see cref="T:System.Web.UI.ScriptDescriptor"/> objects for the control. /// </summary> /// <param name="targetControl">The server control to which the extender is associated.</param> /// <returns> /// An enumeration of <see cref="T:System.Web.UI.ScriptDescriptor"/> objects. /// </returns> protected override IEnumerable <ScriptDescriptor> GetScriptDescriptors(Control targetControl) { var descriptor = new ScriptBehaviorDescriptor("Velyo.Google.Maps.GroundBehavior", targetControl.ClientID); // properties descriptor.AddProperty("clickable", Clickable); descriptor.AddProperty("name", UniqueID); if (_bounds != null) { descriptor.AddProperty("bounds", _bounds.ToScriptData()); } if (Url != null) { descriptor.AddProperty("url", Url); } // events if (Click != null) { descriptor.AddEvent("click", "Velyo.Google.Maps.GroundBehavior.raiseServerClick"); } else if (OnClientClick != null) { descriptor.AddEvent("click", OnClientClick); } yield return(descriptor); }
public IEnumerable <ScriptDescriptor> GetScriptDescriptors() { if (Page != null && Visible) { Control control = Nat.Web.Controls.DataBinding.Tools.WebUtils.FindControlRecursive(Page, ControlOne); if (control != null) { string rusId = control.ClientID; control = WebUtils.FindControlRecursive(Page, ControlTwo); if (control != null) { string kzId = control.ClientID; ScriptBehaviorDescriptor desc = new ScriptBehaviorDescriptor("Nat.Web.Controls.CopyValue", rusId); desc.ID = String.Format("CopyValue_{0}", ID); desc.AddProperty("kzId", kzId); desc.AddProperty("changeValueIfNull", _changeValueIfNull); yield return(desc); } } } }
protected override IEnumerable <ScriptDescriptor> GetScriptDescriptors(Control targetControl) { if (!Enabled || !targetControl.Visible) { return(null); } EnsureValid(); ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor(ClientControlType, targetControl.ClientID); // render the attributes for this element // RenderScriptAttributes(descriptor); // render profile bindings // //RenderProfileBindings(descriptor); // render any child scripts we need to. // RenderInnerScript(descriptor); return(new List <ScriptDescriptor>(new ScriptDescriptor[] { descriptor })); }
GetScriptDescriptors(System.Web.UI.Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("Sys.Extended.UI.Collapsible", targetControl.ClientID); ScriptDescriptor[] descriptors; if (!String.IsNullOrEmpty(this.ID)) { descriptor.AddProperty("id", this.ID); } descriptor.AddProperty("IsTriggerCollapseControlPostback", this.IsTriggerCollapseControlPostback); descriptor.AddProperty("IsInitCollapsed", this.IsInitCollapsed); descriptor.AddProperty("Collapsed", this.Collapsed); descriptor.AddProperty("CollapseControlID", this.CollapseControlID); descriptor.AddProperty("ImageControlID", this.ImageControlID); descriptor.AddProperty("TextLabelID", this.TextLabelID); descriptor.AddProperty("CollapsedText", this.CollapsedText); descriptor.AddProperty("ExpandedText", this.ExpandedText); descriptor.AddProperty("CollapsedImage", this.CollapsedImage); descriptor.AddProperty("ExpandedImage", this.ExpandedImage); descriptors = new ScriptDescriptor[] { descriptor }; return(descriptors); }
protected override void ConfigureDescriptor(ScriptBehaviorDescriptor descriptor) { descriptor.AddProperty("displayRememberMe", Properties["DisplayRememberMe"]); descriptor.AddProperty("rememberMeSet", Properties["RememberMeSet"]); descriptor.AddProperty("displaySignUp", Properties["DisplaySignUp"]); descriptor.AddProperty("displayPasswordRecovery", Properties["DisplayPasswordRecovery"]); descriptor.AddProperty("displayMyAccount", Properties["DisplayMyAccount"]); string s = ((string)(Properties["Welcome"])); if (!(String.IsNullOrEmpty(s))) { descriptor.AddProperty("welcome", Properties["Welcome"]); } s = ((string)(Properties["User"])); if (!(String.IsNullOrEmpty(s))) { descriptor.AddProperty("user", Properties["User"]); } descriptor.AddProperty("displayHelp", Properties["DisplayHelp"]); descriptor.AddProperty("enableHistory", Properties["EnableHistory"]); descriptor.AddProperty("enablePermalinks", Properties["EnablePermalinks"]); descriptor.AddProperty("displayLogin", Properties["DisplayLogin"]); if (Properties.ContainsKey("IdleUserTimeout")) { descriptor.AddProperty("idleTimeout", Properties["IdleUserTimeout"]); } string link = Page.Request["_link"]; if (!(String.IsNullOrEmpty(link))) { string[] permalink = Encoding.Default.GetString(Convert.FromBase64String(link.Split(',')[0])).Split('?'); descriptor.AddProperty("commandLine", permalink[1]); } }
GetScriptDescriptors(System.Web.UI.Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("Sys.Extended.UI.LocationWaypointCommon", targetControl.ClientID); ScriptDescriptor[] descriptors; if (!String.IsNullOrEmpty(this.ID)) { descriptor.AddProperty("id", this.ID); } descriptor.AddProperty("AddStopControlID", this.AddStopControlID); descriptor.AddProperty("ItemNextSiblingControlID", this.ItemNextSiblingControlID); descriptor.AddProperty("ServiceUrl", this.ServiceUrl); descriptor.AddProperty("ServiceUrlData", this.ServiceUrlData); descriptor.AddProperty("ServiceUrlPlaceSearch", this.ServiceUrlPlaceSearch); descriptor.AddProperty("ServiceUrlSaveData", this.ServiceUrlSaveData); descriptor.AddProperty("ServiceUrlSaveDistance", this.ServiceUrlSaveDistance); descriptor.AddProperty("ServiceUrlRemove", this.ServiceUrlRemove); descriptor.AddProperty("WaypointsJSON", this.WaypointsJSON); descriptor.AddProperty("RemoveStopCSS", this.RemoveStopCSS); descriptor.AddProperty("InputFieldCSS", this.InputFieldCSS); descriptor.AddProperty("IsTriggerClick", this.IsTriggerClick); descriptors = new ScriptDescriptor[] { descriptor }; return(descriptors); }
public IEnumerable <ScriptDescriptor> GetScriptDescriptors() { ScriptComponentDescriptor scd = new ScriptBehaviorDescriptor("AnjLab.FX.Web.Controls.PersistentScrollPosition", Control.ClientID); scd.AddElementProperty("storage", storage.ClientID); yield return(scd); }
protected override IEnumerable <ScriptDescriptor> GetScriptDescriptors(Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("TicketDesk.Engine.Ajax.Extenders.UpdateProgressOverlayBehavior", targetControl.ClientID); UpdateProgress up = targetControl as UpdateProgress; string asscUpdatePanelClientId = string.IsNullOrEmpty(up.AssociatedUpdatePanelID) ? null : GetClientId(up.AssociatedUpdatePanelID, "AssociatedUpdatePanelID"); string controlToOverlayID = null; if (_overlayType != OverlayType.Browser) { controlToOverlayID = string.IsNullOrEmpty(ControlToOverlayID) ? asscUpdatePanelClientId : GetClientId(ControlToOverlayID, "ControlToOverlayID"); } descriptor.AddProperty("controlToOverlayID", controlToOverlayID); descriptor.AddProperty("associatedUpdatePanelID", asscUpdatePanelClientId); descriptor.AddProperty("displayAfter", up.DisplayAfter); descriptor.AddProperty("targetCssClass", this.CssClass); descriptor.AddProperty("centerOnContainer", this.CenterOnContainer); descriptor.AddProperty("elementToCenterID", this.ElementToCenterID); return(new ScriptDescriptor[] { descriptor }); }
protected override System.Collections.Generic.IEnumerable <ScriptDescriptor> GetScriptDescriptors(Control targetControl) { if (ScriptManager.GetCurrent(Page).IsInAsyncPostBack) { bool requireRegistration = false; Control c = this; while (!(requireRegistration) && ((c != null) && !((c is HtmlForm)))) { if (c is UpdatePanel) { requireRegistration = true; } c = c.Parent; } if (!(requireRegistration)) { return(null); } } ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor(_clientComponentName, targetControl.ClientID); descriptor.AddProperty("id", this.ClientID); string baseUrl = ResolveClientUrl("~"); if (baseUrl == "~") { baseUrl = String.Empty; } descriptor.AddProperty("baseUrl", baseUrl); descriptor.AddProperty("servicePath", ResolveClientUrl(ServicePath)); ConfigureDescriptor(descriptor); return(new ScriptBehaviorDescriptor[] { descriptor }); }
protected override IEnumerable <ScriptDescriptor> GetScriptDescriptors(Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("PermissionCenter.GridHoverBehavior", targetControl.ClientID); descriptor.AddProperty("hoverCssClass", this.HoverCssClass); descriptor.AddProperty("rowItemCssClass", this.RowItemCssClass); return(new ScriptDescriptor[] { descriptor }); }
protected override IEnumerable <ScriptDescriptor> GetScriptDescriptors(Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("BigShelf.AutoPostBackBehavior", targetControl.ClientID); descriptor.AddProperty("uniqueID", UniqueID); descriptor.AddProperty("trigger", Trigger); descriptor.AddProperty("throttle", Throttle); return(new ScriptDescriptor[] { descriptor }); }
protected override IEnumerable <ScriptDescriptor> GetScriptDescriptors(Control targetControl) { var descriptor = new ScriptBehaviorDescriptor("Telerik.Web.UI.RadListViewClientBindingExtender", targetControl.ClientID); descriptor.AddProperty("_clientItemTemplate", HtmlEncode(ClientItemTemplate.Trim())); DataBindingSettings.DescribeClientProperties(descriptor); return(new ScriptDescriptor[] { descriptor }); }
// </Snippet14> protected override IEnumerable <ScriptDescriptor> GetScriptDescriptors(Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("Samples.FocusBehavior", targetControl.ClientID); descriptor.AddProperty("highlightCssClass", this.HighlightCssClass); descriptor.AddProperty("nohighlightCssClass", this.NoHighlightCssClass); return(new ScriptDescriptor[] { descriptor }); }
protected override IEnumerable <System.Web.UI.ScriptDescriptor> GetScriptDescriptors(System.Web.UI.Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor(this.GetType().FullName, targetControl.ClientID); // Make sure this ExtenderControl's ID is pushed down to the client so we can get ahold of it from within JavaScript using $find descriptor.AddProperty("id", this.ClientID); PropertyDescriptorCollection props = TypeDescriptor.GetProperties(this); foreach (PropertyDescriptor prop in props) { ExtenderControlPropertyAttribute propAttr = prop.Attributes[typeof(ExtenderControlPropertyAttribute)] as ExtenderControlPropertyAttribute; if (propAttr != null) { object value = prop.GetValue(this); string name = propAttr.Name ?? prop.Name; if (value != null) { descriptor.AddProperty(name, value); } } ExtenderControlComponentPropertyAttribute compAttr = prop.Attributes[typeof(ExtenderControlComponentPropertyAttribute)] as ExtenderControlComponentPropertyAttribute; if (compAttr != null) { string name = compAttr.Name ?? prop.Name; string controlId = prop.GetValue(this) as string; Control ctrl = this.ResolveControlByID(controlId); if (ctrl != null) { controlId = ctrl.ClientID; } if (!string.IsNullOrEmpty(controlId)) { descriptor.AddComponentProperty(name, controlId); } } ExtenderControlEventAttribute eventAttr = prop.Attributes[typeof(ExtenderControlEventAttribute)] as ExtenderControlEventAttribute; if (eventAttr != null) { string name = eventAttr.Name ?? prop.Name; string handler = prop.GetValue(this) as string; if (handler != null) { descriptor.AddEvent(name, handler); } } } yield return(descriptor); }
GetScriptDescriptors(System.Web.UI.Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("Sys.Extended.UI.StepValidator", targetControl.ClientID); if (!String.IsNullOrEmpty(this.ID)) { descriptor.AddProperty("id", this.ID); } descriptor.AddProperty("NextButtonControlID", this.NextButtonControlID); return(new ScriptDescriptor[] { descriptor }); }
protected virtual void RenderScriptAttributes(ScriptBehaviorDescriptor descriptor) { try { _renderingScript = true; ScriptObjectBuilder.DescribeComponent(this, descriptor, this, this); } finally { _renderingScript = false; } }
GetScriptDescriptors(System.Web.UI.Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor( "ImagePreviewExtender.ImagePreviewBehavior", targetControl.ClientID); descriptor.AddProperty("ThumbnailCssClass", ThumbnailCssClass); descriptor.AddProperty("closeImage", closeImage); yield return(descriptor); }
protected override IEnumerable <ScriptDescriptor> GetScriptDescriptors(Control targetControl) { IEnumerable <ScriptDescriptor> scriptDescriptors = base.GetScriptDescriptors(targetControl); ScriptBehaviorDescriptor scriptBehaviorDescriptor = scriptDescriptors.First <ScriptDescriptor>() as ScriptBehaviorDescriptor; scriptBehaviorDescriptor.AddScriptProperty("InvokedMethod", this.InvokedMethod); if (base.TargetControl is RadioButtonList) { scriptBehaviorDescriptor.AddProperty("IsRadioBtnList", true); } return(scriptDescriptors); }
IEnumerable <ScriptDescriptor> IScriptControl.GetScriptDescriptors() { if (_registerScripts) { var enumerable = GetProps() /*.Where(p => !SkipProperties.Contains(p.From.Name))*/; int i = 0; foreach (var prop in enumerable) { if (prop.From == null || prop.To == null) { continue; } var fromControl = (Control)prop.From.GetValue(ControlInfo, null); var toControl = (Control)prop.To.GetValue(ControlInfo, null); if (fromControl == null || toControl == null) { continue; } var fromClientElement = fromControl as IClientElementProvider; string fromClientID; if (fromClientElement != null) { fromClientID = fromClientElement.GetInputElements().First(); } else { fromClientID = fromControl.ClientID; } var toClientElement = toControl as IClientElementProvider; string toClientID; if (toClientElement != null) { toClientID = toClientElement.GetInputElements().First(); } else { toClientID = toControl.ClientID; } var desc = new ScriptBehaviorDescriptor("Nat.Web.Controls.CopyValue", fromClientID) { ID = String.Format("CopyValue_{0}_{1}", i++, fromControl.ID) }; desc.AddProperty("kzId", toClientID); desc.AddProperty("changeValueIfNull", prop.ChangeValueIfNull); yield return(desc); } } }
protected override void RenderScriptAttributes(ScriptBehaviorDescriptor descriptor) { base.RenderScriptAttributes(descriptor); IList <string> parametersList = new List <string>(); foreach (CustomScriptParameter parameterEntry in CustomScriptParameters) { parametersList.Add(ResolveParameter(parameterEntry)); } descriptor.AddProperty("customScriptParameters", parametersList); descriptor.AddProperty("customScript", CustomScript); }
GetScriptDescriptors(System.Web.UI.Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("Sys.Extended.UI.LocationAirport", targetControl.ClientID); ScriptDescriptor[] descriptors; if (!String.IsNullOrEmpty(this.ID)) { descriptor.AddProperty("id", this.ID); } descriptor.AddProperty("DataType", this.DataType); descriptor.AddProperty("isNotifyEnabled", this.IsNotifyEnabled); descriptor.AddProperty("LoadingProgressControlID", this.LoadingProgressControlID); descriptor.AddProperty("FlightListControlID", this.FlightListControlID); descriptor.AddProperty("AirlineFieldControlID", this.AirlineFieldControlID); descriptor.AddProperty("AirportOrigControlID", this.AirportOrigControlID); descriptor.AddProperty("LoadingCSS", this.LoadingCSS); descriptor.AddProperty("SearchControlID", this.SearchControlID); descriptor.AddProperty("ClearPanelControlID", this.ClearPanelControlID); descriptor.AddProperty("GMapControlID", this.GMapControlID); descriptor.AddProperty("PrimaryPanelSelector", this.PrimaryPanelSelector); descriptor.AddProperty("SearchValidationGroup", this.SearchValidationGroup); descriptor.AddProperty("MessageValidationError", this.MessageValidationError); descriptor.AddProperty("MessageDateTimeInfo", this.MessageDateTimeInfo); descriptor.AddProperty("ServiceUrlAirlines", this.ServiceUrlAirlines); descriptor.AddProperty("ServiceUrlAirports", this.ServiceUrlAirports); descriptor.AddProperty("ServiceUrlData", this.ServiceUrlData); descriptor.AddProperty("ServiceUrlHistory", this.ServiceUrlHistory); descriptor.AddProperty("ServiceUrlFlightInfo", this.ServiceUrlFlightInfo); descriptor.AddProperty("IATA", this.IATA); descriptor.AddProperty("IATAorig", this.IATAorig); descriptor.AddProperty("AirportNameOrig", this.AirportNameOrig); descriptor.AddProperty("AirportCity", this.AirportCity); descriptor.AddProperty("AirlineName", this.AirlineName); descriptor.AddProperty("AirlineCode", this.AirlineCode); descriptor.AddProperty("IsContinueNextStep", this.IsContinueNextStep); descriptor.AddProperty("isAirlineResultVisible", this.IsAirlineResultVisible); descriptor.AddProperty("SelectorFlightInfo", this.SelectorFlightInfo); descriptor.AddProperty("SelectorDateTimeField", this.SelectorDateTimeField); descriptor.AddProperty("ShowErrorClientFunction", this.ShowErrorClientFunction); descriptor.AddProperty("ShowInfoClientFunction", this.ShowInfoClientFunction); descriptor.AddProperty("ContinueClientFunction", this.ContinueClientFunction); descriptor.AddProperty("AirlineInfoImageUrl", this.AirlineInfoImageUrl); descriptor.AddProperty("TooltipInfo", this.TooltipInfo); descriptor.AddProperty("MessageFlightListError", this.MessageFlightListError); descriptors = new ScriptDescriptor[] { descriptor }; return(descriptors); }
public virtual IEnumerable <ScriptDescriptor> GetScriptDescriptors() { ScriptBehaviorDescriptor scriptDescriptor = new ScriptBehaviorDescriptor("EvolutionNet.TimeCounter", ClientID); scriptDescriptor.AddProperty("id", ClientID); scriptDescriptor.AddProperty("interval", interval); scriptDescriptor.AddProperty("timeStringFormat", timeStringFormat); // Aqui está o pulo do gato, descobrir se está dentro de um update panel, é postback ou não scriptDescriptor.AddProperty("startCountOnInit", StartOnLoad && (!WebControlHelper.IsInsideUpdatePanel(this) || !Page.IsPostBack)); return(new[] { scriptDescriptor }); }
// Token: 0x06000069 RID: 105 RVA: 0x00002E18 File Offset: 0x00001018 protected override IEnumerable <ScriptDescriptor> GetScriptDescriptors(Control targetControl) { if (!this.Enabled || !this.TargetControl.Visible) { return(null); } ScriptBehaviorDescriptor scriptBehaviorDescriptor = new ScriptBehaviorDescriptor(this.ClientControlType, targetControl.ClientID); this.BuildScriptDescriptor(scriptBehaviorDescriptor); this.RenderInnerScript(scriptBehaviorDescriptor); return(new List <ScriptDescriptor>(new ScriptDescriptor[] { scriptBehaviorDescriptor })); }
IEnumerable <ScriptDescriptor> IScriptControl.GetScriptDescriptors() { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("Sys.Extended.UI.AutoCompleteBehavior", ClientID); descriptor.AddProperty("id", ClientID); descriptor.AddProperty("completionInterval", CompletionInterval); descriptor.AddProperty("contextKey", String.Format("{0},{1},{2}", DataController, DataView, DistinctValueFieldName)); descriptor.AddProperty("delimiterCharacters", ",;"); descriptor.AddProperty("minimumPrefixLength", MinimumPrefixLength); descriptor.AddProperty("serviceMethod", "GetCompletionList"); descriptor.AddProperty("servicePath", ResolveClientUrl("~/DAF/Service.asmx")); descriptor.AddProperty("useContextKey", true); return(new ScriptBehaviorDescriptor[] { descriptor }); }
GetScriptDescriptors(System.Web.UI.Control targetControl) { ScriptBehaviorDescriptor descriptor = new ScriptBehaviorDescriptor("Sys.Extended.UI.ConsoleDebug", targetControl.ClientID); ScriptDescriptor[] descriptors; if (!String.IsNullOrEmpty(this.ID)) { descriptor.AddProperty("id", this.ID); } descriptor.AddProperty("IsVisible", this.IsVisible); descriptors = new ScriptDescriptor[] { descriptor }; return(descriptors); }