Title: edatagrid - how can i give dynamic request parameters to the destroyUrl Post by: Stefan B. on February 25, 2015, 02:24:25 AM We use edatagrid with the destroyUrl. But now we must give some dynamic request parameters to the destroyUrl.
But there is no event 'onBeforeDestroy' to change the destroyUrl before send the request to the server. How can we give some dynamic request parameters to the destroyUrl? Title: Re: edatagrid - how can i give dynamic request parameters to the destroyUrl Post by: stworthy on February 25, 2015, 10:08:58 AM Only the 'id' parameter can be posted to server when destroying a row. The 'id' value will be retrieved from the 'idField' field.
Title: Re: edatagrid - how can i give dynamic request parameters to the destroyUrl Post by: Stefan B. on February 26, 2015, 01:14:38 AM OK that means we must manipulate the destroyUrl before destroy the row like this
Code: destroyUrl: 'delete.do?secoondId=abc' Title: Re: edatagrid - how can i give dynamic request parameters to the destroyUrl Post by: lcsft on March 02, 2015, 12:25:42 AM Hi,
I don't use the datagrid edit extension, so I have a special column with a delete icon on it, and I am able to use a custom function to get the selected row and pass arbitrary parameters to the server. For the grid column: Code:
Code: function deleteRowFunction(el, rowid) Hope this helps. |