internal static StringBuilder AppendInlineNavigator(this StringBuilder javaScriptBuilder, JqGridOptions options, IJqGridJsonService jqGridJsonService, bool asSubgrid)
        {
            if (options.InlineNavigator != null)
            {
                javaScriptBuilder.AppendLine(")")
                .AppendFormat(".jqGrid('inlineNav',{0}", options.GetJqGridPagerSelector(options.Navigator.Pager, asSubgrid))
                .AppendInlineNavigatorOptions(options.InlineNavigator, jqGridJsonService);
            }

            return(javaScriptBuilder);
        }
        internal static StringBuilder AppendNavigator(this StringBuilder javaScriptBuilder, JqGridOptions options, IJqGridJsonService jqGridJsonService, bool asSubgrid)
        {
            if (options.Navigator != null)
            {
                string jqGridPagerSelector = options.GetJqGridPagerSelector(options.Navigator.Pager, asSubgrid);

                javaScriptBuilder.AppendLine(")")
                .AppendFormat(".jqGrid('navGrid',{0}", jqGridPagerSelector)
                .AppendNavigatorOptions(options.Navigator)
                .AppendNavigatorEditActionOptions(null, options.Navigator.EditOptions, jqGridJsonService)
                .AppendNavigatorEditActionOptions(null, options.Navigator.AddOptions, jqGridJsonService)
                .AppendNavigatorDeleteActionOptions(null, options.Navigator.DeleteOptions, jqGridJsonService)
                .AppendNavigatorSearchActionOptions(options.Navigator.SearchOptions)
                .AppendNavigatorViewActionOptions(options.Navigator.ViewOptions)
                .AppendNavigatorLeadingCustomElements(jqGridPagerSelector, options.Navigator.LeadingCustomElements)
                .AppendNavigatorTrailingCustomElements(jqGridPagerSelector, options.Navigator.TrailingCustomElements);
            }

            return(javaScriptBuilder);
        }