Can I loop the "Columns" on a particular cell
Can I loop the "Columns" on a particular cell

I was wanting to do something like this when returning my object to the array.
"columns": [
{"data": "TreeNodeId" },
for(i=0; i < result.length; i++)
{
{"data": "DailyHours"}
}
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I'm not quite sure what your goal is here - your above code is not valid Javascript. Are you trying to build an array with objects in it? If so, I would suggest building the array before you initialise the table and then assign the resulting array to
columns
.Allan
Yeah I was trying to pseudo code what I was attempting to figure out. I ended up having to do it in my code and return it.