self.jobHistory = ko.observableArray([]); self.history = ko.observable("");
$.getJSON("/api/helpdeskapi/JobHistory/" + ticketEntity.JobId, function (data) { if (data.length > 0) { $.each(data, function (key, val) { self.history ( val); self.jobHistory.push(self.history()); }); } });
<table style= "width:250px; " cellpadding="0" cellspacing="0" data-bind="foreach:jobHistory"> <tbody> <tr></tr> <tr> <td align="left" valign="top" data-bind="text:$data"> </td> </tr> </tbody> </table>
self.jobHistory([]);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)