Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






setGridParam

No Tags
UserPost

22:22
25/10/2009


slavix

New Member

posts 1

Post edited 03:23 – 26/10/2009 by slavix
Post edited 04:26 – 26/10/2009 by slavix
Post edited 04:29 – 26/10/2009 by slavix


Hello,

I am having difficulties setting grid params and reloading an existing jqGrid with custom url.


$("#product").setGridParam({
                    url: '/newurl',
                    page: 1
                }).trigger("reloadGrid");

causes

$("#product").setGridParam is not a function

this is strange because the grid is already instantiated

if I try

$("#product").jqGrid.setGridParam({url:''})

I get 

TypeError: this.each is not a function

running

$('#product')

in firebug displays


03:41
27/10/2009


tony

Sofia, Bulgaria

Moderator

posts 6995

Hello,

Something is wrong into the code. setGridParam is a part of the core grid and it should exists. Do you use iframe?

Regrds

Tony

06:34
27/10/2009


slava

Guest

yes this is very strange.. and no I am not using iframes

03:30
29/10/2009


tony

Sofia, Bulgaria

Moderator

posts 6995

Hello,

Just now I see where is the error – sorry

you should:

$("#product").jqGrid('setGridParam', { url: '/newurl', page: 1}).trigger("reloadGrid");

Regards

Tony

22:14
29/10/2009


Slava

Guest

thanks. that worked

15:18
19/07/2012


longkhi

Danmark

New Member

posts 1

Hi.


I'm just gonna borrow this thread, since I'm having problems with setGridParam as well.


I have added a custom buttom, and whenever that button is clicked, it should call an url.

It works fine at this stage, but the problem occurs when I would like to pass the selected row to the url.


Is it possible to do this?


My code for now is:


jQuery("#adminlist").jqGrid().setGridParam({url : 'gridQueries/resetpassword.php'});

jQuery("#adminlist").trigger("reloadGrid");


Best regards

Kim

No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

26 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9577

Posts: 28742

Membership:

There are 10051 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1157

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (6995 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information