Nov 14, 2011, 4:23 PM
Deleting a row from a GridPanel techniques.
Since there seems to be many ways of deleting an item from a grid panel, I'm wondering what the preferred method might be.
For example, I'm using a...
commandbutton (javascript) on each row used to call a..
directmethod confirm box (asp) that, when "ok" is clicked, calls a..
delete function (javascript) that calls a..
directmethod (asp) to delete the item in the database...
and then reloads my gridpanel (javascript) after it's been deleted from the database.
Just seems overly complicated, but it works. But perhaps there is an easier way of deleting a row from a gridpanel that I'm missing.
Am I right in thinking that there is no need to remove the row via javascript manually when you only need to remove it from the database and then reload?
For example, I'm using a...
commandbutton (javascript) on each row used to call a..
directmethod confirm box (asp) that, when "ok" is clicked, calls a..
delete function (javascript) that calls a..
directmethod (asp) to delete the item in the database...
and then reloads my gridpanel (javascript) after it's been deleted from the database.
Just seems overly complicated, but it works. But perhaps there is an easier way of deleting a row from a gridpanel that I'm missing.
Am I right in thinking that there is no need to remove the row via javascript manually when you only need to remove it from the database and then reload?