public static string ToConfig(UserControl userControl, Ext.Net.UserControlLoader.ComponentAddedEventHandler componentPreRender, bool registerResources) { List <AbstractComponent> cmps = new List <AbstractComponent>(); if (userControl is IDynamicUserControl) { ((IDynamicUserControl)userControl).BeforeRender(); } foreach (object control in userControl.Controls) { AbstractComponent cmp = control as AbstractComponent; if (cmp != null) { cmps.Add(cmp); } else if (control is UserControlLoader) { cmps.AddRange(((UserControlLoader)control).Components); } else if (control is LiteralControl || control is Literal) { continue; } else { throw new Exception(string.Format(ServiceMessages.NON_LAYOUT_CONTROL, control.GetType().ToString())); } } return(ComponentLoader.ToConfig(cmps, componentPreRender, registerResources)); }
public static string ToConfig(UserControl userControl) { return(ComponentLoader.ToConfig(userControl, null)); }
public static void Render(UserControl userControl, Ext.Net.UserControlLoader.ComponentAddedEventHandler componentPreRender, bool registerResources) { CompressionUtils.GZipAndSend(ComponentLoader.ToConfig(userControl, componentPreRender, registerResources)); }
public static string ToConfig(string path, string userControlId, Ext.Net.UserControlLoader.ComponentAddedEventHandler componentPreRender, bool registerResources) { return(ComponentLoader.ToConfig(UserControlRenderer.LoadControl(path, userControlId), componentPreRender, registerResources)); }
public static string ToConfig(string path, string userControlId, bool registerResources) { return(ComponentLoader.ToConfig(UserControlRenderer.LoadControl(path, userControlId), registerResources)); }
public static string ToConfig(string path, string userControlId) { return(ComponentLoader.ToConfig(UserControlRenderer.LoadControl(path, userControlId))); }
public static string ToConfig(string path, Ext.Net.UserControlLoader.ComponentAddedEventHandler componentPreRender) { return(ComponentLoader.ToConfig(UserControlRenderer.LoadControl(path), componentPreRender)); }
public static void Render(AbstractComponent component) { CompressionUtils.GZipAndSend(ComponentLoader.ToConfig(component, true)); }
public static string ToConfig(IEnumerable <AbstractComponent> components, bool registerResources) { return(ComponentLoader.ToConfig(components, null, registerResources)); }
public static string ToConfig(IEnumerable <AbstractComponent> components) { return(ComponentLoader.ToConfig(components, null)); }
public static void Render(IEnumerable <AbstractComponent> components, Ext.Net.UserControlLoader.ComponentAddedEventHandler componentPreRender, bool registerResources) { CompressionUtils.GZipAndSend(ComponentLoader.ToConfig(components, componentPreRender, registerResources)); }
public static void Render(IEnumerable <AbstractComponent> components, bool registerResources) { CompressionUtils.GZipAndSend(ComponentLoader.ToConfig(components, registerResources)); }
public static string ToConfig(AbstractComponent component, bool registerResources) { return(ComponentLoader.ToConfig(new AbstractComponent[] { component }, registerResources)); }
public static string ToConfig(AbstractComponent component) { return(ComponentLoader.ToConfig(new AbstractComponent[] { component }, true)); }
public static void Render(AbstractComponent component, bool registerResources) { CompressionUtils.GZipAndSend(ComponentLoader.ToConfig(component, registerResources)); }
public static string ToConfig(UserControl userControl, bool registerResources) { return(ComponentLoader.ToConfig(userControl, null, registerResources)); }
public static string ToConfig(UserControl userControl, Ext.Net.UserControlLoader.ComponentAddedEventHandler componentPreRender) { return(ComponentLoader.ToConfig(userControl, componentPreRender, true)); }
public static string ToConfig(IEnumerable <AbstractComponent> components, Ext.Net.UserControlLoader.ComponentAddedEventHandler componentPreRender) { return(ComponentLoader.ToConfig(components, componentPreRender, true)); }