ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: daizhixia on December 05, 2014, 12:06:14 pm

Title: refresh issue in the 2.3.0
Post by: daizhixia 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();

    });
Title: Re: refresh issue in the 2.3.0
Post by: paramvir 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
Title: Re: refresh issue in the 2.3.0
Post by: daizhixia 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(http://)
Title: Re: refresh issue in the 2.3.0
Post by: paramvir 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.
Title: Re: refresh issue in the 2.3.0
Post by: daizhixia 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?
Title: Re: refresh issue in the 2.3.0
Post by: daizhixia 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
Title: Re: refresh issue in the 2.3.0
Post by: paramvir 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/