How to add row number to kendo ui grid?

前端 未结 8 1401
花落未央
花落未央 2020-12-15 09:35

I have a kendo ui grid in my page that has some columns. Now I want to add a column to it that shows me row number. How to I do this? Thanks.

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-15 10:09

    YD1m's template did not work for me it treated the variable like a string. So I had to implement it like so:

    columns.Template(@@((long)counter++))
    

提交回复
热议问题