I m trying to load a page using $.ajax()
.
I have view person with the actions: Index, Create, Delete.
The page Create, has a Grid of Telerik MVC.
The problem occurs when I m on page Index and load the page Create with an ajax call to replace the contents of the current page.
The page is fully loaded but the grid does not work, $( #gridname ).data( tGrid )
returns undefined.
刺绣代码的一个例子。
$.ajax({
url: /Person/Create ,
contentType: application/html; charset=utf-8 ,
type: GET ,
dataType: html ,
cache: false,
success: function (data) {
$( #main ).html($(data).fadeIn(fade));
}
});
谢 谢 s