This is a migrated thread and some comments may be shown as answers.

Grid templates using JS variables

0 Answers 213 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 26 Oct 2012, 04:55 AM
Hi currently I am trying to insert a global javascript object that I have into a template for a column in a grid using a datasource variable as the key.

For example: 

title: columnOfGrid,
template: '#= field1 #, #= field2 #' + jsObject[#= field3 #]

Lets say that field3 = "text"

jsObject = {
"text" : "hello"
};

Why doesn't this work? Is there any way that I can insert the field3 value into the jsObject key selector?

Thanks in advance.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Brian
Top achievements
Rank 1
Share this question
or