| <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server"> |
| </telerik:RadStyleSheetManager> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| </telerik:RadAjaxManager> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> |
| <Windows> |
| <telerik:RadWindow ID="DialogWindow" runat="server" Behavior="Default" InitialBehavior="None" |
| OpenerElementID="btnTest" VisibleOnPageLoad="False" Modal="true" VisibleTitlebar="False" |
| VisibleStatusbar="False" NavigateUrl="Dialog.aspx"> |
| </telerik:RadWindow> |
| </Windows> |
| </telerik:RadWindowManager> |
| <asp:Button ID="btnTest" runat="server" Text="Button" /> |
<ClientEvents OnFocus="Focus"></ClientEvents>
<NumberFormat AllowRounding="True" DecimalDigits="3"></NumberFormat>
</radi:RadNumericTextBox> <radi:RadNumericTextBox id="rntExchangeRate" runat="server" Width="100px" Visible="False" Skin="" DbValue='<%# Eval("ExchangeRate") %>' Culture="English (United States)" LabelCssClass="radLabelCss_Default" OnTextChanged="txtCurrentPayment_TextChanged" >
<IncrementSettings InterceptArrowKeys="False" InterceptMouseWheel="False"></IncrementSettings>
<NumberFormat AllowRounding="True" DecimalDigits="3"></NumberFormat>
</radi:RadNumericTextBox>
</ItemTemplate>
<HeaderStyle Width="100px" />
<ItemStyle Width="100px" />
</rad:GridTemplateColumn>
<rad:GridTemplateColumn HeaderText="Amount LC"
UniqueName="CurrentPayment_BC">
<HeaderTemplate>
<asp:LinkButton id="lblAmountLC" runat="server" CssClass="Link" Text="Amount LC" Enabled="False" CommandArgument="Amount_BC" Font-Bold="True" Font-Underline="False" ForeColor="White" OnCommand="lblAmountBC_Command" BackColor="Transparent"></asp:LinkButton>
</HeaderTemplate>
<ItemTemplate>
<radi:RadNumericTextBox id="txtCurrentPaymentBC" runat="server" Width="100px" OnTextChanged="txtCurrentPaymentBC_TextChanged" LabelCssClass="radLabelCss_Default" Culture="English (United States)" DbValue='<%# Eval("CurrentPayment") %>' >
<IncrementSettings InterceptArrowKeys="False" InterceptMouseWheel="False"></IncrementSettings>
<NumberFormat AllowRounding="True" DecimalDigits="3"></NumberFormat>
</radi:RadNumericTextBox>
</ItemTemplate>
</rad:GridTemplateColumn>
<rad:GridTemplateColumn UniqueName="Template2" >
<ItemTemplate>
<asp:LinkButton id="lbPaythis" onclick="lbPaythis_Click" runat="server" Width="50px" CommandArgument='<%# Bind("PKey") %>' CommandName="Select">Pay this</asp:LinkButton>
</ItemTemplate>
<footerstyle verticalalign="Middle" horizontalalign="Right" wrap="False" />
<HeaderStyle verticalalign="Middle" horizontalalign="Right" wrap="False" />
<ItemStyle horizontalalign="Right" wrap="False" />
</rad:GridTemplateColumn>
</Columns>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<CommandItemTemplate>
<table class="MainTable" style="height: 55%" width="100%">
<tr>
<td align="right" colspan="5" style="width: 95%" valign="top">
<asp:Button ID="btnPayAll" runat="server" CssClass="Button" OnClick="btnPayAll2_Click"
Text="Pay All" Width="80px" />
</td>
<td valign="top">
<asp:ImageButton ID="btnSave2" runat="server" BackColor="WhiteSmoke" BorderColor="WhiteSmoke"
BorderStyle="Solid" BorderWidth="3px" CssClass="IconButton" ImageUrl="~/Images/Save.ico"
OnClick="btnSave2_Click" ToolTip="Save" />
</td>
<td valign="top">
<asp:ImageButton ID="btnUndo2" runat="server" BackColor="WhiteSmoke" BorderColor="WhiteSmoke"
BorderStyle="Solid" BorderWidth="3px" ImageUrl="~/Images/Undo.ico" OnClick="btnUndo2_Click"
ToolTip="Undo" />
</td>
</tr>
</table>
</CommandItemTemplate>
</MasterTableView>
<ClientSettings AllowKeyboardNavigation="True" >
<Selecting AllowRowSelect="True" />
<ClientEvents OnActiveRowChanged="ActiveRowChanged" OnGridCreated="GridCreated" OnActiveRowChanging="ActiveRowChanging" OnRowMouseOver="RowMouseOver" OnRowSelected="RowSelected" />
</ClientSettings>
</radg:RadGrid>
function
openRadWindow(CustomerID)
{
var oWnd = radopen("AddPopup.aspx?CustomerID=" + CustomerID, "RadWindow1" );
oWnd.Center();
oWnd.add_close(OnClientCloseWin);
}
function OnClientCloseWin()
{
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
ajaxManager.ajaxRequestWithTarget(
'<%= btn.UniqueID %>', '');
}
its working fine in asp.net pages, but not support in master-content pages.
this code loads the page every time when cliking the button.
i need to call server side function without postbacking....
please reply me immediately...