Need to reload the sjg:grid on a click of submit button. How to do this? I 
tried the below
 


JSP ------------ Has this

<s:url var="deptSearchResultsUrl" action="grid/deptSearchResultsAJAXAction"/>
 

<sj:submit formIds="deptFormId" href="%{deptSearchResultsUrl}" id="searchId" 
name="search" value="Search" dataType="json" 
onSuccessTopics="onSearchSucessTopics" cssClass="button"/>


 

    <sjg:grid

        id="searchGridId"

        formIds="deptFormId"

        reloadTopics="reloadGrid"

        dataType="json"       

        pager="true"

        gridModel="searchResults"

        rowList="10,15,20"

        rowNum="15"

        rownumbers="true"

        viewrecords="true"

.......

        >

        ..........

</sjg:grid>
 


<script ....>

$(document).ready(function() {

  $.subscribe('onSearchSucessTopics', function(event) {

        ?????Not sure how to trigger reload grid?????

                

        });

});

</script>
                                          

Reply via email to