Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
delGridrow options data
14/02/2009
08:11
Avatar
PeterB
Member
Members
Forum Posts: 8
Member Since:
03/02/2009
sp_UserOfflineSmall Offline

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

16/02/2009
11:36
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

22/06/2009
07:36
Avatar
JaySab
Member
Members
Forum Posts: 10
Member Since:
22/06/2009
sp_UserOfflineSmall Offline

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

23/06/2009
02:50
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

23/06/2009
06:00
Avatar
JaySab
Member
Members
Forum Posts: 10
Member Since:
22/06/2009
sp_UserOfflineSmall Offline

Ah so I can't fix this in 3.4.

Many thanks for your help, Tony.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information