Hi everyone
I have a custom confirm window (Radwindowmanager having confirm template) . This window is opened on click of a link button in the radgrid. This window has 3 link buttons.On click of these link buttons, I need a server side event to fire as i need to update my database.
Kindly tell me what to do regarding this.
<telerik:radwindowmanager visibleonpageload="false" visible="True" id="RadWindowManager1"
runat="server">
<confirmtemplate>
<b>Click on Approve/reject button to do the action</b>
<div class="buttonwrapper">
<asp:linkbutton id="btnApprove" runat="server" cssclass="squarebutton" onclientclick="alert('abc');" >
<span>Approve</span>
</asp:linkbutton>
<asp:linkbutton id="btnReject" runat="server" cssclass="squarebutton">
<span>Reject</span>
</asp:linkbutton>
<asp:linkbutton id="btnCancel" runat="server" cssclass="squarebutton">
<span>Cancel</span>
</asp:linkbutton>
</div>
</confirmtemplate>
</telerik:radwindowmanager>
<telerik:radgrid id="RadGrid1" runat="server" allowpaging="true" pagesize="10" autogeneratecolumns="False" datasourceid="SqlDataSource1"
gridlines="None"><clientsettings allowcolumnsreorder="True" reordercolumnsonclient="True">
<selecting allowrowselect="True" />
</clientsettings>
<mastertableview datasourceid="SqlDataSource1" commanditemdisplay="Top" editmode="PopUp" datakeynames="OrderID">
<commanditemtemplate>
<div style="padding: 10px 0px;">
<asp:linkbutton runat="server" commandname="Approve" text="Approve" cssclass="MyImageButton" onclientclick="return OpenApprovePopup();"></asp:linkbutton>
</commanditemtemplate>
<columns>
<telerik:gridboundcolumn datafield="ShippedDate" datatype="System.DateTime" headertext="ShippedDate"
sortexpression="ShippedDate" uniquename="ShippedDate">
</telerik:gridboundcolumn>
<telerik:gridboundcolumn datafield="OrderID" datatype="System.Int32" headertext="OrderID"
readonly="True" sortexpression="OrderID" uniquename="OrderID">
</telerik:gridboundcolumn>
<telerik:gridboundcolumn datafield="Subtotal" datatype="System.Decimal" headertext="Subtotal"
sortexpression="Subtotal" uniquename="Subtotal">
</telerik:gridboundcolumn>
</columns>
<editformsettings editformtype="Template">
<PopUpSettings Width="60%" scrollbars="None" />
<formtemplate>
<table cellpadding="1" cellspacing="1" border="0" width="100%">
<tr width="100%">
<td colspan="4" width="100%">
</td>
</tr>
<tr class="DataRowColor" width="100%">
<td width="15%" valign="middle">
ShippedDate
</td>
<td align="left" width="25%" valign="middle">
<%--<telerik:radtextbox id="txtUserGroupName" maxlength="12" runat="server" text='<%# DataBinder.Eval(Container, "DataItem.ShippedDate") %>'></telerik:radtextbox>--%>
<telerik:raddateinput runat="server" culture="(Default)" DbSelectedDate='<%# DataBinder.Eval(Container, "DataItem.ShippedDate") %>' dateformat="MMMM/dd/yyyy" displaydateformat="ddd, dd MMM yyyy HH':'mm':'ss 'GMT'" ></telerik:raddateinput>
</td>
<td width="15%" valign="middle">
OrderID </td>
<td align="left" width="25%" valign="middle">
<%--<telerik:radtextbox id="Radtextbox5" maxlength="12" runat="server" text='<%# DataBinder.Eval(Container, "DataItem.OrderID") %>'></telerik:radtextbox>--%>
<telerik:radnumerictextbox id="RadNumericTextBox3" runat="server" DbValue='<%# DataBinder.Eval(Container, "DataItem.OrderID") %>' type="Number"
width="125px">
</telerik:radnumerictextbox>
</td>
<td>Total</td>
<td>
<%--<telerik:radtextbox id="Radtextbox6" maxlength="12" runat="server" text='<%# DataBinder.Eval(Container, "DataItem.Subtotal") %>'></telerik:radtextbox>--%>
<telerik:radnumerictextbox id="RadNumericTextBox2" runat="server" DbValue='<%# DataBinder.Eval(Container, "DataItem.Subtotal") %>' type="Currency" culture="Hindi (India)"
width="125px">
</telerik:radnumerictextbox>
</td>
</tr>
<tr width="100%">
<td colspan="4" width="100%"> </td>
</tr>
<tr class="DataRowColor" width="100%">
</tr>
</table>
</formtemplate>
</editformsettings>
<expandcollapsecolumn resizable="False" visible="False">
<headerstyle width="20px" />
</expandcollapsecolumn>
<rowindicatorcolumn visible="False">
<headerstyle width="20px" />
</rowindicatorcolumn>
</mastertableview>
</telerik:radgrid><asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:NorthwindConnectionString2 %>"
selectcommand="SELECT [ShippedDate], [OrderID], [Subtotal] FROM [Summary of Sales by Year]">
</asp:sqldatasource>
Thanks & Regards
Paromita Datta
3i-Infotech Ltd
www.3i-infotech.com