0

I have bug in struts2-grid-Jquery.Every time grid contains only one record ,grid disappear the record as in hyperlink but if there are more than one record it work fine. My code :

<sjg:grid id="gridtable" 
            dataType="json"
            href="%{remoteurl}" 
            gridModel="allCustomerRequests"
            pager="true"
              page="1"
            rowNum="10"
            pagerButtons="true"
                  pagerInput="true"
            gridview="true"
            rowTotal="true" 
            rownumbers="true" 
            rowList="10,20,30,40,40,50,60,70,80,90,100" 
            viewrecords="true"
            autowidth="true" 
            loadonce="true"
            viewrecords="true"
            > 

            <sjg:gridColumn  name="stRefID" formatter="formatViewLink"
                title="%{getText('COMMON_REFERENCE_NUMBER')}"  />

            <sjg:gridColumn name="requestType.stName" 
                title="%{getText('RequestTracking_Request_Type')}" />
            <sjg:gridColumn name="requestStatus.stStatus" 
                title="%{getText('RequestTracking_Request_Status')}" />

            <sjg:gridColumn name="requestStatus.tsDate" 
                          title="%{getText('DATE')}" 
                          formatoptions="{newformat : 'd/m/Y', 
                          srcformat : 'Y-m-d'}"   formatter="date" />


        </sjg:grid>

Please help me to solve my bug

enter link description here

4

1 回答 1

1

我很确定您在使用 IE 时遇到了这个问题...?

它与网格插件无关,但 IE 在计算高度/宽度时包含滚动条大小的方式。

一种解决方法是height使用<sjg:grid />.

于 2013-05-02T05:32:06.050 回答