protected override void RenderSortAction(RPLTextBoxProps textBoxProps, RPLFormat.SortOptions sortState) { this.WriteStream(HTML4Renderer.m_openStyle); this.WriteStream(HTML4Renderer.m_cursorHand); this.WriteStream(HTML4Renderer.m_semiColon); this.WriteStream(HTML4Renderer.m_quote); string uniqueName = textBoxProps.UniqueName; uniqueName = ((sortState != RPLFormat.SortOptions.Descending && sortState != 0) ? (uniqueName + "_D") : (uniqueName + "_A")); base.RenderOnClickActionScript("Sort", uniqueName); this.WriteStream(HTML4Renderer.m_closeBracket); }
protected override void RenderSortImageText(RPLFormat.SortOptions sortState) { if (sortState == RPLFormat.SortOptions.Ascending) { this.WriteStream(EmbeddedResourceOperation.CreateUrl("Microsoft.ReportingServices.Rendering.HtmlRenderer.RendererResources.sortAsc.gif")); return; } if (sortState == RPLFormat.SortOptions.Descending) { this.WriteStream(EmbeddedResourceOperation.CreateUrl("Microsoft.ReportingServices.Rendering.HtmlRenderer.RendererResources.sortDesc.gif")); return; } this.WriteStream(EmbeddedResourceOperation.CreateUrl("Microsoft.ReportingServices.Rendering.HtmlRenderer.RendererResources.unsorted.gif")); }
protected override void RenderSortImageText(RPLFormat.SortOptions sortState) { switch (sortState) { case RPLFormat.SortOptions.Ascending: this.WriteStream(EmbeddedResourceOperation.CreateUrl("AspNetCore.ReportingServices.Rendering.HtmlRenderer.RendererResources.sortAsc.gif")); break; case RPLFormat.SortOptions.Descending: this.WriteStream(EmbeddedResourceOperation.CreateUrl("AspNetCore.ReportingServices.Rendering.HtmlRenderer.RendererResources.sortDesc.gif")); break; default: this.WriteStream(EmbeddedResourceOperation.CreateUrl("AspNetCore.ReportingServices.Rendering.HtmlRenderer.RendererResources.unsorted.gif")); break; } }
protected override void RenderSortAction(RPLTextBoxProps textBoxProps, RPLFormat.SortOptions sortState) { if (m_deviceInfo.AllowScript) { RenderSortOnClick(textBoxProps, sortState); WriteStream(HTML4Renderer.m_closeBracket); return; } CatalogItemUrlBuilder catalogItemUrlBuilder = BaseBookmarkSortUrl(isSort: true); catalogItemUrlBuilder.AppendCatalogParameter("SortId", textBoxProps.UniqueName); if (sortState == RPLFormat.SortOptions.Descending || sortState == RPLFormat.SortOptions.None) { catalogItemUrlBuilder.AppendCatalogParameter("SortDirection", "Ascending"); } else { catalogItemUrlBuilder.AppendCatalogParameter("SortDirection", "Descending"); } catalogItemUrlBuilder.AppendCatalogParameter("ClearSort", "TRUE"); WriteStream(HTML4Renderer.m_hrefString + HttpUtility.HtmlAttributeEncode(ReplaceRoot(new Uri(catalogItemUrlBuilder.ToString()).AbsoluteUri)) + HTML4Renderer.m_closeQuoteString); }
private void RenderSortOnClick(RPLTextBoxProps textBoxProps, RPLFormat.SortOptions sortState) { WriteStream(HTMLElements.m_openStyle); WriteStream(HTMLElements.m_cursorHand); WriteStream(HTMLElements.m_semiColon); WriteStream(HTMLElements.m_quote); string uniqueName = textBoxProps.UniqueName; if (m_deviceInfo.HasActionScript) { uniqueName = ((sortState != RPLFormat.SortOptions.Descending && sortState != 0) ? (uniqueName + "_D") : (uniqueName + "_A")); RenderOnClickActionScript("Sort", uniqueName); return; } m_pageWithSortClicks = true; string theString = "Ascending"; if (sortState == RPLFormat.SortOptions.Ascending) { theString = "Descending"; } WriteStream(" onclick=\""); WriteStream(m_deviceInfo.JavascriptPrefixId); WriteStream("Sort('"); WriteStreamEncoded(uniqueName); WriteStream("', '"); WriteStream(theString); WriteStream("');return false;\""); WriteStream(" onkeypress=\""); WriteStream(HTMLElements.m_checkForEnterKey); WriteStream(m_deviceInfo.JavascriptPrefixId); WriteStream("Sort('"); WriteStreamEncoded(uniqueName); WriteStream("','"); WriteStream(theString); WriteStream("');return false;}\""); }
public virtual void ProcessSort(string uniqueName, RPLFormat.SortOptions sortState, ref RectangleF textPosition) { }
protected internal override void RenderSortAction(RPLTextBoxProps textBoxProps, RPLFormat.SortOptions sortState) { this.WriteStream(HTMLElements.m_openStyle); this.WriteStream(HTMLElements.m_cursorHand); this.WriteStream(HTMLElements.m_semiColon); this.WriteStream(HTMLElements.m_quote); string text = textBoxProps.UniqueName; if (sortState == RPLFormat.SortOptions.Descending || sortState == RPLFormat.SortOptions.None) { text += "_A"; } else { text += "_D"; } base.RenderOnClickActionScript("Sort", text, null); this.WriteStream(HTMLElements.m_closeBracket); }