Hi,
I am converting <telerik:AjaxLoadingPanel to <telerik:RadAjaxLoadingPanel in all of our DNN modules.
New <telerik:RadAjaxLoadingPanel is fine.
But i am having a problem, i have few datgrids inside RadAjaxLoadingPanel.
Those grids are working fine except the delete confirmation button is not triggaring the DeleteCommand event,
but it was working fine inside previous AjaxLoadingPanel.
I have used 2 methods, both were working well but now they are not working.
#1 methos
----------------------------------------------
markup
========
Here is my code inside RadAjaxLoadingPanel inside Datagrid
<asp:TemplateColumn>
<ItemTemplate>
<asp:Button id="btnAutoAddDelete" runat="server" Text="Delete" CommandName="Delete"
OnClientClick="return confirm('Are you sure you want to delete this item?')"
UseSubmitBehavior="true"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>
#2 Method
--------------------------------------------
Here, onlclick is set by codebehind
codbehind
============
Private Sub DataGrid3_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles Datagrid3.ItemDataBound
Dim btnAutoAddDelete As Button
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
btnAutoAddDelete = CType(e.Item.Cells(0).FindControl("btnAutoAddDelete"), Button)
btnAutoAddDelete.Attributes.Add("onclick", "return confirm_delete();")
End If
End Sub
markup
=======
Here is my code inside RadAjaxLoadingPanel inside Datagrid
<ItemTemplate>
<asp:Button id="btnAutoAddDelete" runat="server" Text="Delete"
CommandName="Delete" CausesValidation="false"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>
-------------------------------------------
I can not understand where is the problem!
Is there anyone to help me out?
Thanks for your time
--Mohsin
I am converting <telerik:AjaxLoadingPanel to <telerik:RadAjaxLoadingPanel in all of our DNN modules.
New <telerik:RadAjaxLoadingPanel is fine.
But i am having a problem, i have few datgrids inside RadAjaxLoadingPanel.
Those grids are working fine except the delete confirmation button is not triggaring the DeleteCommand event,
but it was working fine inside previous AjaxLoadingPanel.
I have used 2 methods, both were working well but now they are not working.
#1 methos
----------------------------------------------
markup
========
Here is my code inside RadAjaxLoadingPanel inside Datagrid
<asp:TemplateColumn>
<ItemTemplate>
<asp:Button id="btnAutoAddDelete" runat="server" Text="Delete" CommandName="Delete"
OnClientClick="return confirm('Are you sure you want to delete this item?')"
UseSubmitBehavior="true"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>
#2 Method
--------------------------------------------
Here, onlclick is set by codebehind
codbehind
============
Private Sub DataGrid3_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles Datagrid3.ItemDataBound
Dim btnAutoAddDelete As Button
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
btnAutoAddDelete = CType(e.Item.Cells(0).FindControl("btnAutoAddDelete"), Button)
btnAutoAddDelete.Attributes.Add("onclick", "return confirm_delete();")
End If
End Sub
markup
=======
Here is my code inside RadAjaxLoadingPanel inside Datagrid
<ItemTemplate>
<asp:Button id="btnAutoAddDelete" runat="server" Text="Delete"
CommandName="Delete" CausesValidation="false"></asp:Button>
</ItemTemplate>
</asp:TemplateColumn>
-------------------------------------------
I can not understand where is the problem!
Is there anyone to help me out?
Thanks for your time
--Mohsin