Welcome Guest Search | Active Topics | Sign In | Register

Grid Classic Edit Mode auto-postback Options
ixthnar
Posted: Wednesday, March 3, 2010 2:35:45 PM
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
eo_support
Posted: Wednesday, March 3, 2010 4:51:13 PM
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!
ixthnar
Posted: Wednesday, March 3, 2010 8:43:30 PM
Rank: Advanced Member
Groups: Member

Joined: 11/15/2008
Posts: 44
Of course! I've used that one else where. Thank you so much!!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.