Welcome Guest Search | Active Topics | Sign In | Register

Grid Select Event Options
Paulo Mondragon
Posted: Monday, December 8, 2008 3:10:53 PM
Rank: Advanced Member
Groups: Member

Joined: 6/4/2008
Posts: 38
Hello,

Does the Data Grid object has a Visual Basic event when I make click in any row ?

I saw the JS example, but I prefer the VB .

Thanks a lot.
eo_support
Posted: Tuesday, December 9, 2008 6:07:49 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to handle the Grid's ClientSideOnItemSelected first and then trigger a post back using whatever way you'd like, typically with Grid.raiseItemCommandEvent. It will be something like this:

Code: HTML/ASPX
<eo:Grid ClientSideOnItemSelected="client_select_handler" ...>
....
</eo:Grid>


Code: JavaScript
function client_select_handler(grid)
{
    //Get the selected row index
    var index = grid.getSelectedItem().getIndex();

    //Raises server side ItemCommand event
    grid.raiseItemCommandEvent(index, "anything");   
}


You would then handle the Grid's ItemCommand event on the server side.

Thanks!


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.