Extjs version of ext-4.0.2a today encountered a problem, with parameter query after the page on the bbar point, the parameter did not bring to the background. I remember that I used similar Extjs3 functions before. The Code is as follows: store. on (& quot; beforeload & quot;, function () {Ext. apply (this. baseParams ,... extjs version of ext-4.0.2a today encountered a problem, with parameter query after the page on the bbar point, the parameter did not bring to the background. I remember that I used similar Extjs3 functions before. The Code is as follows: store. on ("" beforeload "", function () {Ext. apply (this. baseParams, {name: _ name, phone_num: _ phone}) ;}); pagingtoolbar page, in store. load ({params: {type: type_combo.getValue ()}) with parameter query. By default, only one page can be queried. When paging to the next page, there is no parameter. The solution is to assign a value to the page parameter before the store is loaded. The method used in Ext3 is: store. on ("" beforeload "", function () {store. baseParams = {type: type_combo.getValue () };}); the above method is no longer effective in Ext4 and should be changed to store. on ("beforeload", function () {Ext. apply (store. proxy. extraParams, {type: type_combo.getValue ()});});
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service