Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
136 views
nevermind, you can disregard this post I figured this out!

Thanks!
Mike
Top achievements
Rank 1
 asked on 12 Feb 2010
1 answer
123 views
I edit webpages in a browser editor. I have googled one of the editor CSS style names and traced it to RadDock and hence to this forum. Would this editor be a derived application or a product of RadDock? I am seeking knowledge on configuring the Editor CSS styles. If someone could point me in the right direction I'd be grateful.

Many thanks for your time.
Schlurk
Top achievements
Rank 2
 answered on 12 Feb 2010
1 answer
118 views
Hi Guys,

I want to include a progress area in my companies new web portal, but when I add it to the page it just won't show up at all. It is clearly there in the design view but just doesn't want to work. I have also tried just to create a simple test project and it does not show on that project either. I have done all of the necessary registations for the config file. I have also looked at your support page at:

http://www.telerik.com/help/aspnet-ajax/upload_troubleshootingnoradprogressarea.html

..But I cannot see what I am doing wrong.

Here is the code for my test project:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ 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></title
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
    <telerik:RadProgressManager ID="RadProgressManager1" runat="server" /> 
    <div> 
        <telerik:RadUpload ID="RadUpload1" runat="server" TargetFolder="~/Upload" OverwriteExistingFiles="true" /> 
        <br /> 
        <asp:Button ID="btnSubmit" runat="server" Text="Submit" onclick="btnSubmit_Click" /> 
        <telerik:RadProgressArea ID="RadProgressArea1" runat="server" /> 
    </div> 
    </form> 
</body> 
</html> 
 

Also here is my config file:

<?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\v2.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.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> 
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> 
        <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> 
      </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> 
        --> 
    <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" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <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" /> 
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> 
    </httpModules> 
  </system.web> 
  <system.codedom> 
    <compilers> 
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"
        <providerOption name="CompilerVersion" value="v3.5" /> 
        <providerOption name="WarnAsError" value="false" /> 
      </compiler> 
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"
        <providerOption name="CompilerVersion" value="v3.5" /> 
        <providerOption name="OptionInfer" value="true" /> 
        <providerOption name="WarnAsError" value="false" /> 
      </compiler> 
    </compilers> 
  </system.codedom> 
  <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" /> 
      <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" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" 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" /> 
      <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" /> 
    </handlers> 
  </system.webServer> 
  <runtime> 
    <assemblyBinding 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> 

Cheers,

Ian W





Veselin Vasilev
Telerik team
 answered on 12 Feb 2010
2 answers
145 views
I am using 2008 q2 and I have a chart that the legend is overlapping the chart.  how can I get it so it doesnt do this.
John Giblin
Top achievements
Rank 1
 answered on 12 Feb 2010
1 answer
99 views
Hi-

Is it possible to put a RadDock inside a RadPanelItem and have it dock to other docks on the page. Trying to create a "menu" of docks. Also, is it possible that when the dock is dropped to a zone, it copies to the zone leaving the original. Again, like a menu of docks that can be placed in zones on a page.


Thanks
Yana
Telerik team
 answered on 12 Feb 2010
3 answers
151 views
I have a RadGrid that draws its data from a SP that is effectively the hours user load on a system by day sorted newest to oldest.

Date,0000,0100,0200,...2200,2300
2/10/2010, 12,45,65,....32,10
2/9/2010, 9,56,123,....65,23


I set the Page Size to 7  to effectively show me the last 7 days of data in the grid.  I ahve created a RadChart above the grid and would like it to display each of the 7 days  on the chart with the X-Axis being the Hour of the Day, and the legend reflecting the data.

aspx page
<asp:Content ID="Content2" runat="Server" ContentPlaceHolderID="Main">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
 
    <script type="text/javascript" language="javascript">  
        function onRequestStart(sender, args) {  
            if (args.get_eventTarget().indexOf("imgbtn_xls") >= 0 ||  
                    args.get_eventTarget().indexOf("imgbtn_doc") >= 0) {  
 
                args.set_enableAjax(false);  
            }  
        }  
    </script> 
 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="ReportGrid">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ReportGrid" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <div class="boxlist" style="width: 1020px; left: -2px; top: 5px;">  
        <table width="100%">  
            <tr> 
                <th class="shaded" width="100%" colspan="2">  
                    <%=(string)Session["myPageName"] %> 
                </th> 
            </tr> 
            <tr> 
                <td> 
                </td> 
                <th style="text-align: right;">  
                    <input type="button" value="Admin Home" onclick="location.href='Admin_Home.aspx'" /> 
                </th> 
            </tr> 
        </table> 
        <table width="100%">  
            <tr> 
                <th> 
                    Page Hits by Day  
                </th> 
            </tr> 
            <tr> 
            <td> 
            <telerik:RadChart ID="RadChart1" runat="server" Height="350px" Width="1010px" Skin="default" 
             Legend-Visible="false"   
            ChartTitle-TextBlock-Text="Page Statistics by Day (7 day view)" DefaultType="Line">  
             
 
 
 
