Welcome Guest Search | Active Topics | Sign In | Register

Grid ItemCommand not firing Options
Tom
Posted: Wednesday, September 18, 2013 3:58:57 PM
Rank: Newbie
Groups: Member

Joined: 9/18/2013
Posts: 2
Grid running in callback mode, the links in my ButtonColumn are not firing the ItemCommand event. The paging and sorting events work, so I must be missing something simple.

Code: HTML/ASPX
<eo:Grid ID="docGrid" runat="server"  OnColumnSort="docGrid_ColumnSort" OnPageIndexChanged="docGrid_PageIndexChanged" RunningMode="Callback" OnItemCommand="docGrid_ItemCommand">
            
            <Columns>
                
                <eo:ButtonColumn DataField="RelatedColumn" HeaderText="Related Docs" ButtonText="" CommandName="Related" Name="Related">
                    <ButtonStyle CssText="" />
                    <CellStyle CssText="" />
                </eo:ButtonColumn>
            </Columns>
            
        </eo:Grid>


Code: C#
protected void docGrid_ItemCommand(object sender, GridCommandEventArgs e)
    {
        //do something
    }
eo_support
Posted: Wednesday, September 18, 2013 4:07:38 PM
Rank: Administration
Groups: Administration

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

This is a bug. We should be able to provide you an update build shortly with the fix.

Thanks!
Tom
Posted: Wednesday, September 18, 2013 4:22:49 PM
Rank: Newbie
Groups: Member

Joined: 9/18/2013
Posts: 2
Will this method from the documentation work?

You can also call raiseItemCommandEvent inside ClientSideOnItemCommand event handler to explicitly pass the event to the server side to raise ItemCommand server side event.
eo_support
Posted: Wednesday, September 18, 2013 4:39:04 PM
Rank: Administration
Groups: Administration

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

Yes. That method should work in your build. In fact the ButtonColumn calls that method. However in the current version, it only calls that method when the Grid is in server mode. It should call that method in both Server and Callback mode.

Thanks!
eo_support
Posted: Wednesday, September 18, 2013 5:30:40 PM
Rank: Administration
Groups: Administration

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

We have posted a new build that should fix this problem. We will PM you shortly with the download location.

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.