ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: hyh888 on December 27, 2021, 07:42:09 am

Title: How to add new option or event in grid
Post by: hyh888 on December 27, 2021, 07:42:09 am
To saving code and reduce bugs, I hope to add saveUrl(url to save data) and getUrl(url to get the json data) for grid, and also hope to add inbuild SaveChanges event to grid for saving data with saveUrl.
Would you like to provide help?
Thank you very much.
Title: Re: How to add new option or event in grid
Post by: paramvir on December 31, 2021, 11:48:39 am
All the grid methods reside in $.paramquery.pqGrid.prototype. you can overwrite or add custom methods to it but be careful not to
unintentionally overwrite any private methods of the grid.

There is inbuilt change event in the grid that fires whenever there is a change / addition/ deletion of data in the grid.

https://paramquery.com/pro/api#event-change
Title: Re: How to add new option or event in grid
Post by: hyh888 on December 31, 2021, 04:57:14 pm
Thank you very much for your kindly response. For these days,without your reply, I'm worried about if my idea had intrude your treasure for pqgrid framework . Is there any sample for modifing $.paramquery.pqGrid.prototype, I will study it and feedback the result.
Happy new year!