function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
faizan nusratfaizan nusrat 

how to show Contact records in active widget grid using javascript

how to show Contact records in active widget grid using javascript
sandeep@Salesforcesandeep@Salesforce
Here you may get some sample code: 
http://v2.activewidgets.com/general.intro/
var myCells = [
    ["MSFT","Microsoft Corporation", "314,571.156"],
    ["ORCL", "Oracle Corporation", "62,615.266"]
];
//Here you may fetch contacts from controller as below 

var myCells = '{!contactlist}';
var myHeaders = ["Ticker", "Company Name", "Market Cap."];

// create grid object
var obj = new AW.UI.Grid;

// assign cells and headers text
obj.setCellText(myCells);
obj.setHeaderText(myHeaders);

// set number of columns/rows
obj.setColumnCount(3);
obj.setRowCount(2);

// write grid to the page
document.write(obj);

Thanks
Sandeep Singhal