Announcement

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

    Issue with TreeGrid + checkbox selection + disabled + sprite icons

    (I've posted this on the GWT forum by mistake, sorry for the double-post!)

    We're updating our look and using Tahoe as a starting point - which uses the cool sprite icon feature to show checkboxes.

    We've encountered a case when it seems SmartClient doesn't handle the sprite as expected.

    We've reproduced with "v12.0p_2019-10-06/Pro Deployment" and the Tahoe skin using the following code:

    Code:
    var treeData =
    [
        {
            index: 0,
            id: "business_alert_subscriptions",
            parentId: "1",
            name: "Alert Subscriptions",
        },
        {
            canSelect : false,
            index: 1,
            id: "dashboard",
            parentId: "1",
            name: "Dashboard",
        },
        {
            index: 2,
            id: "PLANNING",
            parentId: "1",
            name: "Planning & Analysis",
        }    
    ];
    
    isc.TreeGrid.create({
        ID: "testTree",
        width: 500,
        height: 400,
        showRoot : true,
        selectionAppearance: 'checkbox',
        showDisabledSelectionCheckbox : true,
    });
    
    testTree.setData(isc.Tree.create(treeData));
    In this example, the second entry in the tree is not selectable. You'll see in the debug log that it tried (and failed) to load the image: "/images/_Disabledsprite:cssClass:checkboxFalse;size:25,25"

    If it is of any help, I've traced it down to Img.urlForState, which does not seem to support the "sprite:" prefix.

    I've made a screen grab/montage to try and clarify the issue.
    Click image for larger version

Name:	disabled-checkbox-example.png
Views:	152
Size:	58.4 KB
ID:	259625

    Thanks!

    Regards,
    --
    Eric

    #2
    Thanks for the clear report.
    We've made a change to address this issue which will be present in nightly builds (12.0 and 12.1 branches) going forward

    Regards
    Isomorphic Software

    Comment

    Working...
    X