<Legend Visible="False">  
<Appearance Visible="False"></Appearance> 
</Legend> 
             
 
        </telerik:RadChart> 
 
            </td> 
            </tr> 
            <tr> 
                <td style="text-align: right;">  
                    <table> 
                        <tr> 
                            <td> 
                                <asp:ImageButton ID="imgbtn_xls" runat="server" AlternateText="Export to Excel" ImageUrl="~/images/xls.png" 
                                    OnClick="imgbtn_xls_Click" /> 
                            </td> 
                            <td> 
                                <asp:ImageButton ID="imgbtn_doc" runat="server" AlternateText="Export to Word" ImageUrl="~/images/doc.png" 
                                    OnClick="imgbtn_doc_Click" /> 
                            </td> 
                        </tr> 
                    </table> 
                </td> 
            </tr> 
            <tr> 
                <td> 
                    <telerik:RadGrid ID="grdApplicationStatistics" runat="server" ExportSettings-IgnorePaging="true" 
                        HeaderStyle-Font-Bold="true" Font-Names="tahoma" PageSize="7" AllowPaging="true"   
                        Width="1010px" Skin="Default" EnableEmbeddedSkins="false" OnPageIndexChanged="grdApplicationStatistics_PageIndexChanged">  
                        <ExportSettings IgnorePaging="true" FileName="PageStatsbyDay" OpenInNewWindow="true" 
                            ExportOnlyData="false">  
                        </ExportSettings><PagerStyle Mode="NextPrev" /> 
 
                        <ClientSettings EnableRowHoverStyle="true">  
                            <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" 
                                AllowColumnResize="True"></Resizing> 
                            <Selecting AllowRowSelect="true" /> 
                        </ClientSettings> 
                        <MasterTableView PageSize="7">  
                        </MasterTableView> 
                    </telerik:RadGrid> 
                </td> 
            </tr> 
        </table> 
    </div> 
</asp:Content> 

codebehind page
using System;  
using System.Collections;  
using System.ComponentModel;  
using System.Data;  
using System.Drawing;  
using System.Configuration;  
 
using System.Web;  
using System.Web.SessionState;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Web.UI.HtmlControls;  
using Telerik.Web.UI;  
using Telerik.Charting;   
 
namespace XXXXXXXXXX.XXXXXX{  
    /// <summary> 
    /// Summary description for Stats.  
    /// </summary> 
    public partial class PTOPageStatsbyDay : PTOBasePage  
    {  
 
        protected void Page_Load(object sender, System.EventArgs e)  
        {  
            Session["myPageName"] = "PTO Page Stats by Day";  
            this.Master._pageLabel = (string)Session["myPageName"];  
            Session["HelpPage"] = "";  
 
            //label_myPageName.Text = (string)Session["myPageName"];  
 
            if (!IsPostBack)  
            {  
                User user = (User)Session["USER"];  
                //Insure that the user has proper credentials for this page.  
                if (!user.Sys_Role.Equals("S"))  
                {  
                    Response.Redirect((String)ConfigurationManager.AppSettings["SYS_NOAUTH_PAGE"]);  
                    Application["i"] = null;  
                }  
                getData();  
            }  
            grdApplicationStatistics.MasterTableView.RenderColumns[1].Display = false;  
 
        }  
        protected void getData()  
        {  
 
            DataAccess da = new DataAccess();  
 
            DateTime dt = DateTime.Now;  
            // Get year, month, and day  
            int year = dt.Year;  
            DataSet ds = da.Report_PageStatisticsbyDay(year);  
            grdApplicationStatistics.DataSource = ds;  
            grdApplicationStatistics.DataBind();    
 
            RadChart1.DataSource = ds;  
            int curIndex = grdApplicationStatistics.CurrentPageIndex;  
            int myStart = (curIndex-1)*grdApplicationStatistics.PageSize;  
            int myEnd = (curIndex) * grdApplicationStatistics.PageSize;  
            int myCntr = 0;  
            foreach (ChartSeries series in RadChart1.Series)  
            {  
                series.Appearance.LabelAppearance.Visible = false;  
                series.Visible = false;  
                if (myCntr >=myStart && myCntr<=myEnd)  
                    series.Visible = true;  
            }     
            myCntr++;  
 
 
            RadChart1.DataBind();  
 
        }  
        protected void grdApplicationStatistics_PageIndexChanged(object source, Telerik.Web.UI.GridPageChangedEventArgs e)  
        {  
            getData();  
        }  
        protected void imgbtn_xls_Click(object sender, System.EventArgs e)  
        {  
            grdApplicationStatistics.AllowPaging = false;  
            grdApplicationStatistics.ExportSettings.IgnorePaging = true;  
            getData();  
            grdApplicationStatistics.MasterTableView.ExportToExcel();  
        }  
 
