This question is locked. New answers and comments are not allowed.
[GridAction(EnableCustomBinding = true)]public ActionResult DeleteFile(GridState state, int id){ //Removed code for simplicity if (reply != null && reply.Success) { return Json("", "text/plain"); } return Json("");}This action gets fired when deleting a row from the grid, everything is ajax databound. The Grid tries to rebind but when debugging, telerik.common.min.js complains: "Unable to get value of the property 'length': object is null or undefined".
I've been trying to figure out where this is coming from, the Grid itself isn't throwing any errors so I'm a bit lost at what I'm doing wrong?
My only way around this so far is in the grid's "onComplete" event... I check if the name is "delete" if so rebind the Grid manually. I still get the script error, but it "works". Hopefully I'm just missing something simple?