This question is locked. New answers and comments are not allowed.
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.
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.