|
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
}
|
|
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!
|
|
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.
|
|
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!
|
|
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!
|
|