Next we learnedRadwindow ControlIn this article, we will learn how to make it easier for developers to use common controls in projects.Radajax Control.
Radajax Is for ASP. NET Applications Program Without coding Ajax, make the first framework of callback. This patented click-and-go technology lets you do not need to make any changes to your application (Placement of callback panels, setting triggers, etc ). The best thing is that you don't need to write a line of JavaScript or server-side encoding.
Main features :
- AJAX can be used to automatically reply;
- No need to modify the application;
- No need to writeCode;
- Supports standard and third-party controls;
- Supports. Net 1.x and. NET 2.0 platforms;
- Save the page lifecycle;
- Continuity of table values;
- The continuity of JavaScript encoding;
- Support confirmation by ASP. NET customers;
- Friendly search engine.
The following describes how to use the project instances.:
1. Add in HTML code
<Asp: scriptmanager id = "scriptmanager1" runat = "server"> </ASP: scriptmanager>
Or<Telerik: radscriptmanagerId = "radscriptmanager1" runat = "server"></Telerik: radscriptmanager>
2,Drag Control radajaxWidgetTo HTML page
<Telerik: radajaxmanager id = "radajaxmanager1" runat = "server" onajaxrequest = "radajaxmanager1_ajaxrequest">
<Ajaxsettings>
<Telerik: ajaxsetting ajaxcontrolid = "radajaxmanager1">
<Updatedcontrols>
<Telerik: ajaxupdatedcontrol controlid = "sgv1"/>
</Updatedcontrols>
</Telerik: ajaxsetting>
<Telerik: ajaxsetting ajaxcontrolid = "stvdept">
<Updatedcontrols>
<Telerik: ajaxupdatedcontrol controlid = "sgv1"/>
</Updatedcontrols>
</Telerik: ajaxsetting>
</Ajaxsettings>
</Telerik: radajaxmanager>
Note: Ajaxcontrolid: Set the control for executing the event. ajaxupdatedcontrol: the control that is refreshed after the event is executed.
3. Set a simple Ajax partial refresh through the above settings. Isn't it easy? If you still need a wait, just add the controlRadajaxloadingpanel and radajaxmanagerCooperation
.
<Telerik: radajaxloadingpanelId = "radajaxloadingpanel1" runat = "server">
</Telerik: radajaxloadingpanel>
The Code is as follows:
< Telerik: radajaxmanager Id = "radajaxmanager1" runat = "server" onajaxrequest = "radajaxmanager=ajaxrequest">
<Ajaxsettings>
<Telerik: ajaxsetting ajaxcontrolid = "radajaxmanager1">
<Updatedcontrols>
<Telerik: ajaxupdatedcontrol controlid = "sgv1"/>
</Updatedcontrols>
</Telerik: ajaxsetting>
<Telerik: ajaxsetting ajaxcontrolid = "stvdept">
<Updatedcontrols>
<Telerik: ajaxupdatedcontrol controlid = "sgv1" controlid ="Radajaxloadingpanel1 " />
</Updatedcontrols>
</Telerik: ajaxsetting>
</Ajaxsettings>
</ Telerik: radajaxmanager >
4. Now, let's take a look at the runtime diagram: