Setting totalPages in a jsRender template for ejGrid

Dear Sir,

The example in https://help.syncfusion.com/js/grid/paging  
shows a pager template but with the total pages fixed at the value 200.

I wonder how to replace the fixed value with the actual "totalPages"  value.
(A general question is how to use expressions related to ej-Controls in a jsRender template)

In general, it is useful to revise your documentation with this kind of information.


Important Question:  How to do the same in Web JS2?

Thank you.




1 Reply

KM Kuralarasan Muthusamy Syncfusion Team May 14, 2018 01:15 PM UTC

Hi Patterngen, 

Thanks for contacting Syncfusion support. 

Sorry for the inconvenience caused. 

Query #1: I wonder how to replace the fixed value with the actual "totalPages"  value.  
 
In our help documentation we have directly assigned the total number page value in the pager template. But this value is not fixed value. This is total number of page count in the grid. So you can replace this value with your Grid total number of page count. According to your suggestion we have created the improvement task and we will refresh the help documentation as soon as possible. Until please refer the following sample demo for Grid pager template. 

Please refer the following link to our sample demo: 


In this sample we have show’s how  to use pager template in ej1 Grid. 

Query #2: (A general question is how to use expressions related to ej-Controls in a jsRender template) 

We could not understood your query. So please explain this requirement deeply for further assistance. 

Query #3: Important Question:  How to do the same in Web JS2? 
 
We have already discussed about this topic in ej2 help documentation. So please refer the following link to use ej2 grid pager template: 
 
 
Regards, 
Kuralarasan M. 


Loader.
Up arrow icon