Hello Telerik :
I am using a radgrid and i have a column of the type : GridClientDeleteColumn . Well when the user click this column i want to play with the event OnItemCommand . Well when i click that column nothing happens , just this row dissapears , and the event isn't fired. I am using the same struture in other places and it's working, but not here.
But when i sort o change the page this method is fired, but not when i click in that column
Do you know what is wrong ?
I show you my code:
<telerik:RadGrid
ID="_rggroupproducts"
runat="server"
AllowPaging="True"
AutoGenerateColumns="False"
AllowSorting="true"
Width="350px"
GridLines="None"
OnPageIndexChanged="RgGroupProducts_PageIndexChanged1"
OnSortCommand="RgGroupProducts_SortCommand"
OnItemCommand="RgGroupProducts_OnItemCommand"
EnableEmbeddedSkins="false" >
<FooterStyle Height="200px" />
<ClientSettings >
<Selecting AllowRowSelect="true" />
</ClientSettings>
<MasterTableView
DataKeyNames="ProductID"
PageSize="20" >
<SortExpressions>
<telerik:GridSortExpression FieldName="ProductID" SortOrder="Ascending" />
</SortExpressions>
<PagerStyle Mode="NextPrevAndNumeric" PageButtonCount="5" PrevPageImageUrl= "../Web20/Grid/PagingPrev.gif" NextPageImageUrl="../Web20/Grid/PagingNext.gif"
Wrap="False" HorizontalAlign="Left" />
<Columns>
<telerik:GridBoundColumn DataField="ProductID" HeaderText="ID" ReadOnly="True" SortExpression="ProductID"
UniqueName="ProductID" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Description" HeaderText="Description" ReadOnly="True" SortExpression="Description"
UniqueName="Description2" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="BasePrice" HeaderText="BasePrice" ReadOnly="True" SortExpression="BasePrice"
UniqueName="BasePrice">
</telerik:GridBoundColumn>
<telerik:GridClientDeleteColumn CommandName="Add" Text="Add" ButtonType="ImageButton" ShowSortIcon="true" ImageUrl="../Images/Plus.gif" >
</telerik:GridClientDeleteColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
and in the RgGroupProducts_OnItemCommand Method
if (e.CommandName == "Add")
{}