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")
{}
| .RadMenu_ECargo{ font-family: Verdana, Helvetica, Arial, sans-serif; padding-left:20px; } |
| .RadMenu_ECargo .rmRootGroup{} |
| .RadMenu_ECargo .rmRootGroup .rmLink |
| { |
| color:#ffffff; text-decoration:none; |
| height:54px; padding:0 20px; line-height:54px; |
| background:transparent url('/Images/Global/nav-buttons-bg_normal.gif') repeat-x bottom left; |
| } |
| .RadMenu_ECargo .rmRootGroup .rmSeparator |
| { |
| height:54px; width:2px; |
| background:transparent url('/Images/Global/nav-buttons-bg_seperator.gif') no-repeat bottom left; |
| } |
| .RadMenu_ECargo .rmRootGroup .rmLink:hover, |
| .RadMenu_ECargo .rmRootGroup .rmFocused, |
| .RadMenu_ECargo .rmRootGroup .rmExpanded |
| { |
| background:transparent url('/Images/Global/nav-buttons-bg_over.gif') repeat-x bottom left; |
| } |
| .RadMenu_ECargo .rmRootGroup .rmExpandBottom, |
| .RadMenu_ECargo .rmRootGroup .rmExpandTop, |
| .RadMenu_ECargo .rmRootGroup .rmFocused .rmExpandBottom, |
| .RadMenu_ECargo .rmRootGroup .rmFocused .rmExpandTop, |
| .RadMenu_ECargo .rmRootGroup .rmExpanded .rmExpandBottom, |
| .RadMenu_ECargo .rmRootGroup .rmExpanded .rmExpandTop |
| { |
| background:transparent url(/Images/Global/nav-arrow-down.gif) right center no-repeat; |
| } |
| .RadMenu_ECargo .rmGroup .rmLink, |
| .RadMenu_ECargo .rmGroup .rmLink:hover, |
| .RadMenu_ECargo .rmGroup .rmFocused, |
| .RadMenu_ECargo .rmGroup .rmExpanded |
| { background:#ffffff none no-repeat 0 0; min-width:150px; border:1px solid #adadad; border-top:0; color:Black; |
| padding:5px 10px; height:20px; line-height:20px; } |
| .RadMenu_ECargo .rmGroup .rmSeparator{ height:0; border-bottom:1px solid #adadad; border-top:1px solid black;} |
| .RadMenu_ECargo .rmRootGroup .rmSlide |
| { |
| margin:-1px 0 0 0;} |
