Announcement

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

    scrollTo does not work in TreeGrid

    Hi,
    I'm trying to scroll to a record in the TreeGrid based on some search criteria and select the record. Right now I'm able to select the correct record, but I'm not able to scroll to that record to view it. I've included some code snippets for scrolling to bottom of the TreeGrid. Even this does not work. Please help

    Code:
    isc.TreeGrid.create({
        ID: "employeeTree",
        width: 500,
        height: 400,
        dataSource: "employees",
        autoFetchData: true,
        showConnectors: true,
        nodeIcon:"icons/16/person.png",
        folderIcon:"icons/16/person.png",
        showOpenIcons:false,
        showDropIcons:false,
        closedIconSuffix:"",
        baseStyle: "noBorderCell",
        fields: [
            {name: "Name"}
        ]
    });
    isc.IButton.create({
        title: "Hello",
        left: 600,
        icon: "icons/16/world.png",
        iconOrientation: "right",
        click: "employeeTree.scrollToBottom ();employeeTree.redraw ();"
    })

    #2
    The component that is actually scrolling is the body subelement, accessible as grid.body. Call scrolling-related methods on that.

    Comment


      #3
      Thanks it worked

      Comment

      Working...
      X