Announcement

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

    TreeGrid node collapse loses selections

    Hi,

    Whenever a TreeGrid gets one of its nodes collapsed, any selections on nodes located below
    the node being collapsed, are lost (cleared).

    Is there any way to preserve selections, even when a node gets collapsed.

    Using the feature explorer, you can see the behavior we are describing using the following
    slightly modified code:

    http://www.smartclient.com/index.jsp#nodeTitles

    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:"",
        selectionType : "single",
        selectionAppearance : "checkbox",
        fields: [
            {name: "Name", treeField: true, formatCellValue: "record.Job+': '+value"}
        ]
    });
    Thanking you in advance for your help.

    Regards,

    #2
    What version of SC are you using? Can you try a new nightly?

    Comment


      #3
      We're still using 7.0 RC2. We haven't moved to v8 yet.

      Comment


        #4
        This appears to be fixed in the latest versions.

        Comment


          #5
          Yes, this was changed in 8.0 so that selection persists across expand/collapse. If you need this behavior in 7.0, unfortunately it's going to mean tracking the selection yourself via implementing mousedown/mouseup event handlers and using overrides of getCellStyle et al to provide styling for your own notion of selection - a fair bit of work.

          Comment


            #6
            No that's fine. We'll migrate to v8.0 at some point in time.

            Thanks for confirming.

            Regards,

            Comment

            Working...
            X