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
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 ();"
})
Comment