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

uid undefined in row template

1 Answer 120 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 27 Oct 2012, 02:19 AM
Hi:

I am getting the following error message:
   Microsoft JScript runtime error: 'uid' is undefined
The line in the dynamic code is as follows:
function anonymous(data) {
var o,e=kendo.htmlEncode;with(data){o='<tr data-uid="'+(uid)+'"><td >'+(e(name))+'</td><td >'+(e())+'</td></tr>';}return o;
}
I have an id defined in my model.

Phil

1 Answer, 1 is accepted

Sort by
0
Phil
Top achievements
Rank 2
answered on 27 Oct 2012, 03:08 AM
Hi All:

Solved it.  I had commented out the rowTemplate declaration.

Phil
Tags
Templates
Asked by
Phil
Top achievements
Rank 2
Answers by
Phil
Top achievements
Rank 2
Share this question
or