Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
232 views
Hello Sir,

i am using scheduler control. its working fine. But i want to group my scheduler in multiple column.

How Can I Use Multiple Group In Rad Scheduler in Day View.

When i use gingle group By Then is Working Fine. But Now i want to use Multiple group By Option.

My Need :- First Group by Doctor Wise And then In Side Doctor Groping Room Wise.
I Saw ur Example but ther is option only Group by Room And Date in Week View Not In Day View. i Want to Group By Doctor And Then Room In Day View. Please Help Me
Thanks
Chandan
My Code is Below :-

ASPX Code :- 

 

<telerik:RadScheduler AllowInsert="false" GroupBy="Doctor, Facility" HoursPanelTimeFormat="hh:mm tt" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"

 

 

OnAppointmentCreated="RadScheduler1_AppointmentCreated" runat="server" ID="RadScheduler1"

 

 

Skin="Office2007" Height="545px" CustomAttributeNames="StatusId" Width="690px"

 

 

ShowFooter="false" SelectedDate="2010-03-18" DayStartTime="07:00:00" DayEndTime="21:00:00"

 

 

FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" EnableDescriptionField="true"

 

 

ShowNavigationPane="false" OnAppointmentDelete="RadScheduler1_AppointmentDelete"

 

 

DataSubjectField="Subject" DataStartField="FromTime" DataEndField="ToTime" ShowAllDayRow="false"

 

 

AllowEdit="false" DataKeyField="AppointmentId" DataDescriptionField="Description" OnTimeSlotContextMenuItemClicked="RadScheduler1_TimeSlotContextMenuItemClicked"

 

 

AllowDelete="false" OnAppointmentContextMenuItemClicked="RadScheduler1_AppointmentContextMenuItemClicked"

 

 

OnNavigationCommand="RadScheduler1_NavigationCommand" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated">

 

 

<AppointmentContextMenuSettings EnableDefault="false" />

 

 

<TimelineView UserSelectable="false" />

 

 

 

<ResourceTypes>

 

 

<telerik:ResourceType KeyField="FacilityID" Name="Facility" TextField="FacilityName" ForeignKeyField="FacId" />

 

 

</ResourceTypes>

 

 

 

<ResourceTypes>

 

 

<telerik:ResourceType KeyField="DoctorID" Name="Doctor" TextField="DoctorName" ForeignKeyField="DocId" />

 

 

</ResourceTypes>

 

 

 

 

 

 

 

<AppointmentTemplate>

 

<%

# Eval("Subject")%>

 

 

<br />

 

 

<asp:Label runat="server" ID="Teacher" />

 

 

<br />

 

 

<asp:Label runat="server" ID="Students" />

 

 

</AppointmentTemplate>

 

 

<AppointmentContextMenus>

 

 

<telerik:RadSchedulerContextMenu runat="server" DataTextField="Status" DataValueField="StatusId"

 

 

ID="SchedulerAppointmentContextMenu" AppendDataBoundItems="true">

 

 

<Items>

 

 

<telerik:RadMenuItem Text="Copy" Value="Copy" />

 

 

<telerik:RadMenuItem IsSeparator="True" />

 

 

<telerik:RadMenuItem Text="Edit" Value="Edit" />

 

 

<telerik:RadMenuItem IsSeparator="True" />

 

 

</Items>

 

 

</telerik:RadSchedulerContextMenu>

 

 

</AppointmentContextMenus>

 

 

<TimeSlotContextMenus>

 

 

<telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">

 

 

<Items>

 

 

<telerik:RadMenuItem Text="New Appointment" Value="New" />

 

 

<telerik:RadMenuItem IsSeparator="true" />

 

 

<telerik:RadMenuItem Text="Paste" Value="Paste" />

 

 

</Items>

 

 

</telerik:RadSchedulerContextMenu>

 

 

</TimeSlotContextMenus>

 

 

<TimeSlotContextMenuSettings EnableDefault="False" />

 

 

</telerik:RadScheduler>

 



CS Page Codding :- 

protected

 

void btnRefresh_OnClick(Object sender , EventArgs e)

 

