Hi,
I'm new to Rad Controls, can any one please help me to resolve this issue
I have one RadGrid, in this I placed one gridtemplatecolumn which contains one panel. This panel contains two buttons and one label. I'm using this panel as popup.
My problem is when i click on fist button(Delete) the row should delete and when I click on link(Cancel) the panel should hide.
I'm not getting how to access this button and link in code behind.
this is my code..
<Code>
<telerik:GridTemplateColumn UniqueName="DeletePopup">
<ItemTemplate>
<asp:LinkButton ID="PopupImgButton" CssClass="useredit" Text="Delete"
runat="server" OnClientClick="this.disabled=true;__doPostBack(this.name,'');return false;" />
<asp:Panel ID="PopUpPanel" runat="server" BackColor="White" BorderColor="Red" BorderStyle="Solid"
BorderWidth="1px" Width="809px" Height="25px" CssClass="edit">
<div>
<asp:Button ID="Button1" runat="server" Text="Delete" CommandName="Deletebtn" OnClientClick="this.disabled=true;__doPostBack(this.name,'');" />
<asp:Label ID="Label1" runat="server" Text="Are you sure you want to delete [John Smithfield]? This cannot by undone."></asp:Label>
<a href="#" class="NormalCloseLink" style="padding-left:300px;color:Blue">CANCEL</a>
</div>
</asp:Panel>
<asp:PopupControlExtender ID="ImgPopupControlExtender" runat="server" TargetControlID="PopupImgButton"
PopupControlID="PopUpPanel" Position="Top" OffsetX="-745" OffsetY="7">
</asp:PopupControlExtender>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Code>
please give me some solution for this...
I'm new to Rad Controls, can any one please help me to resolve this issue
I have one RadGrid, in this I placed one gridtemplatecolumn which contains one panel. This panel contains two buttons and one label. I'm using this panel as popup.
My problem is when i click on fist button(Delete) the row should delete and when I click on link(Cancel) the panel should hide.
I'm not getting how to access this button and link in code behind.
this is my code..
<Code>
<telerik:GridTemplateColumn UniqueName="DeletePopup">
<ItemTemplate>
<asp:LinkButton ID="PopupImgButton" CssClass="useredit" Text="Delete"
runat="server" OnClientClick="this.disabled=true;__doPostBack(this.name,'');return false;" />
<asp:Panel ID="PopUpPanel" runat="server" BackColor="White" BorderColor="Red" BorderStyle="Solid"
BorderWidth="1px" Width="809px" Height="25px" CssClass="edit">
<div>
<asp:Button ID="Button1" runat="server" Text="Delete" CommandName="Deletebtn" OnClientClick="this.disabled=true;__doPostBack(this.name,'');" />
<asp:Label ID="Label1" runat="server" Text="Are you sure you want to delete [John Smithfield]? This cannot by undone."></asp:Label>
<a href="#" class="NormalCloseLink" style="padding-left:300px;color:Blue">CANCEL</a>
</div>
</asp:Panel>
<asp:PopupControlExtender ID="ImgPopupControlExtender" runat="server" TargetControlID="PopupImgButton"
PopupControlID="PopUpPanel" Position="Top" OffsetX="-745" OffsetY="7">
</asp:PopupControlExtender>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Code>
please give me some solution for this...