text: ﻿
  $(document).ready(function () {
      LoadMobileAlertLog();
      LoadPndMobileAlertLog();
  });
  
  function LoadMobileAlertLog() {
      dataSource = new kendo.data.DataSource({
          transport: {
              read: {
                  url: urlgetMobileAlertLog,
  
                  dataType: "json"
              },
              parameterMap: function (options, operation) {
                  if (operation !== "read") {
  
                      return ({});
                  }
  
              }
          },
          batch: true,
          pageSize: 50,
          schema: {
              model: {
                  fields: {
                      Time: { editable: false, nullable: false, type: "string" },
                      Msg: { editable: false, nullable: false, type: "string" },
                      To: { editable: false, nullable: false, type: "string" }
                  }
              }
          }
      });
      $("#GridMobileAltLog").kendoGrid({
          dataSource: dataSource,
          navigatable: true,
          selectable: "row",
          sortable: true,
          resizable: true,
          locked: true,
          pageable: true,
          height: 300,
          columns: [
               { field: "Time", title: "Time", width: "20%" },
                       { field: "Msg", title: "Message", width: "50%" },
                       { field: "To", title: "User", width: "30%" }
          ],
          editable: false
      });
  }
  
  function LoadPndMobileAlertLog() {
      dataSource = new kendo.data.DataSource({
          transport: {
              read: {
                  url: urlgetPndMobileAlertLog,
  
                  dataType: "json"
              },
              parameterMap: function (options, operation) {
                  if (operation !== "read") {
  
                      return ({});
                  }
  
              }
          },
          batch: true,
          pageSize: 50,
          schema: {
              model: {
                  fields: {
                      Time: { editable: false, nullable: false, type: "string" },
                      Msg: { editable: false, nullable: false, type: "string" },
                      To: { editable: false, nullable: false, type: "string" }
                  }
              }
          }
      });
      $("#GridMobilePndAltLog").kendoGrid({
          dataSource: dataSource,
          navigatable: true,
          selectable: "row",
          sortable: true,
          pageable: {
              refresh: true,
              pageSizes: true,
              buttonCount: 5
          },
          resizable: true,
          locked: true,
          pageable: true,
          height: 300,
          columns: [
              { field: "Time", title: "Date/Time", width: "20%" },
                       { field: "Msg", title: "Message", width: "50%" },
                       { field: "To", title: "Email Address", width: "30%" }
          ],
          editable: false
      });
  }
  