ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: 徐雪峰 on July 17, 2020, 09:18:27 am

Title: how to reset data
Post by: 徐雪峰 on July 17, 2020, 09:18:27 am
i get new json data ,and i want to set the new json data to grid.
i don't know how do it?
Title: Re: how to reset data
Post by: paramvir on July 17, 2020, 10:25:04 am
It's done by resetting dataModel.data option followed by call to refreshDataAndView

Code: [Select]
  grid.option( 'dataModel.data', new_json_data );
  grid.refreshDataAndView();
Title: Re: how to reset data
Post by: 徐雪峰 on July 17, 2020, 02:39:05 pm
but my pivot grid didn't show the colGroup on the right way.
Title: Re: how to reset data
Post by: 徐雪峰 on July 18, 2020, 08:11:52 am
i can't refresh the pivot group when my json data changed. but i refreshed the pivot grid by myself js method.