<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestAjax2.aspx.cs" Inherits="TestAjax2" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body >
<form id="form1" runat="server">
<div>
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script language=jscript>
function xpress(){
$find('<%=RadAjaxPanel1.ClientID%>').ajaxRequestWithTarget("<%= RadAjaxPanel1.UniqueID %>", "Button1Press")
}
</script>
</telerik:RadScriptBlock >
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<br />
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<input type=button id=buttonx value="Change color" onclick='<%=RadAjaxPanel1.ClientID%>.ajaxRequestWithTarget("<%= RadAjaxPanel1.UniqueID %>", "ButtonxPress")' />
<input type=button id=button1 value="Change colorx" onclick='xpress()' />
</telerik:RadCodeBlock>
</telerik:RadAjaxPanel>
</div>
</form>
</body>
</html>
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class TestAjax2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Page_PreRender(object sender, EventArgs e)
{
if (!IsPostBack)
{
Type cstype = this.GetType();
// ClientScript.RegisterStartupScript(cstype, "", "xpress();", true);
ScriptManager.RegisterStartupScript(this.Page, cstype, "", "javascript:xpress();", true);
}
}
protected override void RaisePostBackEvent(IPostBackEventHandler source, String eventArgument)
{
base.RaisePostBackEvent(source, eventArgument);
Label1.Text = eventArgument;
}
}

I just downloaded RadControls for ASPNET AJAX Q1 2008. I want to use web20 skin. Do I have to create a "RadControls" Folder in my asp.net web application directory? If yes, then what is the folder structure and from where can get the web20 skin?. Even the skin chooser option does not show up in RagGrid Design view. The documentation does not mention this basic and important step.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
<%
@ Page Language="C#" %>
<%
@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head runat="server">
<title>PanelBar Test</title>
</
head>
<
body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:XmlDataSource ID="XmlDataSource1" runat="server"
DataFile="~/menu.xml" XPath="/Items/Item"></asp:XmlDataSource>
<telerik:RadPanelbar runat="server" ID="RadPanelbar1" Skin="Mac"
datasourceid="XmlDataSource1"
DataTextField="Text" DataNavigateUrlField="Url" DataValueField="Text" Width="140px"
OnClientItemClicked="OnClientItemClickedHandlerForMenu" >
<ExpandAnimation Type="OutQuint" Duration="300" />
<CollapseAnimation Type="OutQuint" Duration="300" />
</telerik:RadPanelbar>
</div>
<
input type="submit" />
</form>
</
body>
<
script type="text/javascript">
function
OnClientItemClickedHandlerForMenu(sender, eventArgs)
{
}
</
script>
</
html>

