Uncaught TypeError : cannot read property 'replace' of undefined In Grid

后端 未结 5 2193
暖寄归人
暖寄归人 2020-12-10 11:46

I\'m new in using Kendo Grid and Kendo UI . My question is how can i resolve this Error

Uncaught TypeError: Cannot read property \'replace\' of undefined 
         


        
5条回答
  •  执笔经年
    2020-12-10 12:07

    It is important to define an id in the model

    .DataSource(dataSource => dataSource
            .Ajax()
            .PageSize(20)
            .Model(model => model.Id(p => p.id))
        )
    

提交回复
热议问题