php - Using JQgrid and sortableRows. Update table row order -


Experiment: I am able to call a warning after modifying my line order.

How do I send / edit this data to PHP / the editingurl passes through this data, such as when attaching or editing, editurl gets $ _POST ['oper'] variable?

Currently:

  jQuery ("# ​​images_list"). JqGrid ('sortableRows', option = {update: function (e, ui) {warning ("hi");}});  

The first update event should be like the following:

JqGrid ('SortableRows', {update: function (e, ui) {warning ("id =" + ui.item [0] .id + "left item with");}});

If you need other line data, you can get the code using the line id and get the getRowData method.

How to post the results for the server You should decide yourself You can use the directly $ .jax function I think the order of the rows can change the rows Should not be interpreted to add, delete, or edit


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -