grid

grid

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  78 Posts :: 0 Stories :: 62 Comments :: 0 Trackbacks
表格:过滤行
                
                     

参考示例行过滤
           

一:定义过滤器         

设置表格"showFilter"属性为"true"后,可以在列配置对象上定义过滤器对象:

<div field="name" width="120" headerAlign="center" allowSort="true">姓名
    <!--定义此列的过滤器对象,注意property="filter"-->
    <input id="nameFilter" property="filter" class="mini-textbox" onvaluechanged="onNameFilterChanged" style="width:100%;" />
</div>   
           

二:处理"valuechanged"事件      

在"onvaluechanged"值变化时,会自动调用一个过滤方法onNameFilterChanged。此方法由开发者实现,如下:

function onNameFilterChanged(e) {
    var textbox = e.sender;
    var key = textbox.getValue();

    grid.load({ key: key });
}
posted on 2012-11-08 15:46 nikofan 阅读(4770) 评论(10)  编辑  收藏

Feedback

# re: jQuery MiniUI 开发教程 表格控件 表格:过滤行(七) 2012-11-09 08:48 121212
<servlet>

<description>Dispatcher Servlet for EXTDispatcher</description>

<servlet-name>EXTDispatcher</servlet-name>

<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

<load-on-startup>1</load-on-startup>

</servlet>



<servlet-mapping>

<servlet-name>EXTDispatcher</servlet-name>

