We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to select the last page

Hello,

 

a short question: how to select the last page in a grid?

By Default the grid Displays the first page, how to Display the last?

 

Thanks in advance

 


4 Replies

RU Ragavee U S Syncfusion Team July 9, 2014 05:51 AM UTC

Hi Sebastian

 

We have analyzed your requirement to display the last page while loading the grid initially. It can be achieved by using the goToPage method of the ejPager control. Please refer the below code snippet.

 

<script type="text/javascript">

    function create(args) {

        this.getGridPager().ejPager("goToPage", args.model.pageSettings.totalPages);       

    }

</script>

 

For your convenience, we have created a simple sample implementing your requirement and the same can be downloaded from the attachment

 

Please let us know if you need any further assistance.

 

Regards

Ragavee U S



Attachment: Sample_7b63a66a.zip


SM Sebastian Mothes July 9, 2014 09:40 AM UTC

Hi Ragavee,

 

thank's a lot for your Response. Your provided Solutions worked like a charm.

 

Regards

 

Sebastian



RU Ragavee U S Syncfusion Team July 10, 2014 03:44 AM UTC

Hi Sebastian

 

Thank you for your appreciation.

 

If you have any issues in the future, please get back to us. We will be happy to assist you.

 

Please let us know if you need any further assistance.

 

Regards

Ragavee U S



PA pauloguedes February 21, 2018 11:16 AM UTC

Ok!

Loader.
Live Chat Icon For mobile
Up arrow icon