Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
144 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
145 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
156 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
183 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
5 answers
159 views
Anyone have any suggestions on how to add a dock command server-side. I'm creating the commands on the fly and want to add a "reload" button (there is one on the RadWindow) and then handle that myself. But I can't seem to create a DockCommand.
Telerik.Web.UI.DockCommand.DockCommand(string, string, string, string, bool)' is inaccessible due to its protection level   


Pero
Telerik team
 answered on 12 Feb 2010
3 answers
224 views
This sounds simple enough but for the life of me I can't seem to get this wired correctly. I am creating RadDock's dynamically and I want to add Custom DockCommands to the RadDock that will call one of two server side functions. I can never seem to get the server side function to fire, what am I missing?

Here is an example of how I am creating the RadDock and the subsequent DockCommand.

RadDock rd = new RadDock();
        rd.ID = usage + "_" + "FORM_" + loadedForm.getID() + "_" + ff.getFormFieldID() + "_" + ffs.getFormFieldSettingsID();
        rd.DockMode = DockMode.Docked;
        rd.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None;
        rd.Width = 300;
        rd.Height = 80;

        DockCommand command = new DockCommand();
        command.AutoPostBack = true;
        command.Name = "Command1";

        rd.Commands.Add(command);

However, I never get anything in Command1_Command, Command1_Click etc. What piece is missing to cause the Server Side function to fire when a custom command is clicked on the RadDock?

Thank you,
Derek

Pero
Telerik team
 answered on 12 Feb 2010
1 answer
108 views

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

Shinu
Top achievements
Rank 2
 answered on 12 Feb 2010
4 answers
196 views
Hi,

I have a page which contains a RadMenu, RadGrid and RadScheduler and is taking a pretty big hit when being loaded - something close to 500 KBytes on first display so am trying RadCompression to improve this.  I have followed the information in the link below:


but have a question about the options in the browsers section.  Are the Hidden field method and session state method exclusive, or could I add both section to the browsers file?  My problem is that using the hidden field method I'm still taking a fairly large hit of 256 K in the javascript on first load in the hidden field.  

If I remove that and use session state, the Javascript obviously still has to be downloaded.  Also doing some testing the session state method does not seem to have much impact at all on the bytes sent to the client.

Finally, because my Clients have a pretty slow intranet they are complaining of crashes and other problems when large pages are loading, and they are using IE6 and I'm not sure whether that benefits from RadCompression or not as googling around seems to indicate that compression does not work on IE6.

What would be the best recommendation in this circumstance, ie:

Very slow Intranet
IE6 as the browser and unwilling or unable to change

Sorry if this post is messy, but I'm getting a lot of pressure to speed up my application, and they do actually like the look of it so I do not want to strip out the Telerik controls.

David Penny
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 12 Feb 2010
1 answer
124 views

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

 

Shinu
Top achievements
Rank 2
 answered on 12 Feb 2010
2 answers
203 views
Hi,

I'm working with the telerik:RadGrid. I need a column working as a GridHyperLinkColumn but with an image.
I try with asp:ImageButton but I don't know how indicate the parameters.

In example :

Using HyperLinkColumn with parameter ORDN40 in the DataNavigateUrlFormatString : 

<

 

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>

 


Using ImageButton  I don' know how to pass the parameter ORDN40.

<

 

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>

 


Thanks A lot!

Alex Jimenez
Top achievements
Rank 1
 answered on 12 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?