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

Grid pager control css

I would like to be able to change a grid's pager control; background color, highlight color of selected page, buttons used to navigate, etc.  I did find some grid control css at this link (), but it does not address the pager.



3 Replies

PS Pavithra Subramaniyam Syncfusion Team March 17, 2019 11:32 PM

Hi Travis, 
 
Thanks for contacting Syncfusion support. 
 
You can achieve your requirement by adding custom CSS for pager element. Please refer to the below code example, documentation link and sample link for more information. 
 
[style.css] 
<style> 
            // pager back ground 
            .e-grid .e-pager,.e-grid .e-pager .e-pagercontainer,.e-grid .e-pager .e-pagercontainer *{ 
              background-color:lightblue; 
            } 
           // current selected page item 
            .e-grid .e-pager .e-currentitem, .e-pager .e-currentitem:hover{ 
               background-color:blue; 
            } 
        </style> 
 
 
Sample               : https://stackblitz.com/edit/mpc8wb?file=index.js  
 
Please get back to us for further assistance. 
 
Regards, 
Pavithra S. 



FV Fabrice Venville replied to Pavithra Subramaniyam July 10, 2019 09:39 AM

Hi Travis, 
 
Thanks for contacting Syncfusion support. 
 
You can achieve your requirement by adding custom CSS for pager element. Please refer to the below code example, documentation link and sample link for more information. 
 
[style.css] 
<style> 
            // pager back ground 
            .e-grid .e-pager,.e-grid .e-pager .e-pagercontainer,.e-grid .e-pager .e-pagercontainer *{ 
              background-color:lightblue; 
            } 
           // current selected page item 
            .e-grid .e-pager .e-currentitem, .e-pager .e-currentitem:hover{ 
               background-color:blue; 
            } 
        </style> 
 
 
Sample               : https://stackblitz.com/edit/mpc8wb?file=index.js  
 
Please get back to us for further assistance. 
 
Regards, 
Pavithra S. 


I have the same problem as Travis. 
I just tested the code above. It did not work.
I would like to change the button color.
I use the code below:

<ejs-grid
[dataSource]='data' [allowPaging]="true" [allowSorting]="true" [pageSettings]="pageSettings">
<e-columns>
<e-column></e-column>
</e-columns>
</ejs-grid>


SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team July 11, 2019 05:16 AM

Hi Amine,  

We are unable to reproduce the problem at our end. We have prepared a sample that can be referred from the following link.  


 

If you are facing a problem, please share the complete code example of the Grid along with the typescript definition file for the component file. If any of the CSS used for the customization in the Grid, please send them along.  

Regards,  
Seeni Sakthi Kumar S. 


Loader.
Live Chat Icon For mobile
Up arrow icon