This is a migrated thread and some comments may be shown as answers.

CommandItem row below Pager row

2 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kya
Top achievements
Rank 1
Kya asked on 02 Nov 2011, 02:44 AM
I have a RadGrid with a single MasterTableView.  My CommandItem settings have only Export to CSV.  I want this row at the very bottom of the grid so I set CommandItemDisplay="Bottom".  I want my Pager row at the bottom of the data, but above the CommandItem row.  When I put PagerStyle-Position="Bottom" the Pager is put at the very bottom, underneath the CommandItem row.

Is there a way to put the CommandItem row at the very bottom, below the Pager row?

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 02 Nov 2011, 11:49 AM
Hello,

add below script in your project and give reference in page as shown in below.
 
   <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>


<script type="text/javascript">
           $(document).ready(function () {
               var rgrow = $('.rgCommandCell').html();
               var rgpage = $('.rgPagerCell').html();
 
               $('.rgCommandCell').html(rgpage);
               $('.rgPagerCell').html(rgrow);
             
           });
 
       </script>

In addition also change the both class's style.

Thanks,
Jayesh Goyani
0
Pavlina
Telerik team
answered on 02 Nov 2011, 12:42 PM
Hello Kya,

It is not possible to swap the positions for the bottom CommandItem and the pager of the grid due to the specific order of these elements in the grid rendering.

However, you may consider using PagerTemplate and place the link button for "Export to CSV" with command name as "ExportToCsv" inorder to put the Export button at the very bottom of the grid.

Regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Kya
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Pavlina
Telerik team
Share this question
or