{

 

DataSet ds = new DataSet();

 

 

Hashtable HashIn = new Hashtable();

 

DAL.

DAL dl = new DAL.DAL(DAL.DAL.DBType.SqlServer, sConString);

 

 

String strProvider = "";

 

 

 

foreach (RadListBoxItem currentItem in RadLstDoctor.Items)

 

{

 

if (currentItem.Checked == true)

 

{

 

String value = currentItem.Value;

 

strProvider = strProvider +

"<Table1><c1>" + value + "</c1></Table1>";

 

}

}

 

if(strProvider=="")

 

{

 

Alert.ShowAjaxMsg("Please select one provider.",Page);

 

 

return;

 

}

HashIn.Add(

"@inyHospitalLocationId", Session["HospitalLocationID"]);

 

HashIn.Add(

"@intFacilityId",ddlFacility.SelectedValue);

 

HashIn.Add(

"@xmlDoctorIds", strProvider); // "<Table1><c1>1</c1></Table1>"); // ddlDoctor.SelectedValue);

 

HashIn.Add(

"@chrForDate", CalApp.SelectedDate.Date.ToString("yyyy/MM/dd"));

 

ds = dl.FillDataSet(

CommandType.StoredProcedure, "uspGetDoctorAppDetailstest", HashIn);

 

 

if (ds.Tables[0].Rows.Count > 0)

 

{

RadScheduler1.SelectedDate = CalApp.SelectedDate;

RadScheduler1.DayStartTime =

TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[0].ToString());

 

RadScheduler1.DayEndTime =

TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[1].ToString());

 

 

RadScheduler1.MinutesPerRow =

int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());

 

RadScheduler1.TimeLabelRowSpan = 60 /

int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());

 

RadScheduler1.DataKeyField =

"AppointmentId";

 

RadScheduler1.DataStartField =

"FromTime";

 

RadScheduler1.DataEndField =

"ToTime";

 

RadScheduler1.DataSubjectField =

"Subject";

 

RadScheduler1.GroupBy =

"Doctor, Facility";

 

RadScheduler1.ResourceTypes[0].DataSource = ds.Tables[3];

RadScheduler1.ResourceTypes[1].DataSource = ds.Tables[2];

 

RadScheduler1.DataSource = ds.Tables[1];

RadScheduler1.DataBind();

lblFacility.Text = ddlFacility.SelectedItem.Text;

 

}

 

 

else

 

{

 

Alert.ShowAjaxMsg("There is no time define in selected provider and facility.", Page);

 

}

}


Plamen
Telerik team
 answered on 15 Oct 2012
1 answer
66 views
I have the following scheduler which is bound to a datatable in the codebehind

<telerik:RadScheduler runat="server" ID="RadScheduler1" StartEditingInAdvancedForm="false"

Width="100%" DayStartTime="08:00:00" DayEndTime="18:00:00" Height="565px" WeekHeaderDateFormat="dd-MMM-yyyy"

TimelineView-HeaderDateFormat="dd-MMM-yyyy"

 

DisplayDeleteConfirmation="False" AllowDelete="false"

 

DataKeyField="ID" DataSubjectField="Title" DataStartField="StartDate" DataEndField="EndDate"

FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" SelectedView="MonthView"

onappointmentdatabound="RadScheduler1_AppointmentDataBound">

</telerik:RadScheduler>


In the codebehind:

System.Data.OleDb.

OleDbDataAdapter dbAdapter = new System.Data.OleDb.OleDbDataAdapter(SelectCommand, dbCon);

DataSet ds = new DataSet();

dbAdapter.Fill(ds);

RadScheduler1.DataSource = ds.Tables[0]

 

//RadScheduler1.GroupBy = "title";

 

//RadScheduler1.GroupingDirection = GroupingDirection.Vertical;

RadScheduler1.DataBind();


The select command contains the field title, which is the name of the group. This all works fine until the group by code is put back in and then nothing is displayed.

Any help appreciated thanks.
Boyan Dimitrov
Telerik team
 answered on 15 Oct 2012
1 answer
76 views
I have a RadGrid with some columns inside of it. The data that is bound is to a custom class that has a HttpWebResponse property to it.

I want this property to be formatted in a specific way where I can use both the StatusCode and StatusDescription.

I am able to use one by setting "DataField" to "Response.StatusCode", but how do I format it for my liking's?

Here is the GridBoundColumn i'm using:
<telerik:GridBoundColumn DataField="Response.StatusCode" />

And here is what im aiming for (Pseudo code):
<telerik:GridBoundColumn DataField="Response" Format="{0}.StatusDescription ({0}.StatusCode}
/>

Where the output would for example be:
Page Not Found (404)
Tsvetina
Telerik team
 answered on 15 Oct 2012
