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

how to remove the lines which are inside of the grid toolbar

Good evening.

How can I remove the lines which are inside of theses red circles?


I will be awaiting for your reply, thank you.

Regards, Luis Carlos.

3 Replies

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team August 24, 2018 11:57 AM UTC

Hi Luis,  
 
Thanks for contacting Syncfusion Support.  
 
Using the cssClass property Grid, set the class to the Grid’s root element and define the required properties using the styles to hide the borders of the toolbar as follows.  
 
<div id="Grid"></div> 
 
<script type="text/javascript"> 
    $(function () { 
        $("#Grid").ejGrid({ 
            dataSource: window.gridData, 
            allowPaging: true, 
            cssClass: "custom", 
               . . . 
                     .. . 
        }); 
    }); 
 
</script> 
<style> 
    .e-grid.custom .e-toolbar { 
        border: white; 
        background: none; 
    } 
    .e-grid.custom .e-toolbar.e-toolbarspan { 
        box-shadow: none; 
    } 
    .e-grid.custom { 
        border: none; 
    } 
    .e-grid.custom > div:not(.e-gridtoolbar) { 
        height: auto; 
        border-color: #cecece; 
        border-width: 1px; 
        border-style: solid solid solid solid; 
    } 
</style> 
 
 
 
Refer to the following API Reference.  
 
 
Regards,  
Seeni Sakthi Kumar S. 



LC Luis Carlos September 17, 2018 09:57 AM UTC

Good morning.

As you can see inside of red circle of the below image, those vertical lines are not aligned. Could you modify it in order to fix this little problem?



I will be awaiting for your reply, thank you again.

Regards, Luis Carlos.


SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team September 17, 2018 10:14 AM UTC

Hi Luis,  
 
Along with the other suggested CSS styles, add the following CSS for Pager overflow.  
 
<div id="Grid"></div> 
<script type="text/javascript"> 
    $(function () { 
        $("#Grid").ejGrid({ 
            dataSource: window.gridData, 
            allowPaging: true, 
            cssClass: "custom", 
            . . . 
                 . . . 
        }); 
    }); 
 
</script> 
<style> 
    .e-grid.custom .e-pager { 
        width: calc(100% - 2px); 
    } 
</style> 
 
 
Regards,  
Seeni Sakthi Kumar S. 


Loader.
Up arrow icon