function
OnPane1Resized()
{
var FrameHeight = document.getElementById("<%= hdnFrameHeight.ClientID %>").value;
var splitter = $find("<%= RadSplitter1.ClientID %>");
var topPane = splitter.getPaneById("<%= RadPane1.ClientID %>");
var btmPane = splitter.getPaneById("<%= RadPane2.ClientID %>");
var sptrHeight = splitter.get_height();
var topPaneHeight = topPane.get_height();
var btmPaneHeight = btmPane.get_height(); // i am setting paneOldHeight to hidden fields on splitter 'load' event
var topPaneOldHeight = parseFloat(document.getElementById("<%= hdnTopPaneOldHeight.ClientID %>").value);
var btmPaneOldHeight = parseFloat(document.getElementById("<%= hdnBtmPaneOldHeight.ClientID %>").value);
var topPaneNewHeight = topPaneHeight;
document.getElementById(
"<%= hdnTopPaneOldHeight.ClientID %>").value = topPaneNewHeight;
var HeightDiff = topPaneNewHeight - topPaneOldHeight;
var resizeSptr = sptrHeight + HeightDiff ;
var resizeBtmPane = btmPaneHeight + HeightDiff ; // i am setting initialHeight to hidden fields when splitter loads for the first time
var initSptrHeight = parseFloat(document.getElementById("<%= hdnInitSptrHeight.ClientID %>").value) ;
var initTopPaneHt = parseFloat(document.getElementById("<%= hdnInitTopPaneHeight.ClientID %>").value );
var OldSptrHt = topPaneOldHeight + btmPaneOldHeight ;
var SpaceHeight = initSptrHeight - OldSptrHt ;
// var btmPaneHeight1 = 0.35 * initSptrHeight;
if(HeightDiff > 0)
{
if (topPaneHeight > initTopPaneHt)
{
if(SpaceHeight >= 1)
{
var b = (resizeSptr - SpaceHeight);
var c = (resizeBtmPane - SpaceHeight);
splitter._setSize(
null,b);
btmPane._setSize(
null,c);
topPane._setSize(
null,topPaneHeight);
}
else
{
splitter._setSize(
null,resizeSptr);
btmPane._setSize(
null,resizeBtmPane);
topPane._setSize(
null,topPaneHeight);
}
}
else
{
}
}
else if(HeightDiff < 0)
{
if (topPaneHeight < initTopPaneHt)
{
var bpHeight = initSptrHeight - topPaneHeight ;
var Diff = sptrHeight - initSptrHeight ;
if (Diff > 1) // this is not working. as a final try i have set to initial size which can be seen below. even this is not working
{
splitter._setSize(
null,initSptrHeight);
topPane._setSize(null,initTopPaneHt);
else
{
splitter._setSize(
null,initSptrHeight);
}
}
else
{
splitter._setSize(
null,resizeSptr);
btmPane._setSize(
null,resizeBtmPane);
topPane._setSize(
null,topPaneHeight);
}
}
}
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestPage.aspx.cs" Inherits="TelerikDynamicUserControlJsApp.testPage" %><!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></title></head><body> <form id="form1" runat="server"> <div style="display:none"> <rad:RadScriptManager runat="server" EnablePageMethods="true"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </rad:RadScriptManager> <rad:RadAjaxManager runat="server"> <AjaxSettings> <rad:AjaxSetting AjaxControlID="TestButton"> <UpdatedControls> <rad:AjaxUpdatedControl ControlID="TestPlaceHolder" /> </UpdatedControls> </rad:AjaxSetting> </AjaxSettings> </rad:RadAjaxManager> </div> <div> <asp:Button ID="TestButton" runat="server" Text="Test" Width="60" OnClick="TestButton_OnClick" /> <asp:PlaceHolder ID="TestPlaceHolder" runat="server"/> </div> </form></body></html>protected void TestButton_OnClick(object sender, EventArgs e){ TestPlaceHolder.Controls.Add(LoadControl("TestUserControl.ascx"));}<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TestUserControl.ascx.cs" Inherits="TelerikDynamicUserControlJsApp.TestUserControl" %><rad:RadScriptBlock> <script language="text/javascript"> function GridCreated() { alert("<%= Grid.ClientID %>"); } </script></rad:RadScriptBlock><div style="display:none"> <rad:RadAjaxManagerProxy runat="server"> <AjaxSettings> <rad:AjaxSetting AjaxControlID="Grid"> <UpdatedControls> <rad:AjaxUpdatedControl ControlID="Grid"/> </UpdatedControls> </rad:AjaxSetting> </AjaxSettings> </rad:RadAjaxManagerProxy></div><rad:RadGrid ID="Grid" runat="server" AllowSorting="true"> <ClientSettings> <ClientEvents OnGridCreated="GridCreated" /> </ClientSettings></rad:RadGrid>public class TestData{ public string TestField { get; set; }}protected void Page_Load(object sender, EventArgs e){ Grid.DataSource = new TestData[] { new TestData { TestField = "Test" } };}| <telerik:RadScheduler ID="schPlanner" |
| AllowEdit="false" |
| AllowInsert="false" |
| DataEndField="End" |
| DataKeyField="SessionId" |
| DataRecurrenceField="" |
| DataRecurrenceParentKeyField="" |
| DataStartField="Start" |
| DataSubjectField="ClassName" |
| DayEndTime="22:00:00" |
| DayStartTime="06:00:00" |
| Height="100%" |
| RowHeight="21px" |
| runat="server" |
| SelectedView="WeekView" |
| ShowAllDayRow="false" |
| ShowFooter="false" |
| ShowHeader="false" |
| Skin="Web20" |
| Width="100%" |
| WorkDayEndTime="22:00:00" |
| WorkDayStartTime="06:00:00" |
| > |
| <WeekView ColumnHeaderDateFormat="dddd" /> |
| <AppointmentTemplate> |
| <div class="rsCustomAppointmentContainer"> |
| <h2> |
| <%#Eval("ClassName")%> |
| </h2> |
| <div> |
| </div> |
| </div> |
| </AppointmentTemplate> |
| </telerik:RadScheduler> |
Hi,
We having problem with RadHtmlField in the Sharepoint Page Layout.
If we add the below field to the page layout and try to open this page, I get the Popup(NTLM) until I get 401 unauthorized .
This is the field that cause the error.
<telerik:RadHtmlField FieldName="DTACSTContent" runat="server" ID="STContent" DisplayWidth="400px" DisplayHeight="600px" ToolsFile="/_wpresources/RadEditorSharePoint/5.4.1.0__1f131a624888eeed/Resources/ScriptToolToolsFile.xml" ConfigFile="/_wpresources/RadEditorSharePoint/5.4.1.0__1f131a624888eeed/Resources/ScriptToolConfigFile.xml">
</telerik:RadHtmlField>
Do you have any suggestion to solve this 401 issues?
Thanks,
Thanakon

<telerik:RadDockZone ID="RadDockZoneInbox" runat="server" Width="99%"BorderStyle="None" EnableEmbeddedBaseStylesheet="true" EnableAjaxSkinRendering="true"> <telerik:RadDock ID="RadDockInbox" runat="server" width="99%" DefaultCommands="None" EnableAjaxSkinRendering="true" DockMode="Docked" Skin="Vista" EnableDrag="False" Index="0" Tag=""> <TitlebarTemplate> <asp:Label ID="lblInbox" font-bold="true" font-size="Large" runat="server" meta:resourcekey="lblInbox"></asp:Label> <asp:ImageButton runat="server" ID="btnUploadTransactions" style="position: absolute; margin: 1px; padding: 0; right: 10px;" OnClientClick="javascript: openWinPostLogin('/../TransactionPages/TransactionUpload.aspx', 'Modal', '.70', '.58');" /> <asp:ImageButton runat="server" ID="btnDownloadTransactions" style="position: absolute; margin: 1px; padding: 0; right: 170px;" OnClientClick="DownloadTransactions();"/> </TitlebarTemplate> <ContentTemplate> <UC5:InboxWidget ID="InboxWidget1" runat="server"/> </ContentTemplate> </telerik:RadDock> </telerik:RadDockZone>