This is a migrated thread and some comments may be shown as answers.

[Solved] Refreshing Telerik MVC grid and get latest data from controller

0 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
nitin
Top achievements
Rank 1
nitin asked on 14 Nov 2011, 01:32 PM
I have a grid in parentview which i am opening a popup on edit click.
In Popup i again have a grid. Now i want to refresh the Popup grid which i click on a button in popup.

This is the code i have written

In Parent View
 $("body").delegate("#tr", "click", function () {
                $.ajax({
                    url: '@Url.Action("Edit1", "Home")',
                    type: 'GET',
                    dataType: 'JSON',
                    data: { groupId: 1, scData: 4 },
                    success: function () { alert("hello"); },
                    error: function () { alert("error"); }
                });
            });

In Popup View
@(Html.Telerik().Grid(Model.Friends)
        .Name("Grid")
        .DataBinding(db => db.Ajax().Select("Edit1", "Home"))
        .Pageable()
    )

Data is not changing, controller function is called when i click the button in popup but it is does not refreshes the grid in popup.
Tags
Grid
Asked by
nitin
Top achievements
Rank 1
Share this question
or