Hi,
I have a ListGrid with cellPadding set to 20.
I need for a specific column to override\cancel that padding - is there a straight-forward way?
I tried to set the padding at the CSS level instead, thinking I can then set a different CSS rule on the special column - is that a recommended approach?
Unfortunately, that caused some columns to be misplaced inside the grid (specifically, columns with align=right\center are placed too much to the right).
To demonstrate this problem, I used this code, based on the showcase in https://www.smartclient.com/smartcli...id=columnOrder
And I set the following CSS rule (this is just a test to apply left\right padding to all td elements of the grid, in order to show the problem):
The result looks like this:
You can notice that the text in the 'Country' column (which is aligned to the right) is cut and that the text in the 'Capital' column is not properly centered as it should be.
So my questions:
1. Is that a bug, or am I doing something wrong?
2. Is there a different way to achieve what I want (to have a specific column without cell padding)?
Thanks
I am testing this on the latest build on V12.0p
I have a ListGrid with cellPadding set to 20.
I need for a specific column to override\cancel that padding - is there a straight-forward way?
I tried to set the padding at the CSS level instead, thinking I can then set a different CSS rule on the special column - is that a recommended approach?
Unfortunately, that caused some columns to be misplaced inside the grid (specifically, columns with align=right\center are placed too much to the right).
To demonstrate this problem, I used this code, based on the showcase in https://www.smartclient.com/smartcli...id=columnOrder
Code:
isc.ListGrid.create({ ID: "countryList", width:500, height:224, alternateRecordStyles:true, data: countryData, fields:[ {name:"countryName", title:"Country", align: "right"}, {name:"capital", title:"Capital", align: "center"}, {name:"continent", title:"Continent"} ], canReorderFields: true })
Code:
.listTable>tbody>tr>td { padding-left: 20px; padding-right: 20px; }
You can notice that the text in the 'Country' column (which is aligned to the right) is cut and that the text in the 'Capital' column is not properly centered as it should be.
So my questions:
1. Is that a bug, or am I doing something wrong?
2. Is there a different way to achieve what I want (to have a specific column without cell padding)?
Thanks
I am testing this on the latest build on V12.0p
Comment