Exemple #1
0
 internal static string GetJqGridPagerSelector(this JqGridOptions options, JqGridNavigatorPagers pager, bool asSubgrid)
 {
     return(asSubgrid? ((pager == JqGridNavigatorPagers.Standard) ? JqGridSubgridJavaScriptRenderingHelper.SUBGRID_PAGER_ID : JqGridSubgridJavaScriptRenderingHelper.SUBGRID_TOP_PAGER_ID) : String.Format("'#{0}'", options.GetJqGridPagerId(pager)));
 }
Exemple #2
0
 internal static string GetJqGridPager(JqGridOptions options, bool asSubgrid)
 {
     return(asSubgrid ? "$subgridPager" : String.Format("'#{0}'", options.GetJqGridPagerId()));
 }
Exemple #3
0
 /// <summary>
 /// Returns the HTML that is used to render the pager (div) placeholder for the grid.
 /// </summary>
 /// <returns>The HTML that represents the pager (div) placeholder for jqGrid</returns>
 public static IHtmlContent JqGridPagerHtml(this IHtmlHelper htmlHelper, JqGridOptions options)
 {
     return(new HtmlString(String.Format("<div id='{0}'></div>", options.GetJqGridPagerId())));
 }