Forum


22:10

13/01/2010

I have a column which is a select and when the row is selected it fires the dataUrl to retrieve the list from the server.
However I want to be able to modify that url and append the rowId to the end of it. what is the best way to do this?
should I use the dateinit function or is this a dateEvent? If you have a quick example of this I am greatful.
thanks
23:58

13/01/2010

Hi Oleg
I tried using your dataEvent but i only have it half working. As you know, when a row is selcted, all the columns with a select execute the dataUrl automatically.
problem 1:
What is the dataEvent to use?... 'click' doesnt fire.. 'select' is wrong... any ideas?
problem 2:
How do I identify the rowId when calling dataEvent? I tried putting this
var id = jQuery(#userGrid).jqGrid('getGridParam','selrow');
like so:
fn: function(e) {
var id = jQuery(#userGrid).jqGrid('getGridParam','selrow');
$.get('admin/retrieveUsersAssignedProjectsURL?userId='+id, function(data){
var res = $(data).html();
});
}
}]
but it causes an error and my grid doesnt load up.
Any thoughts on these 2 issues?
thanks
12:13

10/08/2009

Please look at http://www.trirand.com/blog/?p.....-dropdown/ more carfully. You will find for example that type: 'change'.
Most Users Ever Online: 715
Currently Online:
68 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