1

my telerik grid fill via ajax. My delete method:

    [HttpPost]
    [GridAction]
    public ActionResult _AjaxModelDelete(CarModel obj)
    {
        Model m = dm.GetModelById(obj.Id);
        dm.DeleteModel(m);
        List<Model> res = dm.GetModelsByVendorId(m.VendorId).ToList();
        return View(new GridModel<CarModel>
        {
            Data = res.Select(x => new CarModel { Id = x.Id, Name = x.Name })
        });
    }

Grid have client side event onDelete but I need reload grid on event onDeleted. how solve this problem?

1 Answer 1

1

You could try calling the ajaxRequest method to initiate a refresh of the grid data.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.