Kendo: Handling Errors in Ajax Data Requests

前端 未结 5 2067
再見小時候
再見小時候 2020-12-17 08:23

Using Kendo UI in MVC4 I have a Grid that makes Ajax calls for data back into the Controller:

<         


        
5条回答
  •  难免孤独
    2020-12-17 08:48

    Found it, Kendo supports it by just adding a Event to the DataSource the JS function to call. That's it.

      .DataSource(dataSource => dataSource
          .Ajax()
          .Events(events => events.Error("onError"))
          .Read(read => read.Action("SearchUser_Read", "Search").Data("parentModel"))
      )
    
    
    

提交回复
热议问题