on 2015 Apr 23 8:39 PM
Hi Developers,
Does anyone know how to put border around each cell so that a gridlayout can look like a table? I used CSS to add border on the sides but what i exactly want to do is create a border around each cell so that when I run the report, I see a table instead of one big red box.
Thank you for all your help and suggestion!!
Raj
Request clarification before answering.
Try this rule example:
.sapUiMlt.zenControl {
border: 2px red solid;
}
.sapUiMlt.zenControl td:first-child {
border-left: 2px red solid;
}
.sapUiMlt.zenControl td:last-child {
border-right: 2px red solid;
}
.sapUiMlt.zenControl tr:first-child td {
border-top: 2px red solid;
}
.sapUiMlt.zenControl tr:last-child td {
border-bottom: 2px red solid;
}
.sapUiMlt.zenControl td {
border: 2px black solid;
}
Worked for me. You may opt to give that particular Grid its own CSS Class name so that those rules don't apply to all your grids, but this was a simple example that will work on all grids.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.