loadonce:true is preventing grid update
<p>On new page load, the grid is properly loading the data from the database. </p>

<p>Afterward, due to <code>loadonce: true</code> the grid is not reloading the data from the database for add/edit/delete. </p>

<p>To see newly added data in a list I have to refresh the page.</p>

<pre><code>&lt;%@ taglib prefix="s" uri="/struts-tags"%&gt;

  &lt;div class="main-content"&gt;
    &lt;div class="main-content-inner"&gt;
      &lt;div class="breadcrumbs" id="breadcrumbs"&gt;
        &lt;script type="text/javascript"&gt;
          try {
            ace.settings.check('breadcrumbs', 'fixed')
          } catch (e) {}

        &lt;/script&gt;
        &lt;ul class="breadcrumb" id="libreadcrumb"&gt;&lt;/ul&gt;
        &lt;button id="view-fullscreen" style="float: right;height:40px;display:none;" class="ui-state-default white"
          title="Click to View Full Screen"&gt;
&lt;span class="ace-icon fa fullscreen ace-icon fa 2x" style="width:40px;padding:0px;"&gt;
&lt;/span&gt;&lt;/button&gt;
        &lt;button id="cancel-fullscreen" style="float: right;height:40px;display:none;" class="ui-state-default white"
          title=" Click to Exit Full Screen"&gt;
&lt;span class="ace-icon fa resize-small ace-icon fa 2x" style="width:40px;padding:0px;"&gt;
&lt;/span&gt;&lt;/button&gt;
        &lt;span id="nghms_time" style="padding-right:20px; float:right;color:#336CBC;font-weight:bold;"&gt;
&lt;/span&gt;
      &lt;/div&gt;
      &lt;!-- end of breadcrumbs--&gt;
      &lt;div class="page-content"&gt;

        &lt;div class="row"&gt;
          &lt;div id="contentArea" role="main"&gt;
            &lt;s:hidden id="profileid" name="profileid" value="27" theme="simple" /&gt;
            &lt;div id="businessprofiletab" style="width:100%" class="tabbable"&gt;
              &lt;ul id="ulbusinessprofile" class="nav nav-tabs padding-12 tab-color-blue background-blue"&gt;
                &lt;li&gt;&lt;a href="businessDetails"&gt;&lt;span&gt;Business Details&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="businessContacts"&gt;&lt;span&gt;Business Contacts&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                &lt;li class="active"&gt;&lt;a data-toggle="tab" href="communicationEmails"&gt;&lt;span&gt;Communication Emails&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="marketingInfo"&gt;&lt;span&gt;Marketing Info&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="shipLocations"&gt;&lt;span&gt;Ship Locations&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
              &lt;div class="tab-content"&gt;
                &lt;div id="communicationemails" class="tab-pane in active"&gt;

                  &lt;s:form autocomplete="off" id="frmcommunicationemails" name="frmcommunicationemails"
                    action="saveCommunicationEmails" method="post"&gt;

                    &lt;s:hidden id="communicationEmailId" name="communicationEmailId" theme="simple" value="0"
                    /&gt;
                    &lt;table class="ui-widget-content fullwidth"&gt;
                      &lt;tbody&gt;
                        &lt;tr&gt;
                          &lt;td class="width15"&gt;
                            Communication To &lt;em&gt;*&lt;/em&gt;
                          &lt;/td&gt;
                          &lt;td class="width18"&gt;

                            &lt;s:select id="title" name="currentEmail.communicationToId" theme="simple" headerKey=""
                              headerValue="SELECT" list="%{domainTableService.getCommunicationList()}"
                              listKey="communicationListId" listValue="description"
                            /&gt;
                          &lt;/td&gt;
                          &lt;td class="width10"&gt;
                            Email ID &lt;em&gt;*&lt;/em&gt;
                          &lt;/td&gt;
                          &lt;td class="width17"&gt;
                            &lt;s:textfield id="emails" name="currentEmail.communicationEmail" theme="simple" /&gt;
                          &lt;/td&gt;
                          &lt;td class="width17"&gt;
                            &lt;button type="button" id="btnadd_ce" name="btnadd_ce" title="Add Email" class="btn btn-primary"&gt;&lt;i class="ace-icon fa fa-plus"&gt;&lt;/i&gt;&amp;nbsp;Add Email ID