1 answer
54 views
How to change the default expand image handle of radpanel bar Thanks..
Shinu
Top achievements
Rank 2
 answered on 15 Oct 2012
0 answers
109 views
<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\vx.x\Config 
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!--
          The <authentication> section enables configuration 
          of the security authentication mode used by 
          ASP.NET to identify an incoming user. 
        -->
<authentication mode="Windows"/>
<!--
           The <customErrors> section enables configuration 
           of what to do if/when an unhandled error occurs 
           during the execution of a request. Specifically, 
           it enables developers to configure html error pages 
           to be displayed in place of a error stack trace.


           <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
             <error statusCode="403" redirect="NoAccess.htm" />
             <error statusCode="404" redirect="FileNotFound.htm" />
           </customErrors>
        -->
<customErrors mode="RemoteOnly" defaultRedirect="error.htm">
<error statusCode="403" redirect="error.htm"/>
<error statusCode="404" redirect="error.htm"/>
</customErrors>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<!-- *******  Register the RadUploadModule for IIS 7  ****** -->
<add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
<!-- *******  Register the RadUploadProgressHandler for IIS 7  ****** -->
<add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler"/>
</handlers>
</system.webServer>
<location path="Telerik.RadUploadProgressHandler.ashx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<runtime>
<assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>


this is my web.config file code and below code :-- of aspx

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
        <telerik:RadUpload ID="RadUpload1" runat="server" 
            ControlObjectsVisibility="None" Skin="Telerik" TargetFolder="uploads">
        </telerik:RadUpload>
         <asp:Repeater ID="repeaterResults" runat="server" Visible="False" 
            onitemcommand="repeaterResults_ItemCommand">
                                <HeaderTemplate>
                                    <div class="title">Uploaded files in the target folder:</div>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <%#DataBinder.Eval(Container.DataItem, "FileName")%>
                                    <%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>
                                    <br />
                                </ItemTemplate>
                            </asp:Repeater>
        <div class="submitArea">
                                 <telerik:RadButton ID="SubmitButton" runat="server" Skin="Telerik" 
                                     Text="Uploads Logo" onclick="SubmitButton_Click">
                                 </telerik:RadButton>
                                 </div>
                                  <telerik:RadProgressArea runat="server" ID="ProgressArea1" Skin="Telerik" 
            ProgressIndicators="TotalProgressBar, TotalProgress, TotalProgressPercent, RequestSize, FilesCountBar, FilesCount, FilesCountPercent, SelectedFilesCount, TimeElapsed, TimeEstimated, TransferSpeed"></telerik:RadProgressArea>
           
    </div>


and now below code of .cs that is C# file :--


 protected void SubmitButton_Click(object sender, EventArgs e)
    {
        if (RadUpload1.UploadedFiles.Count > 0)
        {
            repeaterResults.DataSource = RadUpload1.UploadedFiles;
            repeaterResults.DataBind();
            repeaterResults.Visible = true;
        }
        else
        {
            repeaterResults.Visible = false;
        }
    }


this code working on local system perfectly but not working on live web page url is http://imageartcreations.com/upload.aspx

so wheres the error I am not understand same code running on another website perfectly but here not why ?
Navin
Top achievements
Rank 1
 asked on 15 Oct 2012
1 answer
94 views
How can i check whether the node is the last level child of the radtree view Thanks...
Princy
Top achievements
Rank 2
 answered on 15 Oct 2012
2 answers
209 views
this code of my normal fileupload of ASP.NET then what for radupload control :-

if (FileUpload1.HasFile)
            {
                byte[]img = new byte[FileUpload1.PostedFile.ContentLength];
                HttpPostedFile myimg = FileUpload1.PostedFile;
                myimg.InputStream.Read(img,0,FileUpload1.PostedFile.ContentLength);


                SqlCommand cmd = new SqlCommand("insert into FTAB (CMTID,IMAGEDT) values (@imgid,@image)", conn);


                SqlParameter imgid = new SqlParameter("@imgid",SqlDbType.Int);
                imgid.Value = 2;
                cmd.Parameters.Add(imgid);


                SqlParameter uploading = new SqlParameter("@image", SqlDbType.Image);
                uploading.Value = img;
                cmd.Parameters.Add(uploading);


                conn.Open();
                cmd.ExecuteNonQuery();
                conn.Close();
                lblHead.Text = "Image uploded";
            }
            else
            {
                lblHead.Text = "No file selected";
            }


So tell me solutions bcoz I am not very familiar with radtelerik controls /.
Navin
Top achievements
Rank 1
 answered on 15 Oct 2012
5 answers
51 views
Hi,

there is an error message pop up "Error while executing filter PdfExportFilter - [object error]" when i open a page using telerik radeditor. This message only appears for that particular content(suspecting is because of the content that causes such error).

after some investigation, i deactivate the contentfilter PDFExportFilter, the message no longer pop up. can i know what is the cause of the error display?

Regards.
Rumen
Telerik team
 answered on 15 Oct 2012
8 answers
238 views
Hi

I was just wondering if there is a way of retrieving the recurrence rule in javascript when you edit an appointment. I want to retireve it while inside the advanced edit form. Something like get_recurrenceRule().
Princy
Top achievements
Rank 2
 answered on 15 Oct 2012
1 answer
95 views
I'm having some issues with the display of a RadGrid in a printer friendly window.  I have a simple RadWindow that combines multiple elements (RadGrids and other divs) into a single printable flow.  When the window is opened the following code runs to generate the content:
var multiPage = $find('<%= InquiryDetailNotesMultiPage.ClientID %>');
var tabStrip = $find("<%= InquiryDetailNotesTabStrip.ClientID %>");
var baseId = "<%= CombinedNotesArea.ClientID %>".replace("CombinedNotesArea", "");
var baseGridId = "<%= InquiryDetailCombinedGrid.ClientID %>".replace("InquiryDetailCombinedGrid", "");
var views = multiPage.get_pageViews();
var tabs = tabStrip.get_tabs();
 
var additionalInformationHtml = "";
for (var i = 0; i< views.get_count(); i++) {
    var view = views.getPageView(i);
    var tab = tabs.getTab(i);
    var grid = $find(baseGridId + "InquiryDetail" + tab.get_text().replace(" ", "") + "Grid");
    if (grid) {
        additionalInformationHtml = "Additional Information - ";
        additionalInformationHtml += tab.get_text();
        additionalInformationHtml += view.get_element().children[0].outerHTML;
    }
    document.getElementById(baseId + tab.get_text().replace(" ", "") + "NotesArea").innerHTML = additionalInformationHtml;
}
This basically iterates a tabstrip/multipage and grabs the grids on each then takes injects the html of each into a pre-defined area on "Print Preview" window.  This works fine and the content looks correct.  After clicking a print button a separate script is called that takes this content and passes it to an iFrame and calls print() as described here:  http://www.telerik.com/support/kb/aspnet-ajax/window/printing-the-contents-of-a-radwindow.aspx.  I am also trying to maintain the grid styles as described here: http://www.telerik.com/community/code-library/aspnet-ajax/grid/print-radgrid-contents.aspx.  This is my print function:
function CallPrint() {
    var content = $get("<%= PrintableArea.ClientID %>").innerHTML;
    var styleSheet = '<%= Telerik.Web.SkinRegistrar.GetWebResourceUrl(Page, InquiryDetailOnlineActivityGrid.GetType(), String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css", InquiryDetailOnlineActivityGrid.Skin)) %>';
    var baseStyleSheet = '<%= Telerik.Web.SkinRegistrar.GetWebResourceUrl(Page, InquiryDetailOnlineActivityGrid.GetType(), "Telerik.Web.UI.Skins.Grid.css") %>';
    //remove any script elements
    content = content.replace( /<script .*?>(.|\n)*?<\/script>/gi , "");
 
    var printIframe = $get("ifmcontentstoprint");
    var printDocument = printIframe.contentWindow.document;
    printDocument.designMode = "on";
    printDocument.open();
    printDocument.write("<html><head><link href = '" + styleSheet + "' rel='stylesheet' type='text/css'><link href = '" + baseStyleSheet + "' rel='stylesheet' type='text/css'></head><body>" + content + "</body></html>");
    printDocument.close();
    try {
        if (document.all) {
            printDocument.execCommand("Print", null, false);
        }
        else {
            printIframe.contentWindow.print();
        }
 
    }
    catch (ex) {
        alert("error printing");
    }
}

Unfortunately what comes back is a little odd.  Not all of the styling is there and the print appears to be inserting some odd page breaks based on the content.  See attached screenshots for examples.  I'm sure I'm missing something simple here.  Any help would be appreciated.
Daniel
Telerik team
 answered on 15 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?