        protected void imgbtn_doc_Click(object sender, System.EventArgs e)  
        {  
            grdApplicationStatistics.AllowPaging = false;  
            grdApplicationStatistics.ExportSettings.IgnorePaging = true;  
 
            getData();  
            grdApplicationStatistics.MasterTableView.ExportToWord();  
        }  
        #region Web Form Designer generated code  
        override protected void OnInit(EventArgs e)  
        {  
            //  
            // CODEGEN: This call is required by the ASP.NET Web Form Designer.  
            //  
            InitializeComponent();  
            base.OnInit(e);  
        }  
 
        /// <summary> 
        /// Required method for Designer support - do not modify  
        /// the contents of this method with the code editor.  
        /// </summary> 
        private void InitializeComponent()  
        {  
 
        }  
        #endregion  
    }  
}  
 

1) How do I get the RADChart to chart the data so that I have 7 series (one for each day displayed on the radgrid), and allow the 24 fields to be charted in the series.
2) Handle going to the next page and refreshing the RadChart to the RadGrid Display

I have been trying (with very little luck) for far too many hours to lick this, any help would be greatly appreciated..


Thanks
Harry Anderson
harry.k.anderson@wellsfargo.com
Harry Anderson
Top achievements
Rank 1
 answered on 12 Feb 2010
4 answers
134 views
On the advanced form, when I try to set up a monthly recurring appointment for a specific day of the month, for instance the first weekend or the first monday or the second tuesday etc... I cannot seem to create a valid RecurrenceRule object from the recurrence rule string I get from the scheduler.

Here's a sample rule string

"DTSTART:20091128T000000Z\r\nDTEND:20091128T010000Z\r\nRRULE:FREQ=MONTHLY;INTERVAL=1;BYSETPOS=NaN;BYDAY=\r\n\r\n"

Here's my code that works for every other recurrence expect the specific month.

                    RecurrenceRule parsedRule;  
                    RecurrenceRule.TryParse(appointment.RecurrenceRule, out parsedRule); 


Anyone know what gives?
It looks like the control is not setting the BYDAY properly.

Cheers.
Peter
Telerik team
 answered on 12 Feb 2010
1 answer
141 views

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)

 

{

}

}

}

Pavlina
Telerik team
 answered on 12 Feb 2010
2 answers
147 views
Hello Friends

I had hide refresh text and its icon from the code behind its workging fine.

I am also showing  the exporttoexcel,exporttopdf icon right side of the grid in header its also wok fine.

Now how i will hide pipe(|) symbol from the grid header?

Thansk & Regards
Jignesh Patel

Jignesh
Top achievements
Rank 1
 answered on 12 Feb 2010
2 answers
181 views
Hi, your RadWindow component is really smart and usefull thing, but i have at moment following problem:
I try to call open or radopen function from onload event of browser window to dynamically create some radwindow objects on the page.
But in every case is result of "$find("RadWindowManage1")" null. Why ? If i try to get RadWindowManager by
 "$get("RadWindowManage1")", object is indeed present but still not ready for use of their JS functions.
It seems the needed javascript funcionality is not yet present at this moment.
Could you give me some advise how to use that object during loading of the page ?
See attached aspx.
Thaks for your answer.

<%@ 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>

milan masat
Top achievements
Rank 1
 answered on 12 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?