free-jqgrid / jqGrid

jQuery grid plugin
https://github.com/free-jqgrid/jqGrid
Other
478 stars 196 forks source link

refresh button not refreshing data from database on listing of grid while reload page it display updated value #466

Open bhaveshevolve opened 5 years ago

bhaveshevolve commented 5 years ago

refresh button not refreshing data from database on listing of grid while reload page it display updated value from database.

this problem occurs only when we displaying field value from other table and select formater. on edit it display proper value while on listing it not display updated value from database.

OlegKi commented 5 years ago

Sorry, but I can't help you because you don't send enough information, which describes what you do and how you use jqGrid. Which datatype you use? Do you use loadonce: true or not? and so on

Refresh button reloads local data to remove previously applied filter or to load the data from the server depend on the options, which you use. If you use loadonce: true and you want that Refresh button reload the data from the server then you can add the following parameter to jqGrid:

navOptions: { reloadGridOptions: { fromServer: true } }

See UPDATED part of the answer and another one