This is a migrated thread and some comments may be shown as answers.

[Solved] Rad Windows Server side event

1 Answer 230 Views
Window
This is a migrated thread and some comments may be shown as answers.
3i infotech
Top achievements
Rank 1
3i infotech asked on 30 Apr 2008, 07:00 AM

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>

&nbsp;&nbsp;

<asp:linkbutton id="btnReject" runat="server" cssclass="squarebutton">

<span>Reject</span>

</asp:linkbutton>

&nbsp;&nbsp;

<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%">

&nbsp;

</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%">&nbsp;</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

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 05 May 2008, 12:13 PM
Hello 3i infotech,

I suggest to examine this online demo, which demonstrates similar functionality.
 
If you still experience problems in implementation, please open a new support ticket and send us a sample, fully working project (with a database, user controls, etc., if needed) along with a detailed explanation of the problem and we will do our best to help.

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
3i infotech
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or