I’m new to dhtmlxGrid and am trying to set up a grid to pull data from a json object. Is there a listing of all events or options that can be called inside dhtmlXGridObject that someone could point me to?
I’m currently able to see my grid with all of my headers but I cannot figure out how to load the data from a json object. I know there is chart.parse(data,”json”) but this will not work with how I’m calling the grid using the following structure:
new dhtmlXGridObject({
columns:[
{ column object 1 },
…
{ column object N }
]
…
});
My code is as follows:
mygrid = new dhtmlXGridObject({
parent:"mygrid_container",
image_path:"imgs/",
columns: [
{ id:"stuid", label: "ID", width:40 },
{ id:"stuname", label: "Name", width:150 },
{ id:"alerts", label: "", width:20 },
{ label: "", width:20 },
{ label: "", width:20 },
{ label: "Owed", width:40 },
{ label: "Sped/504", width:50 },
{ label: "Current YTD Avg", width:60 },
{ label: "Current Term Avg", width:60 }
,{ label:"Journal Entry - Three Summer Experiences", width:110, type:"ed" }
,{ label:"Summer Reading - Book Report #1", width:110, type:"ed" }
,{ label:"Summer Reading - Book Report #2", width:110, type:"ed" }
,{ label:"Weekly Performance Sheet - #1", width:110, type:"ed" }
,{ label:"Journal - Three Top Summer Experiences - Details", width:110, type:"ed" }
,{ label:"Weekly Performance Sheet - #2", width:110, type:"ed" }
,{ label:"Hyperbole Worksheet - #1", width:110, type:"ed" }
,{ label:"Hyperbole Worksheet - #3", width:110, type:"ed" }
,{ label:"Hyperbole Worksheet - #2", width:110, type:"ed" }
,{ label:"Weekly Performance Sheet - #3", width:110, type:"ed" }
,{ label:"Scholastic Scope - 'Flipped' - Worksheet", width:110, type:"ed" }
,{ label:"The Toughest Penguin Alive! - Worksheet on Adjectives", width:110, type:"ed" }
,{ label:"Weekly Performance Sheet - #4", width:110, type:"ed" }
,{ label:"Homonyms and Synonyms Worksheets", width:110, type:"ed" }
,{ label:"Parts of Speech and Compound Words Worksheets", width:110, type:"ed" }
,{ label:"Commas", width:110, type:"ed" }
,{ label:"Weekly Performance 5", width:110, type:"ed" }
,{ label:" Commas/Fingernail", width:110, type:"ed" }
,{ label:"Commas/Football", width:110, type:"ed" }
,{ label:"Commas/General Martin", width:110, type:"ed" }
,{ label:"Commas/Over The River", width:110, type:"ed" }
,{ label:"Using Capitals/A", width:110, type:"ed" }
,{ label:"Using Capitals/B", width:110, type:"ed" }
,{ label:"Commas/ Worksheet 2", width:110, type:"ed" }
,{ label:" Commas/Worksheet 1", width:110, type:"ed" }
,{ label:" Commas/Worksheet 3", width:110, type:"ed" }
,{ label:" Commas/Worksheet 4", width:110, type:"ed" }
,{ label:"Weekly Performance 6", width:110, type:"ed" }
,{ label:"Weekly Performance Sheet 7", width:110, type:"ed" }
,{ label:"Venn Diagram", width:110, type:"ed" }
,{ label:"Weekly Performance 8", width:110, type:"ed" }
,{ label:"Venn Diagram/Mr.Gray/David Farmer", width:110, type:"ed" }
,{ label:"Quiz 1", width:110, type:"ed" }
,{ label:"Quiz 2", width:110, type:"ed" }
,{ label:"Weekly Performance 9", width:110, type:"ed" }
,{ label:"Notebook/ Answers For I Am The Cheese", width:110, type:"ed" }
,{ label:"Venn Diagram/ Movie and Book", width:110, type:"ed" }
],
skin:"dhx_skyblue",
filter:true
});
Thanks.