uid undefined in row template

2 posts, 0 answers
  1. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 26 Oct 2012 Link to this post

    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
  2. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 26 Oct 2012 Link to this post

    Hi All:

    Solved it.  I had commented out the rowTemplate declaration.

    Phil
  3. Kendo UI is VS 2017 Ready
Back to Top