the following simple piece of code should show an alert when a node is clicked
Code:
preferencesData = [
{ preferenceName:"Application" },
{ preferenceName:"Alerts & Sounds" },
{ preferenceName:"Advanced" }
]
isc.ListGrid.create({
ID: "preferencesList",
data: preferencesData,
nodeClick: function () { alert(1); },
showHeader:false,
leaveScrollbarGap:false,
selectionType:"single",
width:500, height:"100%",
alternateRecordStyles:false,
showAllRecords:true,
fields:[
{name:"preferenceName", title:"Preference"}
]
});
Comment