Author Topic: refresh issue in the 2.3.0  (Read 6265 times)

daizhixia

  • Newbie
  • *
  • Posts: 5
    • View Profile
refresh issue in the 2.3.0
« on: December 05, 2014, 12:06:14 pm »
I got latest 2.3.0 pro version recently.
however something not working properly when I updated from free version;
the first issue is I can't refresh my data grid anymore.
anytime I have to click page somewhere to render the correct data again;
my page has one refresh button which will get new&refresh data from server side;
everything works fine, load data fine, but can't refresh the page with new data;
oppForecast().init(); this method is to grab the new data from server side;
and this piece of code is working fine in the free version;
can someone help to check ?
is it bug?

    $("#refresh").click(function(){
       $("#grid_json").pqGrid("refreshDataAndView");
        oppForecast().init();

    });

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: refresh issue in the 2.3.0
« Reply #1 on: December 05, 2014, 04:20:13 pm »
you have to call refreshDataAndView method on the grid after assignment of data to dataModel.

There is a similar example here:

http://paramquery.com/pro/demos/filter_local

daizhixia

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: refresh issue in the 2.3.0
« Reply #2 on: December 06, 2014, 01:10:37 am »
now refresh seems like working
but when I refresh by using dataAndView, the css style changed,

and I can see an additional text put shows at the bottom if I click one of the cell.

see my attachment please

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: refresh issue in the 2.3.0
« Reply #3 on: December 06, 2014, 08:55:34 am »
you need to replace all old base version files with new SDK files and clear your browser cache.

daizhixia

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: refresh issue in the 2.3.0
« Reply #4 on: December 06, 2014, 09:11:03 am »
yes, I use the new files from 2.3.0

does it require any specific jquery version, jquery UI version?

daizhixia

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: refresh issue in the 2.3.0
« Reply #5 on: December 06, 2014, 09:17:54 am »
I did check all the files , and clear the browser cache, the issue is still the same;
also once I refresh my page, the grid lost some events

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: refresh issue in the 2.3.0
« Reply #6 on: December 06, 2014, 01:07:27 pm »
There are differences in API between base and Pro version.

To begin with, I hope you have been through this topic: http://paramquery.com/pro/tutorial#topic-migration

Could you share a url or a jsfiddle so that I can see what's going on.

you may take this as a starting point:

http://jsfiddle.net/b6b710mz/9/
« Last Edit: December 06, 2014, 01:11:48 pm by paramquery »