this.store = Ext.create('Ext.data.Store', {autoSync:true,model:this.model,addCondition:function (key, value) {this.proxy.extraParams[key] = value;return this;},sorters:[{property:'NAME',direction:'ASC'}],proxy:{type:'rest',extraParams:{model:this.model},url:document.head.baseURI + 'rest',/*api:{ //пробовал и это.read:document.head.baseURI + 'rest',create:document.head.baseURI + 'rest',destroy:document.head.baseURI + 'restd',update:document.head.baseURI + 'rest'},*/reader: {type: 'json',root: 'data'},writer: {type: 'json',encode: true,root: 'data'},actionMethods:{create: "POST",destroy: "DELETE",read: "GET",update: "PUT"}},});
clientgrid.store.remove(selection);
О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫!:)ExtJS 4.
О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫. О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫. О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ rest store, О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫. Store О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ json-О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫ О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ (О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫) О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ remove. О©╫О©╫О©╫ О©╫О©╫О©╫:О©╫
О©╫ О©╫ О©╫ О©╫ this.store = Ext.create('Ext.data.Store', {О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ autoSync:true,
О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ model:this.model,
О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ addCondition:function (key, value) {О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ this.proxy.extraParams[key] = value;О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ return this;О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ },О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ sorters:[О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ {О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ property:'NAME',О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ direction:'ASC'О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ }О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ ],О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ proxy:{
О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫О©╫О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ type:'rest',О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ extraParams:{О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ model:this.modelО©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ },О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ url:document.head.baseURI + 'rest',О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ /*api:{ О©╫ //О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫.О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ read:document.head.baseURI + 'rest',О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ create:document.head.baseURI + 'rest',О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ destroy:document.head.baseURI + 'restd',О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ update:document.head.baseURI + 'rest'О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ },*/О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ reader: {О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ type: 'json',О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ root: 'data'
О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ },О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ writer: {О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ type: 'json',О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ encode: true,О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ root: 'data'О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ },О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ actionMethods:{О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ create: "POST",О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ destroy: "DELETE",О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ read: "GET",О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ update: "PUT"
О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ }
О©╫ О©╫ О©╫ О©╫ О©╫ О©╫ },О©╫ О©╫ О©╫ О©╫ });
О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫. О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫. О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ listeners О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫ store. О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ ajax О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫О©╫, О©╫ О©╫О©╫О©╫О©╫. О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫. autoSync О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫. О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ api О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫. О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫. О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫:О©╫
clientgrid.store.remove(selection);
О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫?О©╫--
О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ ruextjs.
О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ https://groups.google.com/d/msg/ruextjs/-/CaS7EHDuR74J.
О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ rue...@googlegroups.com.
О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ ruextjs+u...@googlegroups.com.
О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ http://groups.google.com/group/ruextjs?hl=ru.
-- Best regards, Konstantin Mirin. mailto:konstant...@gmail.com My blog: http://programmersnotes.info/
Если не выйдет - отключите все проверки (validations) и включая по-
одной, найдите источник проблем.
Если autoSync отключен - нужно вызывать метод store.sync().