Horje
row append and calculation in jquery datatable Code Example
row append and calculation in jquery datatable
Plain text12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364$(document).ready(function() {      loadMyItems();  });    function loadMyItems() {        var siteUrl = _spPageContextInfo.siteAbsoluteUrl;    var oDataUrl = siteUrl + "link";      $.ajax({          url: oDataUrl,          type: "GET",          dataType: "json",          headers: {              "accept": "application/json;odata=verbose"          },          success: mySuccHandler,          error: myErrHandler      });  }      function mySuccHandler(data) {      try {            var dataTableExample = $('#table_id').DataTable();          if (dataTableExample != 'undefined') {              dataTableExample.destroy();          }            dataTableExample = $('#table_id').DataTable({            scrollY: 770,             "order": [[ 2, "asc" ]],             "pageLength": 50,            "aaData": data.d.results,              "aoColumns": [{                  "mData": "EditLink",                "render": function(EditLink) {                    return '<button onclick="EditItemWithCheckoutAlert(event, \''+EditLink+'\');">Edit</button>';               }            }, {                  "mData": "Title"            }, {                  "mData": "StartDate"            }, {                  "mData": "Planned_x0020_Date"             }, {                  "mData": "Days_x0020_of_x0020_delay"              }, {                  "mData": "Days_x0020_Left"              }, {                  "mData": "Reason_x0020_for_x0020_Late_x002",                "render": function( data, type, full, meta) {                    if(!data){var returnText = "";}                    else {var returnText = data.results;}                    return returnText;                    }              }]        });     } catch (e) {          alert(e.message);      }  }    function myErrHandler(data, errCode, errMessage) {      alert("Error: " + errMessage);  }




Javascript

Related
how would you select the heading with id =”jantoos” using javascript? Code Example how would you select the heading with id =”jantoos” using javascript? Code Example
how to input struct into parameter in remix Code Example how to input struct into parameter in remix Code Example
react navigation tabs up in keyboard Code Example react navigation tabs up in keyboard Code Example
Changes not staged for commit: modified: ../package.json Code Example Changes not staged for commit: modified: ../package.json Code Example
select div with specific class not all divs jquery Code Example select div with specific class not all divs jquery Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7