Forum


08:11

03/02/2009

Hi Tony
After the first time I call delGridRow the options data is retained and subsequent calls use the same url and caption data which I change depending upon the currently selected row. I am using jqGrid 3.3.1 and jQuery 1.3.1. Is there some way I can get round this problem. Also is there some way I can display a dialog the same as the grid does for delete/add for some other function I have just so that I can keep the display visually consistant.
Thanks
11:36

Moderators
30/10/2007

Hello,
I will check for url, but how do you change the caption dynamically?
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
07:36

22/06/2009

Hello.
I am having this problem too. I am using delGridRow and setting a value in my url dynamically:
})
.
navGrid(
"##pager",{view: false, refresh: false, edit:false,add:false,del:false,search:false}).navButtonAdd('##pager'
,{
caption
:"Delete", buttonimg:"../core/javascript/themes/basic/images/row_delete.gif", onClickButton: function
(){
var gr = selectedRow;
var gs = $('##list').getCell(gr,'seq'
);
alert
(gs);
if( gr != 0
) {
$(
"##list").delGridRow(gr,{modal:"false", delData:{Delete:"true"}, url:'../public/JQueryGrid.cfc?method=deleteAnswer&ans_id=#ans_id#&seq='+
gs});
}
else
{
alert("Please Select Row to delete!"
);
};
}, position
:
"last"
})
});
I am setting gs to a cell value, then adding this to my url. This works for the first deletion, but subsequent calls all pass the same gs value. The alert(gs) shows the correct value each time.
How can I edit this url parameter so that it passes the correct value each time?
Many, many thanks for this excellent plug-in.
Jay
02:50

Moderators
30/10/2007

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
53 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66