Greetings,
I'm using 70rC pro and passing a string to treegrid.setViewState doesn't seem to cause anything to happen. I've watched the developer console thinking I would see something, but nothing. So then I passed in a bogus string, expecting to see a parse error in the dev console, but nothing. I'm using the patch described in an earlier post for the header columns on treegrids, but if I remove that patch, that doesn't seem to help anything either. Any clues?
I'm using 70rC pro and passing a string to treegrid.setViewState doesn't seem to cause anything to happen. I've watched the developer console thinking I would see something, but nothing. So then I passed in a bogus string, expecting to see a parse error in the dev console, but nothing. I'm using the patch described in an earlier post for the header columns on treegrids, but if I remove that patch, that doesn't seem to help anything either. Any clues?
Code:
isc.TreeGrid.create({ indentSize:2, cellHeight: 30, showConnectors:false, animateFolders:false, cellPadding:0, iconSize:1, nodeIcon:"[SKIN]transparent_spacer.gif", dataSource:GlobalNavDataSource, leaveScrollbarGap:false, showHeader:false, showOpenIcons:false, showClosedIcons:false, loadingDataMessage:"Loading menu...", loadDataOnDemand:false, showHeaderContextMenu:false, autoFitData:"vertical", autoFitMaxRecords:1000, autoFitMaxHeight:1000, ID:"CITreeGrid", height:100, width:panelWidth, overflow:"visible", autoFetchData:true, initialCriteria: {panel: 2}, autoDraw:false, cellClick: function (record, rowNum, colNum) { eval(record.target_page_href); } }) //doesn't generate an error CITreeGrid.setViewState("sfsdf"); //actual test produces no results var test = ({ selected:"[\r]", field:"[\r {\r name:\"nodeTitle\", \r width:null\r }\r]", sort:"({\r fieldName:null, \r sortDir:true\r})", open:"[\r \"/7/8\", \r \"/7/17/18\", \r \"/7/17\", \r \"/7\", \r \"/\"\r]" }); CITreeGrid.setViewState(test);
Comment