I am using MVC knockout, with View Model on single js file, on a button click i am loading a partial view that is already having data-bind="text: type"
done. but the view model is not able to bind the elements as it is in partial view and its is loading on a button click...is there any way that we can using bind data after pager render.
Check code below to load partial view and get data for partial view:-
$('#btnCreateTask').click(function () {
var url = getAppPath() + 'Home/CreateTask';
$('#midsection').load(url);
var url = getAppPath() + 'Task/GetTaskFormDetails';
$.ajax({
url: url,
cache: false,
type: 'POST',
contentType: 'application/json; charset=utf-8',
data: {},
success: function (data) {
viewModel.task.TaskType.push.apply(viewModel.task.TaskType, data["objType"]);