Help my grid’s remote sorting (remoteSort:true) is not working after moving to Extjs 4
来源:互联网 发布:淘宝厚底鞋 编辑:程序博客网 时间:2024/06/01 19:14
It’s always the little things that seem to catch you by surprise! Here’s a new one that may pop up when migrating your application from extjs3 to extjs4, and it has to do with server side behavior, so it will not be apparent on the front end. It looks like remote sort which used to pass the parameters ‘sort’ and ‘dir’ to the server has been changed to pass the parameters in an array object with the name ‘sort’ just like this instead:
1
[{"property":"field_name","direction":"ASC"}]
If you would like to change the sort call to the same format as Extjs 3 in order to transfer your applications just set the following parameter, simpleSortMode:true, in the proxy of the store and it will revert to the ‘old’ way of passing the parameters.
My sample remotely sorted store
01
Remote_sort_store_example =
new
Ext.data.Store({
02
model: ‘Remote_sort_store_’,
03
remoteSort:
true
,
04
pageSize:50,
05
proxy: {
06
type:
'ajax'
,
07
actionMethods: {
08
create :
'POST'
,
09
read :
'POST'
,
10
update :
'POST'
,
11
destroy:
'POST'
12
},
13
simpleSortMode:
true
,
14
url:
'learnsomethings.com/somethings/'
,
15
reader: {
16
type:
'json'
,
17
root:
'data'
,
18
totalProperty:
'results'
19
}
20
},
21
autoLoad:
false
22
});
- Help my grid’s remote sorting (remoteSort:true) is not working after moving to Extjs 4
- My remote working experience
- Hit Tracking Not Working when Joomla’s Caching Is Enabled: How to Solve
- [Spring MVC] What is my Spring MVC controller not working?
- This result is a forward only result set, calling rewind() after moving forward is not supported
- SVN提交错误:working copy is not up-to-date
- working copy is not up-to-date:SVN
- http://zee.linxsol.com/system-administration/qdevice-eth0-does-not-seem-to-be-presentq-after-moving-
- It is to celebrate my blog's first day
- Why RequestContext is not working?
- devicePolicyManager.lockNow() is not working
- Zend_Db_Table::getDefaultAdapter is not working
- span margin is not working
- 布置Git环境Your working copy is out of date. Try pulling from the remote to get the latest change
- 80 after generation to marry or not to marry is a question
- When the layout is set to FIXED LAYOUT, the VERTICAL ALIGNMENT is not working. As soon as changed to
- 6 Things to Check if your Web Part is Not Working in Kentico CMS
- Spring MVC + AJAX + Jquery ajax callback to success function is not working
- 1 Unix家族系谱图,2 Linux各版本血缘关系
- Android MediaPlayer(2)
- 找到11的n次方十进制表示中1的个数
- android创建sqlite数据库及在SD卡上创建数据库
- INFORMATICA POWERCENTER 介绍
- Help my grid’s remote sorting (remoteSort:true) is not working after moving to Extjs 4
- 常用的数据结构以及算法
- github 简单使用教程
- WebService的开发、发布及调用
- iPad 图标变小而分散 解决方法
- MATLAB如何输出无白边图片的操作方法
- JAVA变量赋值需要注意的细节问题
- 构造函数
- pb中Update Properties的where clause for update/delete 详细介绍