Extjs 4远程过滤器存储的(<)大于(>) [英] Extjs 4 remote filter store smaller (<) bigger (>) than

查看:64
本文介绍了Extjs 4远程过滤器存储的(<)大于(>)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以远程过滤小于和大于的过滤器?我知道如何在php和mysql中处理此问题,但我不知道如何在extjs 4商店中设置此类过滤器.

Is it possible to remote filter smaller than and bigger than? I know how to handle this in php and mysql but I don't know how to set such a filter in a extjs 4 store.

推荐答案

开箱即用4.1,否.

您将需要覆盖负责的 provider 代理,原因是当前仅提交属性值对( Ext.util.过滤器完全不支持任何比较器进行remotesort.因此,您必须实现自己的实现,并确保商店不支持本地过滤(原因是不起作用).

You will need to overwrite the responsible provider proxy for that cause currently only property-value pairs get submitted (responsible function). The other point is that the Ext.util.Filter don't support any comparator for remotesort at all. So you have to implement your own and ensure that the store don't support local filtering (cause that won't work).

作为工作区,您可以将较小/较大的值与编码后的字符串一起提交,然后在服务器端将其减去.这只会导致本地过滤器无法获得结果.

As a workarround you can commit the smaller/bigger along with the value as encoded string and substract the it then on the serverside. This would just cause a local filter to get no results.

这篇关于Extjs 4远程过滤器存储的(<)大于(>)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