How to Draw Column Lines as Separator in Grid View

QuestionsHow to Draw Column Lines as Separator in Grid View
Faisal Ayub asked 2 months ago

How can I draw column lines in Grid View as separtor

3 Answers
Abu Ghufran Staff answered 2 months ago

You can have this css (on page or file) after the grid css inclusion. (where list1 is grid id)

You can add following CSS code to show vertial lines in datagrid.

<style>
.ui-jqgrid table tr.ui-row-ltr td[role="gridcell"] { border-right-style:solid !important; }
.ui-jqgrid table tr.ui-row-rtl td[role="gridcell"] { border-left-style:solid !important; }
</style>
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Faisal Ayub answered 2 months ago

I createa a css file and included at the top of my page. That css file contains following code. All code works except this vertial lines one.

 

/* alternate row color */
/* .myAltRowClass { background-color: #F1F1F1 !important; background-image: url(”) !important; } */
.myAltRowClass { background-color: #ecece5 !important; background-image: url(”) !important; }
/* adjust highlight row option */
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight
{
    background:rgba(240, 173, 78, 0.815) url(“images/ui-bg_flat_55_fbec88_40x100.png”) repeat-x scroll 50% 50% !important;
}
.ui-state-hover
{
    font-weight: bolder;
    color: #404040 !important;
}
.ui-jqgrid table tr.ui-row-ltr td[role=”gridcell”] { border-right-style:solid !important; }
.ui-jqgrid table tr.ui-row-rtl td[role=”gridcell”] { border-left-style:solid !important; }

Abu answered 2 months ago

This file should be after the grid css files. Otherwise grid will override the changes. Also check via browser debugger if these css changed are included in the cell TD.

 

Your Answer

17 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?