I need to render a partial view in a view using ajax, but not in page load. I want render this partial when a drop value was changed. This partial should have a model and load a jsTree from model information. When I searched for a solution I found following code.

        url: '/Home/Details',
        contentType: 'application/html; charset=utf-8',
        type: 'GET',
        dataType: 'html'

    }).success(function (result) {
$('#sectionContents').html(result);}).error(function (xhr, status) {

But I need to render a partial with its own model. This code gets html result which generates after a view will be rendered. Can anybody help please?

Related posts

Recent Viewed