public IHtmlNode HiddenForDataKey(object dataItem) { var htmlHelper = CreateHtmlHelper(dataItem); var dataKeyValues = dataKeyStore.GetDataKeyValues(dataItem); var fragment = new HtmlFragment(); using (new ClientValidationManager(viewContext)) { foreach (var entry in dataKeyValues) { var html = htmlHelper.Hidden(entry.Key, entry.Value, new { id = "" }).ToHtmlString(); var hidden = new LiteralNode(html); hidden.AppendTo(fragment); } } return(fragment); }
protected override IHtmlNode BuildCore() { var div = new HtmlTag("div") .AddClass("t-page-i-of-n"); var page = new LiteralNode(localization.Page); page.AppendTo(div); var input = new HtmlTag("input") .Attribute("type", "text") .Attribute("value", Value); input.AppendTo(div); var of = new LiteralNode(string.Format(localization.PageOf, TotalPages)); of.AppendTo(div); return div; }
public IHtmlNode Create(GridPagerData section) { var div = new HtmlElement("div") .AddClass("t-page-i-of-n"); var page = new LiteralNode(section.PageText); page.AppendTo(div); var input = new HtmlElement("input", TagRenderMode.SelfClosing) .Attribute("type", "text") .Attribute("value", section.CurrentPage.ToString()); input.AppendTo(div); var of = new LiteralNode(string.Format(section.PageOfText, section.PageCount)); of.AppendTo(div); return div; }
public IHtmlNode Create(GridPagerData section) { var div = new HtmlElement("div") .AddClass("t-page-i-of-n"); var page = new LiteralNode(section.PageText); page.AppendTo(div); var input = new HtmlElement("input", TagRenderMode.SelfClosing) .Attribute("type", "text") .Attribute("value", section.CurrentPage.ToString()); input.AppendTo(div); var of = new LiteralNode(string.Format(section.PageOfText, section.PageCount)); of.AppendTo(div); return(div); }
public IHtmlNode Create(GridPagerData section) { var span = new HtmlElement("span") .AddClass("k-pager-input", "k-label"); var page = new LiteralNode(section.Messages.Page); page.AppendTo(span); var input = new HtmlElement("input", TagRenderMode.SelfClosing) .Attribute("type", "text") .AddClass("k-textbox") .Attribute("value", section.Page.ToString()); input.AppendTo(span); var of = new LiteralNode(string.Format(section.Messages.Of, section.TotalPages)); of.AppendTo(span); return span; }
public IHtmlNode Create(GridPagerData section) { var span = new HtmlElement("span") .AddClass("k-pager-input", "k-label"); var page = new LiteralNode(section.Messages.Page); page.AppendTo(span); var input = new HtmlElement("input", TagRenderMode.SelfClosing) .Attribute("type", "text") .AddClass("k-textbox") .Attribute("value", section.Page.ToString()); input.AppendTo(span); var of = new LiteralNode(string.Format(section.Messages.Of, section.TotalPages)); of.AppendTo(span); return(span); }
public void Apply(IHtmlNode parent) { var text = new LiteralNode(button.Text); text.AppendTo(parent); }
public void Apply(IHtmlNode parent) { var text = new LiteralNode(button.Text); text.AppendTo(parent); }