Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Adding a 'cell padding' to a tree grid

    Hi,

    It looks like there is glitch while I am trying to add a padding to a cell in a tree grid.
    In this scenario click on the + / - (expand / collapse) icons working only when the click occurs on the left side of the icon or on the left from the icon.
    Click on the center of the icon or on the right from the icon doesn't working.

    Here is an example from the sand box:

    https://www.smartclient.com/smartcli...ultipleColumns

    Code:
    isc.TreeGrid.create({
        ID: "employeeTree",
        width: 500,
        height: 400,
        dataSource: "employees",
        autoFetchData: true,
        nodeIcon:"icons/16/person.png",
        folderIcon:"icons/16/person.png",
        showOpenIcons:false,
        showDropIcons:false,
        closedIconSuffix:"",
        showSelectedIcons:true,
        getCellCSSText: () => { return "padding-left: 15px"},
        fields: [
            {name: "Name"},
            {name: "Job"},
            {name: "Salary", formatCellValue: "isc.NumberUtil.format(value, '\u00A4,0.00')"}
        ]
    });

    #2
    This is another instance where adding dynamic padding (needlessly) doesn't work. Fixed padding is required for browsers to render cells correctly, so you cannot add different padding per cell. Since your padding must be fixed, don't add it via getCellCSSText(); supporting that approach would be slower for no reason.

    Comment

    Working...
    X