Skip to main content

Posts

Showing posts with the label post ajax

ExtJS4 How to POST data in JSON format in Ext.data.store

 Normally ExtJS 4 Data is sent in Url encoded format which in my web service code was not getting accepted. So I tried searching over the internet, but didn't got much help.         So I thought of writing of my own, following is the code which actually converts my required params and send it to webservice in JSON format in POST.      Normally based on your JSON data representation you can modify based  on your need.  in beforeload listeners in grid. store.proxy.jsonData = { /*** Your JSON data here  ***/}; //Source Code Attached function  renderMyGrid(){            Ext.define( 'SampleModel' , {         extend:  'Ext.data.Model' ,         fields: [ 'id' ,  'name' ,  'location' ,  'description' ,  'owner' ] ,         idPro...