Rank: Advanced Member Groups: Member
Joined: 11/15/2008 Posts: 44
|
Pardon me ... I must be very clueless today.
I am using a Grid to edit a small set off records and want an automatic postback when the eo:EditCommandColumn update happens. No extra button click.
I was expecting to use one of the "ClientOn" properties and be done with it. Grid.ClientSideAfterEditItem does not work because it needs to have completed before the postback. eo:EditCommandColumn.ClientSideEndEdit does not seem to work at all.
I'm sure I'm just being the easy, obvious way to do this. Hope one of you can set me right.
Thanks, Chris
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, ClientSideAfterEditItem is the correct one. You can try to delay the post back with a timer to allow the Grid to finishes its internal work first:
Code: JavaScript
function your_after_edit_item_handler()
{
//Delay the actual post back code with setTimeout
setTimeout(function()
{
//post back code here
....
}, 10);
}
Thanks!
|
Rank: Advanced Member Groups: Member
Joined: 11/15/2008 Posts: 44
|
Of course! I've used that one else where. Thank you so much!!
|