public static void RegisterDefaultFormToolWindow(HttpContext httpContext, Func <Tuple <IList <RowType>, IList <KeyValuePair <string, string> > >, IHtmlContent> getHtml) { RenderingContext.AttachEvent <Tuple <IList <RowType>, IList <KeyValuePair <string, string> > > >(httpContext, rowContainerKey, (groups, o) => { EndOfFormHtml(httpContext, getHtml(groups)); } ); }
public static void EndOfBodyHtml(HttpContext httpContext, IHtmlContent html) { var res = RenderingContext.Current(httpContext, bodyKey); if (res == null || res.Empty) { OpenBodyContext(httpContext); } RenderingContext.AttachEvent <Action <IHtmlContent, object> >(httpContext, bodyKey, (f, o) => { f(html, o); } ); }
public static void EndOfFormHtml(HttpContext httpContext, IHtmlContent html) { if (DisabledPostFormContent.IsDisabled(httpContext)) { return; } var res = RenderingContext.Current(httpContext, formKey); if (res == null || res.Empty) { OpenFormContext(httpContext); } RenderingContext.AttachEvent <Action <IHtmlContent, object> >(httpContext, formKey, (f, o) => { f(html, o); } ); }
public static void RegisterRowsDependency(HttpContext httpContext, Action <IList <RowType> > action) { RenderingContext.AttachEvent <IList <RowType> >(httpContext, rowContainerKey, (r, o) => { action(r); }); }