UniqueName="Delete" ConfirmText="Are you sure you want to delete this record?">
<HeaderStyle HorizontalAlign="left" Width="10%" />
<ItemStyle HorizontalAlign="Center" />
here client side confirm message working but postback in not working
teleric version is 2008.01.0415.35
9 Answers, 1 is accepted
This is not an expected behavior.For the GridButtonColumn , when you set the CommandName, the appropriate events are raised. For the CommandName="Delete", the RadGrid raises the OnDeleteCommand event , you can access the values to be deleted in this event. Make sure you have attached the OnDeleteCommand event to the RadGrid.
Ensure that the CommandName property of the GridButtonColumn is set to "Delete".
Also, ensure that you have subscribed to the OnDeleteCommand as follows:
Place a debugger at the OnDeleteCommand event handler and press the button. The breakpoint is hit.
If the issue persists, consider sending us a sample project where the issue could be produced and we will debug it locally to check where does the problem stem from.
I am having the same problem. The OnDeleteCommand is not firing. I put a break in the code and it is never hit. Why is this?
<telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid2" AllowPaging="True" AllowSorting="true" OnNeedDataSource="RadGrid2_NeedDataSource" OnDeleteCommand="RadGrid2_OnDeleteCommand" EnableViewState="False" AllowAutomaticDeletes="True"> <MasterTableView DataKeyNames="ID" AutoGenerateColumns="False" > <Columns> <telerik:GridButtonColumn ButtonType="FontIconButton" CommandName="Delete" /> <telerik:GridBoundColumn DataField="itemName" HeaderText="Description" /> <telerik:GridBoundColumn DataField="itemPrice" HeaderText="Price" /> <telerik:GridBoundColumn DataField="itemID" Visible="False"/> </Columns> </MasterTableView></telerik:RadGrid>
Is there any fix for the issue? I am facing same issue here. I have following code and its not firing the onDeleteCommand event
<telerik:GridButtonColumn ConfirmText="Delete this data?" ConfirmDialogType="RadWindow"
ItemStyle-BackColor="#99ccff" ConfirmTitle="Delete" ButtonType="LinkButton" CommandName="Delete"
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton"></ItemStyle>
This is browser behavior related to the new version of Chrome and it is already fixed in the Latest Internal Build. Could you download and test it as suggested here and share whether the issue is now resolved?
Please refer to the following document - https://docs.telerik.com/devtools/aspnet-ajax/licensing/old-versions-support-policy.