<url-pattern>/hwdispatcher/*</url-pattern>

</servlet-mapping>

  回复  更多评论
  

# re: jQuery MiniUI 开发教程 表格控件 表格:过滤行(七) 2012-11-09 08:55 121212
<?xml version="1.0" encoding="UTF-8"?>
<context:annotation-config />

<bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>

<context:component-scan base-package="ext.xxx.part" />



<bean id="extDirectSpringConfiguration" class="ch.ralscha.extdirectspring.controller.Configuration"

p:sendExceptionMessage="true"

p:sendStacktrace="true">

<property name="exceptionToMessage">

<map>

<entry key="java.lang.IllegalArgumentException"

value="illegal argument"/>

<entry key="org.springframework.beans.factory.NoSuchBeanDefinitionException">

<null/>

</entry>

</map>

</property>

</bean>

<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">

<property name="prefix" value="/WEB-INF/jsp/huawei/" />

<property name="suffix" value=".jsp" />

</bean>

<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver" p:defaultEncoding="utf-8" >

<property name="maxInMemorySize" value="10240" />

</bean>

<mvc:annotation-driven validator="validator" />


<!-- Creates the JSR-303 Validator -->

<bean id="aggregateResourceBundleLocator" class="org.hibernate.validator.resourceloading.AggregateResourceBundleLocator">

<constructor-arg>

<list>

<value>ext.huawei.iris.message.hw_workflow</value>

</list>

</constructor-arg>

</bean>

<bean id="RBMessageInterpolator" class="org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator">

<constructor-arg ref="aggregateResourceBundleLocator"/>

</bean>

<bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean">

<property name="messageInterpolator" ref="RBMessageInterpolator"/>

</bean>

<!-- Changes the locale when a 'locale' request parameter is sent -->

<bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"/>

<bean id="velocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean">

<property name="velocityProperties">

<value>

resource.loader=class

class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader

input.encoding=UTF-8

output.encoding=UTF-8

default.contentType=text/html;charset=UTF-8

</value>

</property>

</bean>

</beans>  回复  更多评论
  

# re: jQuery MiniUI 开发教程 表格控件 表格:过滤行(七)[未登录] 2012-11-21 15:12 1
1.Apache配置
备份Apache\conf\extra\app-Windchill-Auth.conf,然后打开编辑,在最后一行添加
<LocationMatch ^/+Windchill/+hwdispatcher(;.*)?>
AuthzLDAPAuthoritative off
AuthName "Windchill"
AuthType Basic
AuthBasicProvider Windchill-EnterpriseLdap Windchill-AdministrativeLdap
require valid-user
</LocationMatch>

备份Apache\conf\extra\app-Windchill-AJP.conf,然后打开编辑,
将原文件中该内容替换为以下内容:
<IfModule mod_proxy_ajp.c>
# ProxyPassMatch ^(/Windchill/((?i).*\.jsp(.*)|servlet/.*|go/.*|(?i).*\.do(.*)))$ balancer://ajpWorker$1 nocanon
ProxyPassMatch ^(/Windchill/((?i).*\.jsp(.*)|servlet/.*|.*\.jar|gwt(/.*)?/servlet/.*|ptc1/.*|app|app/.*|hwdispatcher/.*))$ balancer://ajpWorker$1 nocanon
</IfModule>

2.配置web.xml
备份Windchill\codebase\WEB-INF\web.xml
在servlet配置后增加
<!-- hw Iris-->
<servlet>
<description>Ext Dispatcher Servlet for Iris</description>
<servlet-name>ExtDispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
在servlet-mapping后增加
<!-- hw Iris-->
<servlet-mapping>
<servlet-name>ExtDispatcher</servlet-name>
<url-pattern>/hwdispatcher/*</url-pattern>
</servlet-mapping>


4.备份WEB-INF/lib
删lib包下的org.spring.* 的jar包
删除lib下的
jackson-core-asl-1.8.4.jar,
jackson-mapper-asl-1.9.1.jar
拷贝Spring3.0.4_Release.jar 包到WEB-INF/lib包下。
  回复  更多评论
  

# re: jQuery MiniUI 开发教程 表格控件 表格:过滤行(七) 2012-11-26 11:47 212
httpd.conf内
AddHandler type-map var 注释取消

Include conf/extra/additions.conf前插入下面配置。
ExpiresActive on
ExpiresByType image/gif "access plus 30 days"
ExpiresByType image/png "access plus 30 days"
ExpiresByType image/jpeg "access plus 30 days"

<IfModule mod_deflate.c>
DeflateCompressionLevel 9
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php application/javascript
</IfModule>

app-Windchill-Auth.conf文件内

<LocationMatch ^/+Windchill/+hwdispatcher(;.*)?>
AuthzLDAPAuthoritative off
AuthName "Windchill"
AuthType Basic
AuthBasicProvider Windchill-EnterpriseLdap Windchill-AdministrativeLdap
require valid-user
</LocationMatch>

app-Windchill-AJP.conf 文件内增加红色部分
# Delegate specific web app requests to Tomcat by request URL

<IfModule mod_jk.c>
JkMount /Windchill/*.jsp ajpWorker
JkMount /Windchill/*.jspx ajpWorker
JkMount /Windchill/*.jspf ajpWorker

JkMount /Windchill/*.jsp/* ajpWorker
JkMount /Windchill/*.jspx/* ajpWorker
JkMount /Windchill/*.jspf/* ajpWorker

JkMount /Windchill/*.jar ajpWorker

JkMount /Windchill/servlet/* ajpWorker
JkMount /Windchill/gwt/servlet/* ajpWorker
JkMount /Windchill/gwt/*/servlet/* ajpWorker
JkMount /Windchill/ptc1/* ajpWorker
JkMount /Windchill/app/* ajpWorker
JkMount /Windchill/app ajpWorker
JkMount /Windchill/hwdispatcher/* ajpWorker
</IfModule>
(3)Site.conf配置

<Property name="iris.cfg.home" overridable="true"
targetFile="codebase/wt.properties"
value="$(wt.home)/codebase/ext/huawei/iris/cfg"/>
<Property name="iris.cfg.email" overridable="true"
targetFile="codebase/wt.properties"
value="$(iris.cfg.home)/emailTemplate"/>
<Property name="iris.cfg.rooturl" overridable="true"
targetFile="codebase/wt.properties"
value="hwdispatcher/iris/"/>
<Property name="iris.cfg.extjs.home" overridable="true"
targetFile="codebase/wt.properties"
value="$(wt.home)/codebase/navigator/resources/extjs/huawei/"/>
  回复  更多评论
  

# re: jQuery MiniUI 开发教程 表格控件 表格:过滤行(七)[未登录] 2012-11-26 11:54 1
<script type="text/javascript" src="resources/ext-tpdm/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="resources/ext-tpdm/ext-all-debug.js"></script>
<script type="text/javascript" src="/Windchill/dispatcher/api.js?group=workspace,admintools"></script>  回复  更多评论
  

# re: jQuery MiniUI 开发教程 表格控件 表格:过滤行(七) 2012-11-26 12:08 121
<script type="text/javascript" src="resources/ext-tpdm/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="resources/ext-tpdm/ext-all-debug.js"></script>
<script type="text/javascript" src="/Windchill/dispatcher/api.js?group=iris,workspace,admintools">
</script>
@ExtDirectMethod(value = ExtDirectMethodType.STORE_READ, group = "part")
@RequestMapping(value = "/getUsageLinkFromFile", method = RequestMethod.POST)  回复  更多评论
  

# re: jQuery MiniUI 开发教程 表格控件 表格:过滤行(七) 2012-11-26 12:13 23
org.springframework-3.0.4.RELEASE.jar
org.springframework.beans-3.0.4.RELEASE.jar  回复  更多评论
  

# re: jQuery MiniUI 开发教程 表格控件 表格:过滤行(七)[未登录] 2012-11-26 14:21 1
<beans xmlns="replacewww.springframework.org/schema/beans"

xmlns:mvc="replacewww.springframework.org/schema/mvc"

xmlns:xsi="replacewww.w3.org/2001/XMLSchema-instance" xmlns:p="replacewww.springframework.org/schema/p"

xmlns:context="replacewww.springframework.org/schema/context"

xsi:schemaLocation="replacewww.springframework.org/schema/beans

replacewww.springframework.org/schema/beans/spring-beans-3.0.xsd

replacewww.springframework.org/schema/aop replacewww.springframework.org/schema/aop/spring-aop-3.0.xsd

replacewww.springframework.org/schema/tx replacewww.springframework.org/schema/tx/spring-tx-3.0.xsd

replacewww.springframework.org/schema/mvc

replacewww.springframework.org/schema/mvc/spring-mvc-3.0.xsd

replacewww.springframework.org/schema/context replacewww.springframework.org/schema/context/spring-context-3.0.xsd">

<context:annotation-config />

<bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>
  回复  更多评论
  

# re: jQuery MiniUI 开发教程 表格控件 表格:过滤行(七)[未登录] 2012-11-26 14:23 1
<context:component-scan base-package="ch.ralscha.extdirectspring" />
  回复  更多评论
  

# re: jQuery MiniUI 开发教程 表格控件 表格:过滤行(七) 2013-05-10 15:14 对减肥空间的撒
啦啦啦啦啦  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: