| RecurrenceRule parsedRule; |
| RecurrenceRule.TryParse(appointment.RecurrenceRule, out parsedRule); |
Hi,
We have seen that even simple ajaxing with RadAjaxManager creates extra blank lines in the rendered HTML. Here is an example below. When the "Test" Button is clicked, there will be an extra empty line between the "Test" button and the "Test Text" line on the page. If you know a solution or a fix for this, please let us know. Thanks! Jukka.
<%
@ Page Language="C#" AutoEventWireup="true" CodeBehind="test2.aspx.cs" Inherits="HVHS.Apps.VNMS.Web.test2" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title>Untitled Page</title>
</
head>
<
body>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnTest">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="Panel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<asp:Button ID="btnTest" runat="server" OnClick="btnTest_Click" Text="Test" />
<asp:Panel ID="Panel1" runat="server"/>
Test Text
</div>
</form>
</
body>
</
html>
cs:
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;
namespace
HVHS.Apps.VNMS.Web
{
public partial class test2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnTest_Click(object sender, EventArgs e)
{
}
}
}
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportCanvas.aspx.cs" Inherits="VS3.DashboardReports.ReportCanvas" %>
<%@ 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" >
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function onRequestStart(sender, args)
{
}
function onResponseEnd(sender, args)
{
}
</script>
</telerik:RadCodeBlock>
<head runat="server">
<title>Report Canvas</title>
<style type="text/css">
BODY
{
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div id="divCanvasHolder" runat="server" class="CanvasHolder">
</div>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
PreserveClientState="True" KeepInScreenBounds="True" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<ClientEvents OnRequestStart="onRequestStart" OnResponseEnd="onResponseEnd" />
</telerik:RadAjaxManager>
</form>
</body>
<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
<script type="text/javascript">
var textPanelSetupUrl = "TextPanelSetup.aspx?PanelId=";
var imagePanelSetupUrl = "ImagePanelSetup.aspx?PanelId=";
var queryPanelSetupUrl = "QueryPanelSetup.aspx?PanelId=";
function ApplyCanvasSettings(width, height, background)
{
var divCanvasHolder = document.getElementById("divCanvasHolder");
divCanvasHolder.style.width = width + "px";
divCanvasHolder.style.height = height + "px";
divCanvasHolder.style.backgroundColor = background;
}
function OpenPanel(title, id, leftPos, topPos, width, height, isNew, type)
{
debugger
var oWnd = GetWindowManager().open(null, "Panel" + id);
var titleTable = oWnd._titlebarElement.firstChild.firstChild;
titleTable.removeChild(titleTable.firstChild);
oWnd.setSize(width, height);
oWnd.panelId = id;
if (isNew)
oWnd.center();
else
oWnd.moveTo(leftPos, topPos);
oWnd.set_visibleStatusbar(false);
oWnd.set_restrictionZoneID("<%=divCanvasHolder.ClientID%>");
oWnd.set_destroyOnClose(true);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move +
Telerik.Web.UI.WindowBehaviors.Close +
Telerik.Web.UI.WindowBehaviors.Resize);
oWnd.add_close(onPanelClose);
oWnd.add_resize(onPanelResize);
oWnd.setUrl(GetPanelSetupUrl(type) + id);
oWnd.set_title(title);
}
function GetPanelSetupUrl(type)
{
switch (type)
{
case 0:
return textPanelSetupUrl;
case 1:
return imagePanelSetupUrl;
case 2:
return queryPanelSetupUrl;
}
}
function onPanelClose(sender, eventArgs)
{
var args = "Close||" + sender.panelId;
var ajaxManager = GetAjaxManager();
ajaxManager.ajaxRequest(args);
}
function onPanelResize(sender, eventArgs)
{
var contentFrame = sender.GetContentFrame();
contentFrame.contentWindow.onResize();
}
function GetPanels()
{
return GetWindowManager().get_windows();
}
function GetAjaxManager()
{
return $find("<%=RadAjaxManager1.ClientID%>");
}
function GetWindowManager()
{
return $find("<%=RadWindowManager1.ClientID%>");
}
window.onload = function()
{
debugger
var wm = GetWindowManager();
}
</script>
</telerik:RadCodeBlock>
</html>
Hello,
I'd need a RadTextBox with the following characteristics:
- colour of the border: #ababab,
- height of the component: 22px,
- distance of the base of the text from the bottom: 5px,
- colour of the text: #333333,
- font of the text: verdana,
- size of the text: 11px.
Could you please send me the corresponding code,
(css head + html) valid for:
Internet Explorer,
Firefox,
Opera,
Safari,
Chrome?
Thank you
Alberto Bresesti
Hello,
I'd need a ComboBox with the following characteristics:
- colour of the border: #ababab,
- height of the component: 22px,
- distance of the base of the text from the bottom: 5px,
- colour of the text (input+items): #333333,
- font of the text (input+items): verdana,
- size of the text (input+items): 11px,
- distance of items: 13px.
Could you please send me the corresponding code,
(css head + html) valid for:
Internet Explorer,
Firefox,
Opera,
Safari,
Chrome?
Thank you
Alberto Bresesti
<
telerik:GridHyperLinkColumn DataTextFormatString="Detalle" DataNavigateUrlFields="ORDN40"
UniqueName="detalleP" DataNavigateUrlFormatString="pedidos_detalle.aspx?p={0}"
DataTextField="ORDN40" AllowFiltering="False" Groupable="False">
<HeaderStyle Height="40px" />
</telerik:GridHyperLinkColumn>
<
telerik:GridTemplateColumn UniqueName="ExternalLink" AllowFiltering="False" Groupable="False">
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" PostBackUrl="pedidos_detalle.aspx?p={0}"
ImageUrl="img/info.jpg" />
</ItemTemplate>
<HeaderStyle Height="40px" />
</telerik:GridTemplateColumn>