Contents
Licensing
Installation and deployment
RadControls for ASP.NET AJAX Fundamentals
RadControls
RadAjax
Getting Started
Design Time
RadAjaxManager
RadAjaxPanel
RadAjaxManagerProxy
RadAjaxLoadingPanel
Performance
Appearance and Styling
Server-Side Programming
Client-Side Programming
Application Scenarios
Troubleshooting
RadAsyncUpload
RadBarcode
RadButton
RadCalendar
RadCaptcha
RadChart
RadColorPicker
RadComboBox
RadDataPager
RadDock
RadEditor
RadFileExplorer
RadFilter
RadFormDecorator
RadGrid
RadHtmlChart
RadImageEditor
RadInput
RadListBox
RadListView
RadMenu
RadNotification
RadODataDataSource
RadOrgChart
RadPanelBar
RadRating
RadRibbonBar
RadRotator
RadScheduler
RadScriptManager
RadSitemap
RadSlider
RadSocialShare
RadSpell
RadSplitter
RadStylesheetManager
RadTabStrip
RadTagCloud
RadToolBar
RadToolTip
RadTreeList
RadTreeView
RadUpload
RadWindow
RadXmlHttpPanel
Visual Studio Extensions
Integrating RadControls in ASPNET MVC
Integrating RadControls in DNN
Integrating RadControls in Mono
Integrating RadControls in SharePoint
API Reference
For More Help
|
|
        RadControls for ASP.NET AJAX EnableAJAX: When the EnableAJAX property is
True (the default), all requests (controls either within
the RadAjaxPanel Template or managed by the RadAjaxManager) are handled via
AJAX. If not checked, requests are handled in the legacy postback
manner. EnableHistory: When EnableHistory property is
True (the default is False), browser
history is enabled even when using AJAX. The forward and back buttons
of the browser work as expected (IE browser only). For more information, see this article:
Back and Forward Browser Buttons (Browser History) EnablePageHeadUpdate: When the EnablePageHeadUpdate is
True (the default), the Page <Head> element can be
modified during AJAX updates. This is especially useful, when you have
initially invisible control or you are loading the control dynamically on
ajax request. IsAjaxRequest: This property is true when the current
request is through AJAX and false when the request is a standard
postback. In the example below "Button1" has been configured to be
AJAX-enabled and the alert will display "True". Clicking "Button2" will
display "False".
CopyASPX <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="Button1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="Label1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Button" /> CopyC# protected void Button1_Click(object sender, EventArgs e)
{
RadAjaxManager1.Alert(RadAjaxManager1.IsAjaxRequest.ToString());
}
protected void Button2_Click(object sender, EventArgs e)
{
RadAjaxManager1.Alert(RadAjaxManager1.IsAjaxRequest.ToString());
} CopyVB.NET
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
RadAjaxManager1.Alert(RadAjaxManager1.IsAjaxRequest.ToString())
End Sub
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs)
RadAjaxManager1.Alert(RadAjaxManager1.IsAjaxRequest.ToString())
End SubResponseScripts: This collection of strings contain
JavaScript that you want to execute when the response returns to the
browser. In the example below an "alert()" JavaScript function is added
to the collection. Also see below for the rendered HTML results showing
the call to alert() near the end of the HTML.
CopyC# protected void Button2_Click(object sender, EventArgs e)
{
RadAjaxManager1.ResponseScripts.Add("alert('this fires after the response');");
} CopyVB.NET Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs)
RadAjaxManager1.ResponseScripts.Add()
End Sub CopyJavaScript <script type="text/javascript">
setTimeout(function () { alert('this fires after the response'); }, 0); Sys.Application.initialize();
Sys.Application.add_init(function () {
$create(Telerik.Web.UI.RadAjaxManager, { "ajaxSettings": [{ InitControlID: "Button1", UpdatedControls: [{ ControlID: "Label1", PanelID: ""}]}], "clientEvents": { OnRequestStart: "", OnResponseEnd: "" }, "defaultLoadingPanelID": "", "enableAJAX": true, "enableHistory": false, "links": [], "styles": [], "uniqueID": "RadAjaxManager1" }, null, null, $get("RadAjaxManager1"));
});
</script>
|