Notice: Undefined index: in /data/phpspider/phplib/misc.function.php on line 226
Java Struts2 jQGrid插件不区分大小写的工具栏搜索_Java_Jsp_Jqgrid_Struts2 - Fatal编程技术网

Java Struts2 jQGrid插件不区分大小写的工具栏搜索

Java Struts2 jQGrid插件不区分大小写的工具栏搜索,java,jsp,jqgrid,struts2,Java,Jsp,Jqgrid,Struts2,我觉得这两个主题非常有用: (第一:), (第二:) 如何在JSP中应用此功能?我找到了解决方案: 这是JSP的响应: <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sj" uri="/struts-jquery-tags"%> <%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%> <div id="prije">

我觉得这两个主题非常有用:

(第一:),
(第二:)

如何在JSP中应用此功能?

我找到了解决方案: 这是JSP的响应:

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>
<div id="prije">Prije</div>


<s:url var="remoteurl" action="jsontable" />

<sjg:grid id="gridtableID" 

    caption="Primjer JSON TABELE" 
    dataType="json"
    href="%{remoteurl}" 
    gridModel="gridModel" 
    viewrecords="true"
    pager="true"
    pagerPosition="centar"
    navigator="true"
    navigatorSearch="true"
    filter="true"
    filterOptions="{stringResult:true}"
    loadonce="true"

     >

    <sjg:gridColumn name="id"
        index="id" title="ID" 
        formatter="integer"
        search="false"
        searchoptions="{sopt:['cn','eq','ne','bw','bn','ew','en','nc']}"
        editable="false" />
    <sjg:gridColumn name="name" index="name" title="Name" sortable="true"
        search="true"
        searchoptions="{sopt:['cn','eq','ne','bw','bn','ew','en','nc']}" />
    <sjg:gridColumn name="country" index="country" title="Country"
        search="true"
        searchoptions="{sopt:['cn','eq','ne','bw','bn','ew','en','nc']}"/>
    <sjg:gridColumn name="city" index="city" title="City" search="true"
        searchoptions="{sopt:['cn','eq','ne','bw','bn','ew','en','nc']}" />
    <sjg:gridColumn name="creditLimit" index="creditLimit"
        title="Credit Limit" formatter="currency" search="true"
        searchoptions="{sopt:['cn','eq','ne','bw','bn','ew','en','nc']}"/>

</sjg:grid>

<script>
$(document).ready(function(){
    $("#gridtableID").jqGrid('setGridParam', { ignoreCase: true});
    });
</script>

普里耶
$(文档).ready(函数(){
$(“#gridtableID”).jqGrid('setGridParam',{ignoreCase:true});
});

请将您的工作代码发送给我,工具栏搜索在我的应用程序中不起作用。这适用于我的:$(文档).ready(函数(){$(“#gridtableID”).jqGrid('setGridParam',{ignoreCase:true};});