&lt;/button&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                      &lt;/tbody&gt;
                    &lt;/table&gt;
                    &lt;br&gt;

                    &lt;table id="list1"&gt;&lt;/table&gt;
                    &lt;div id="pager1"&gt;&lt;/div&gt;
                    &lt;br&gt;
                    &lt;table id="t_communicationemails"&gt;&lt;/table&gt;
                    &lt;div id="p_communicationemails" class="ui-state-default ui-jqgrid-pager ui-corner-bottom"
                      dir="ltr"&gt;
                    &lt;/div&gt;

                    &lt;table class="fullwidth"&gt;
                      &lt;tbody&gt;
                        &lt;tr&gt;
                          &lt;td width="85%" align="right"&gt;
                            &lt;button type="button" class="btn btn-primary" id="editbtn_ce" name="editbtn_ce"&gt;&lt;i class="ace-icon fa fa-edit"&gt;&lt;/i&gt;&amp;nbsp;&amp;nbsp;Edit Email&lt;/button&gt;&lt;/td&gt;
                          &lt;td width="15%" align="right"&gt;
                            &lt;button type="button" class="btn btn-primary" id="delbtn_ce" name="delbtn_ce"&gt;&lt;i class="ace-icon fa fa-trash"&gt;&lt;/i&gt;&amp;nbsp;&amp;nbsp;Delete Email&lt;/button&gt;
                          &lt;/td&gt;
                        &lt;/tr&gt;
                      &lt;/tbody&gt;
                    &lt;/table&gt;
                    &lt;br&gt;

                    &lt;div align="right"&gt;
                      &lt;s:a action="marketingInfo" name="btnnext" class="btn btn-primary" theme="simple"&gt;
                        &lt;i class="ace-icon fa fa-arrow-right"&gt;&lt;/i&gt;&amp;nbsp;Next&lt;/s:a&gt;
                    &lt;/div&gt;
                    &lt;br&gt;
                  &lt;/s:form&gt;

                  &lt;script&gt;
                    $.jgrid.no_legacy_api = true;
                    $.jgrid.useJSON = true;
                    $(document).ready(function () {

                      $('#rscommunicationemails').dialog({
                        autoOpen: false,
                        title: 'Attention Required',
                        modal: true,
                        buttons: {
                          "Ok": function () {
                            $(this).dialog("close");
                          }
                        }
                      });

                      //Jquery validations ===============
                      $("#frmcommunicationemails").validate({
                        errorClass: "errors",
                        rules: {
                          'currentEmail.communicationToId': "required",
                          'currentEmail.communicationEmail': {
                            required: true,
                            email: true
                          }
                        },
                        messages: {

                          title: "Please Select Value",
                          communicationEmail: {
                            required: "Please provide a password",
                            email: "Please enter Valid Email"
                          }
                        }
                      });

                      //===============

                      jQuery("#t_communicationemails").jqGrid({
                        url: '/Cegnax/customer/communicationEmailsGrid',
                        datatype: 'json',
                        mtype: 'GET',
                        caption: "Emails List",
                        jsonReader: {
                          root: 'gridModel',
                          page: 'page',
                          total: 'total',
                          records: 'records',
                          repeatitems: false,
                          id: '0'
                        },
                        colNames: ['communicationEmailId',
                          'communication To', 'communication Email'
                        ],
                        colModel: [

                          {
                            name: 'communicationEmailId',
                            index: 'communicationEmailId',
                            editable: true,
                            editoptions: {
                              readonly: true
                            },
                            sorttype: 'int',
                            hidden: true
                          }, {
                            name: 'communicationDescription',
                            index: 'communicationDescription',
                            editable: true
                          }, {
                            name: 'communicationEmail',
                            index: 'communicationEmail',
                            editable: true
                          },
                        ],

                        rowNum: 10,
                        rowList: [10, 20, 30],
                        rownumbers: true,
                        pager: '#p_communicationemails',
                        sortname: 'communicationEmailId',
                        height: 250,
                        viewrecords: true,
                        sortorder: "desc",
                        autoWidth: true,
                        altRows: true,
                        loadonce: true,

                        loadComplete: function () {
                          var table = this;
                          setTimeout(function () {

                            //  updateActionIcons(table);
                            updatePagerIcons(table);
                            //enableTooltips(table);
                            $("#t_communicationemails").jqGrid(
                              'setGridWidth', $(".page-content")
                              .width());
                          }, 0);
                        },

                      });

                      $("#t_communicationemails").jqGrid('setGridWidth', $(
                        ".page-content").width());

                      jQuery("#t_communicationemails").jqGrid('navGrid',
                        '#p_communicationemails', {
                          add: false,
                          edit: false,
                          del: false,
                          search: false,
                          view: true,
                          addtext: "Add",
                          addtitle: "Add Communication Emails",
                          edittext: "Edit",
                          edittitle: "Edit Communication Emails",
                          searchtext: "Search",
                          searchtitle: "Search Communication Emails",
                          viewtext: "View",
                          viewtitle: "View Communication Emails",
                          refreshtext: "Refresh",
                          refreshtitle: "Refresh Communication Emails",
                          refreshicon: 'ace-icon fa fa-refresh green',
                          viewicon: 'ace-icon fa fa-search-plus grey'
                        }, //general options
                        {
                          editCaption: "Edit Communication Emails",
                          reloadAfterSubmit: true,
                          width: 500,
                          height: 300,
                          closeAfterEdit: true,

                          afterSubmit: function (response, postdata) {
                            $("#rscommunicationemails").html(response.responseText);
                            $("#rscommunicationemails").dialog('open');
                            return [true, "saved"];
                          }
                        }, //edit
                        {
                          addCaption: "Add New Communication Emails",
                          width: 500,
                          height: 300,
                          closeAfterAdd: true,
                          afterSubmit: function (response, postdata) {
                            $("#rscommunicationemails").html(response.responseText);
                            $("#rscommunicationemails").dialog('open');
                            return [true, "saved"];
                          }
                        }, //add
                        {}, //delete
                        {
                          closeOnEscape: true,
                          caption: "Search Communication Emails",
                          multipleSearch: true,
                          width: 500,
                          height: 200,
                          sopt: ['eq', 'bw']
                            //odata : ['equal', 'not equal']
                        }, //search
                        {
                          closeOnEscape: true,
                          caption: "View Communication Emails",
                          width: 450,
                          height: 200
                        } //view
                      );

                      $(window).triggerHandler('resize.jqGrid'); //trigger window resize to make the grid get the correct size

                      //resize to fit page size
                      $(window).on('resize.jqGrid', function () {
                        $("#t_communicationemails").jqGrid(
                          'setGridWidth', $(".page-content").width());
                      })

                      $(document).on('settings.ace.jqGrid', function (ev,
                        event_name, collapsed) {
                        if (event_name === 'sidebar_collapsed' ||
                          event_name === 'main_container_fixed') {
                          //setTimeout is for webkit only to give time for DOM changes and then redraw!!!
                          setTimeout(function () {
                            $("#t_communicationemails").jqGrid(
                              'setGridWidth', $(".page-content").width()
                            );
                          }, 0);
                        }
                      })

                      $("#btnnext_ce").click(function () {
                        $('.nav-tabs li:eq(3) a').tab('show');
                      });

                      // button submit click
                      $("#btnadd_ce").click(function () {
                        //java script function for ajax call to check whether the values in db or not
                        $('#frmcommunicationemails').submit();
                        // clearvalues_ce();
                      });

                      // orm submit
                      var options = {
                        //target:'saveBusinessContacts',   // target element(s) to be updated with server response 
                        beforeSubmit: showRequest, // pre-submit callback 
                        success: showResponse // post-submit callback 

                      };

                      // bind form using 'ajaxForm' 
                      $('#frmcommunicationemails').ajaxForm(options);

                      // pre-submit callback 
                      function showRequest(formData, jqForm, options) {

                        if ($("#profileid").val() &gt; 0 &amp;&amp; $(
                            "#communicationEmailId").val() &gt; 0) {
                          options.url = options.url +
                            "?oper=edit&amp;profileid=" + $("#profileid").val();

                        } else {
                          options.url = options.url +
                            "?oper=add&amp;profileid=" + $("#profileid").val();

                        }
                        return true;
                      }

                      // post-submit callback 
                      function showResponse(responseText, statusText, xhr,
                        $form) {

                        jQuery("#t_communicationemails").jqGrid().setGridParam({
                          url: 'communicationEmailsGrid?obj=p_communicationemails&amp;profileid=' +
                            $("#profileid").val(),
                          editurl: 'communicationEmailsGrid?obj=p_communicationemails&amp;profileid=' +
                            $("#profileid").val()
                        }).trigger("reloadGrid");
                        clearvalues_ce();
                      }

                      // edit functionality
                      $("#editbtn_ce").click(function () {

                        var id = $("#t_communicationemails").getGridParam(
                          'selrow');

                        if (id == null || id == undefined) {

                          $("#rscommunicationemails").html(
                            '&lt;img src="assets_ace/images/warning.png" height="14px" width="14px"/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Please Select Row to Edit'
                          );
                          $("#rscommunicationemails").dialog('open');
                        } else {
                          var rowData = jQuery('#t_communicationemails')
                            .jqGrid('getRowData', id);
                          loadcommunicationemails(rowData.communicationEmailId);
                          $("#btnadd_ce").html(
                            '&lt;i class="ace-icon fa fa-save"&gt;&lt;/i&gt;&amp;nbsp;&amp;nbspSave Email'
                          );
                        }

                      });

                      $("#delbtn_ce").click(function () {

                        var id = $("#t_communicationemails").getGridParam(
                          'selrow');
                        if (id == null || id == undefined) {

                          $("#rscommunicationemails").html(
                            '&lt;img src="assets_ace/images/warning.png" height="14px" width="14px"/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Please Select Row to Delete'
                          );
                          $("#rscommunicationemails").dialog('open');
                        } else {
                          var rowData = jQuery('#t_communicationemails')
                            .jqGrid('getRowData', id);

                          $.post(
                            '/Cegnax/customer/deleteCommunicationEmail', {
                              "communicationEmailId": rowData.communicationEmailId
                            },
                            function () {
                              $("#rscommunicationemails").html(
                                'Email Deleted Sucessfully');
                              $("#rscommunicationemails").dialog(
                                'open');
                              jQuery("#t_communicationemails").trigger(
                                "reloadGrid");

                            });
                        }
                      });

                      function loadcommunicationemails(communicationEmailId) {
                        $.get('/Cegnax/customer/getCommunicationEmail', {
                          "communicationEmailId": communicationEmailId
                        }, function (data) {

                          $("#communicationEmailId").val(data.communicationEmailId);

                          $("#title").val(data.communicationToId);

                          $("#emails").val(data.communicationEmail);

                        });
                      }

                      function clearvalues_ce() {
                        $("#btnadd_ce").html(
                          '&lt;i class="ace-icon fa fa-plus"&gt;&lt;/i&gt;&amp;nbsp;&amp;nbspAdd Email'
                        );
                        $("#communicationEmailId").val(data.communicationEmailId);
                        $("#title").val('-1');
                        $("#emails").val('');
                      }

                    });
                    //end of script

                  &lt;/script&gt;

                &lt;/div&gt;
              &lt;/div&gt;

            &lt;/div&gt;

          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
</code></pre>