| function setv(sender,args) |
| { |
| var id='<%# Eval("ID") %>'; |
| sender.set_value(id); |
| } |
I've copied the Windows2000 skin and made some amendments to the CSS which have worked very well. However the Splitter is still trying to get images from a WebResource, as such no images are being displayed.
<telerik:RadSplitter ID="MainSplitter" runat="server" Orientation="Vertical" Width="100%" Height="100%" Skin="MySkin" EnableEmbeddedSkins="false" >
<telerik:RadPane ID="MainContent" runat="server" Scrolling="none">
<telerik:RadSplitter ID="MainContentSplitter" runat="server" Orientation="Horizontal" >
<telerik:RadPane ID="MainContent_SearchHolder" runat="server" Height="25" Locked="true" >
<telerik:RadSlidingZone ID="MainContent_SlidingZone" runat="server" ClickToOpen="true">
<telerik:RadSlidingPane ID="MainContent_SearchOptions" runat="server" Title="Search Options" MinHeight="250" Height="250" EnableDock="false" >
Search Optionssssss
</telerik:RadSlidingPane>
<telerik:RadSlidingPane ID="MainContent_SavedSearches" runat="server" Title="Saved Searches" EnableDock="false">
Saved Searchedddddd
</telerik:RadSlidingPane>
<telerik:RadSlidingPane ID="MainContent_ApplicantActions" runat="server" Title="Applicant Applications" EnableDock="false">
Applicant Actionssssss
</telerik:RadSlidingPane>
</telerik:RadSlidingZone>
</telerik:RadPane>
<telerik:RadSplitBar ID="Splitbar_Search_Results" runat="server" CollapseMode="None" />
<telerik:RadPane ID="MainContent_Results" runat="server" Scrolling="y">
Results
</telerik:RadPane>
<telerik:RadSplitBar ID="Splitbar_Results_Bookmarks" runat="server" CollapseMode="Both" />
<telerik:RadPane ID="MainContent_Bookmarks" runat="server" Scrolling="Y">
Bookmarks
</telerik:RadPane>
</telerik:RadSplitter>
</telerik:RadPane>
<telerik:RadSplitBar ID="TheSplitBar" runat="server" CollapseMode="none" EnableResize="false" />
<telerik:RadPane ID="SlidingContent" runat="server" Width="25" Scrolling="none">
<telerik:RadSlidingZone ID="SlidingZone" runat="server" ClickToOpen="true" SlideDirection="left" >
<telerik:RadSlidingPane ID="Slide_AppNotes" runat="server" Title="Applicant Notes" MinWidth="500" Width="500">
App Notes
</telerik:RadSlidingPane>
<telerik:RadSlidingPane ID="Slide_AppContactHistory" runat="server" Title="Contact History" MinWidth="500" Width="500">
Contact History
</telerik:RadSlidingPane>
</telerik:RadSlidingZone>
</telerik:RadPane>
</telerik:RadSplitter>
| protected void radGridSample_ItemCommand(object sender, GridCommandEventArgs e) | |
| { | |
| if (e.CommandName == "ExpandCollapse") | |
| { | |
| if (e.Item.Expanded == false) | |
| { | |
| // The line below is where I get the label, but it's too clunky and only works for on GridItem... | |
| Label lblDetail = e.Item.Parent.Controls[4].FindControl("lblDetail") as Label; | |
| if (lblDetail != null) | |
| { | |
| StringBuilder sbDetail = new StringBuilder(); | |
| sbDetail.AppendLine("<div class='Details'>bla bla bla</div>"); | |
| lblDetail.Text = sbDetail.ToString(); | |
| } | |
| } | |
| } | |
| } | |
<%@ 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;
}
}
