Show Pager at top and botton of Grid

Jun 20, 2016 at 6:18 AM
How to render pager at the top of the grid. I want to render the pager at bottom and top of the grid, please suggest me.

thanks in advance.
Jun 21, 2016 at 2:27 PM
surazbabu wrote:
How to render pager at the top of the grid. I want to render the pager at bottom and top of the grid, please suggest me.

thanks in advance.
You should be able to edit the _Grid.cshtml file to add the @RenderGridPager() call before and after the grid. So using the included _Grid.csthml file...
<div class="grid-mvc" data-lang="@Model.Language" data-gridname="@Model.RenderOptions.GridName" data-selectable="@Model.RenderOptions.Selectable.ToString().ToLower()" data-multiplefilters="@Model.RenderOptions.AllowMultipleFilters.ToString().ToLower()">
       <div class="grid-wrap">
           @RenderGridFooter() //Add the footer line here
           <table class="table table-striped grid-table">
               @* Draw grid header *@
               <thead>
                   @RenderGridHeader()
               </thead>
               <tbody>
                   @RenderGridBody()
               </tbody>
           </table>
           @RenderGridFooter()
       </div>
   </div>
Jun 29, 2016 at 7:47 PM
Placing above the table didn't work for me. But the following did.


<div class="grid-mvc" data-lang="@Model.Language" data-gridname="@Model.RenderOptions.GridName" data-selectable="@Model.RenderOptions.Selectable.ToString().ToLower()" data-multiplefilters ="@Model.RenderOptions.AllowMultipleFilters.ToString().ToLower()">
    <div class="grid-wrap">            
        <table class="table table-striped grid-table">
            @* Draw grid header *@
            <thead>
                @RenderGridHeader()

            </thead>
            <tbody>
                @RenderGridBody()
                @RenderGridPager()
            </tbody>
        </table>
        @RenderGridPager()
    </div>
</div>