Announcement

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

    Issue with TreeGrid + checkbox selection + disabled + sprite icons

    EDIT: I posted this on the wrong forum - very sorry; I'll post it on the proper one :(

    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.

    Thanks!

    Regards,
    --
    Eric
    Last edited by eric.maziade.afsi; 9 Oct 2019, 09:34.

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

Name:	disabled-checkbox-example.png
Views:	95
Size:	58.4 KB
ID:	259623

    Comment


      #3
      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

      Edit: We see this is a duplicate of this thread: https://forums.smartclient.com/forum...d-sprite-icons
      Last edited by Isomorphic; 9 Oct 2019, 15:09.

      Comment

      Working...
      X