ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: cyriljose on August 23, 2018, 06:53:32 pm

Title: It gets automatically sort by first column when using getData
Post by: cyriljose on August 23, 2018, 06:53:32 pm
For Example:
Below is the data order i put in the Grid,
[{"0":"3"},{"0":"2"},{"0":"1"},{"0":"4"},{"0":"7"},{"0":"5"},{"0":"8"},{"0":"9"},{"0":"6"}]

Below is the data order when retrieve data using getData,
[{"0":"1"},{"0":"2"},{"0":"3"},{"0":"4"},{"0":"5"},{"0":"6"},{"0":"7"},{"0":"8"},{"0":"9"}]

i want the same order what i put in the Grid when retrieve data from Grid.
Title: Re: It gets automatically sort by first column when using getData
Post by: paramvir on August 24, 2018, 10:33:44 am
Please use

Code: [Select]
  grid.option('dataModel.data')
Title: Re: It gets automatically sort by first column when using getData
Post by: cyriljose on August 24, 2018, 12:30:29 pm
Now it's working, Thanks for the response admin.