php - formatter:'actions', onEdit: setColProp -


sorry english. questions jqgrid js library

i have formatter:'actions',

and there is

onedit: function (rowid) { var cellvalue = $(this).getcell(rowid,'network_id'); // here valus needs parameter below  var link = '<?php echo $base_url.'index.php/hosts/getlistofhosts/';?>'+cellvalue+'';  $(this).setcolprop('parent_host', {  editoptions:{       dataurl: link       }   }); //setcolprop ends  } //onedit end 

i try describe in awful english -

when click on edit button, getting list ( index.php/hosts/getlistofhosts -> doing list parameter cellvalue contained in hidden column network_id)

and @ first click list not appear @ parent_host column (in setcolprop)

at second click on line list shows in parent_host column valid cell value (from hidden column network_id)

and clicking further below grid lines on edit buttons, parent_host having each lists , ok

but when i've got line cell value (from hidden column network_id) e.g. 2 instead of 1 in previous grid lines (assume have cellvalue = 1 1st -> 15th , 16th have cellvalue = 2) must 'index.php/hosts/getlistofhosts/' parameter 2, getting previous parameter 1, , such thing happenes

e.g. if click edit on line network_id = 3, click edit on line network_id = 6, got list 1st time empty (cuz @ first click list not appear) , 2nd list parameter 3 real has 6.

do me?

apologies again bad english.

also have pass cellvalue parameter (network_id) editurl out of namespace of onedit formatoptions of formatter action.

please kindly me.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -