Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
128 views
 Hi Im building a calendar in which the headline of the entry is showed up and opon hover the radtooltip shows up..
In order to do that I'm assuming I have to create a custom template for every entry since what shows up on the calendar is the id for each template...

I have created database tables and have a loop that adds the special days to the radCalendar control: 
when I run this it does fill the grid but it puts the date of the cell on each cell of the calendar which is not what I want.

Do While dr.Read()
                 Dim d As New DateTime()
                 Dim s As String = ""
                 Dim NewDay As New RadCalendarDay(RadCalendar1)
                 '---------------------------------Date
                 If Not IsDBNull(dr("evnDate")) Then
                     d = dr("evnDate")
                 Else
                     d = System.DateTime.Now
                 End If
 
                 NewDay.Date = New DateTime(d.Year, d.Month, d.Day)
                 '---------------------------------Repeat
                 If Not IsDBNull(dr("evnRepeats")) Then
                     s = dr("evnRepeats")
                 End If
 
                 Select Case s
                     Case "Monthly"
                         NewDay.Repeatable = RecurringEvents.DayAndMonth
                     Case "Daily"
                         NewDay.Repeatable = RecurringEvents.DayInMonth
                     Case "Weekly"
                         NewDay.Repeatable = RecurringEvents.Week
                     Case ""
                         NewDay.Repeatable = RecurringEvents.None
                 End Select
                 '-------------------------------------Tooltip
                 If Not IsDBNull(dr("evnToolTip")) Then
                     NewDay.ToolTip = dr("evnToolTip")
                 End If
                 '-------------------------------------TemplateID, but first Create TEmplate,
                 '                                   in order to create template create div
 
                  
 
                 'Dim newT As New DayTemplate()
                 'newT.Controls.Add(cDiv)
                 'newT.ID = cDiv.InnerHtml.Replace(" ", "")
 
 
 
                 'If RadCalendar1.CalendarDayTemplates.Contains(newT) Then
                 '    RadCalendar1.CalendarDayTemplates.Add(newT)
                 'End If
                 'NewDay.TemplateID = newT.ID
 
                 'RadCalendar1.SpecialDays.Add(NewDay)
 
                 Dim cDiv As New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
                 cDiv.Attributes("class") = "rcTemplate rcDayMortgage"
 
                 If Not IsDBNull(dr("evnTemplateID")) Then
                     cDiv.InnerHtml = dr("evnTemplateID")
                 ElseIf dr("evnTemplateID") = "" Then
                     cDiv.InnerHtml = "Calendar Entry"
                 Else
                     cDiv.InnerHtml = "Calendar Entry"
                 End If
 
                 cDiv.ID = cDiv.InnerText
                 Dim template As New CalendarCellContentTemplate(RadCalendar1, d, cDiv, NewDay.Repeatable)


Then Also I have grabbed this piece of code from your website that implements Itemplate to add the template to the Grid

Public Class CalendarCellContentTemplate
       Implements ITemplate
 
       Private cellContent As Control
       Public Sub New(ByVal calendarInstance As RadCalendar, ByVal cellDate As DateTime, ByVal cellContent As Control, _
                      ByVal repeat As Telerik.Web.UI.Calendar.RecurringEvents)
           Dim spec As RadCalendarDay
           Me.cellContent = cellContent
 
           spec = calendarInstance.SpecialDays(calendarInstance.SpecialDays.IndexOf(cellDate))
 
           If spec Is Nothing Then
               spec = New RadCalendarDay()
               spec.Date = cellDate
               spec.TemplateID = "BirthdayTemplate"
               calendarInstance.SpecialDays.Add(spec)
           End If
 
           Dim template As New DayTemplate
           template.ID = cellContent.ID
           template.Content = Me
 
           spec.Repeatable = repeat
           calendarInstance.CalendarDayTemplates.Add(template)
       End Sub
 
       Public Sub InstantiateIn(ByVal container As System.Web.UI.Control) Implements System.Web.UI.ITemplate.InstantiateIn
           container.Controls.Add(Me.cellContent)
       End Sub
   End Class

Tsvetina
Telerik team
 answered on 30 Mar 2011
2 answers
86 views
All,

I am using Reseller Hosting - no execute permissions. I need to add ASP.NET Controls (particularly the Scheduler) to my Hosting Space by FTPing files from my Development PC to Hosting.

I have been pointed to this Help Link...

http://www.telerik.com/help/aspnet-ajax/introduction-all-conrols-from-zip.html

...but it doesn't explain how. Could omeone point me to a link or explain here explains how I go about this?

Cheers
Kevin
Peter
Telerik team
 answered on 30 Mar 2011
1 answer
98 views
I am trying to find out some informaiton on the 2d transformation matrix that is used in the set_scrollAnimationOptions of a Rotator control.  Specifically what the matrix elements represent and how it effects the coverflow items.  I've used the demo code but it is all trial and error and i can't find ANY documentation on this feature.

any assistance appreciated.
thanks
Jordan
Niko
Telerik team
 answered on 30 Mar 2011
5 answers
69 views
I have a RadGrid, and I am using a Form Template for editing the records in the grid.  In the template, I have a RadNumericTextBox with AllowRounding set to false, and AllowOutOfRangeAutoCorrect set to false.  I am binding to the DbValue property, and when I edit a record which has a value that is outside of the MinValue and MaxValue, it is still auto-correcting the value.  Is there something I am missing?
Iana Tsolova
Telerik team
 answered on 30 Mar 2011
1 answer
125 views
i want to check the file(image)  size on client side if file size grater than 100 MB
When i tried to upload the image file that time if user upload the file grater than 100 mB then show the error message file size grater ...  Need to check this validation using java script and custom validation




Thanks
Rahul



Shinu
Top achievements
Rank 2
 answered on 30 Mar 2011
1 answer
102 views
Hello admin,

I am using the radscheduler  in our project. Everything is working fine on the local machine. Also the precompiled code runs finely on the local machine. But after uploding the same to staging server some of the fuction of the scheduler not working properly. I am unable to track the issue. The local machine is configured with windows 2007 whereas staging server  has windows 2003.
Following is the handlers section for web.confing. 

<
handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/><remove name="UrlRoutingHandler"/>
<add name="HtmlPages" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32"/>
<add name="Exececute Xml Package" preCondition="integratedMode" path="execpackage.aspx" verb="*" type="ExecXmlPackage"/>
<add name="Chart Image Handler" path="ChartImage.axd" verb="*" preCondition="integratedMode" type="Telerik.Web.UI.ChartHttpHandler"/>
<add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*"/>
<add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode"/>
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource,Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
<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="UrlRoutingHandler" verb="*" path="UrlRouting.axd" preCondition="integratedMode" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/></handlers>
when I double click on the timeslot of the scheduler the modal form opens but whe i tried to select the time from the date picker, nothing happens on the form save,cancel, close buttons also do not work. While the same runs fine on the local machine. Also i tried to hide the recurrence editor check box using following code -
function OnClientFormCreated(sender, eventArgs) {
            var $ = $telerik.$;
            $('.RecurrenceEditor').hide();
        }
This works on local machine but not on the staging site. How can i resolve this problem ? All the devlopement has been done.
please reply soon.

Thanks,
roshani
Peter
Telerik team
 answered on 30 Mar 2011
1 answer
96 views
Hi Team,

I have a requirement that
   1. we have placed a radgrid now which has 250 columns in it.
   2.we have a zoom-in /zoom-out functionality , when zoom-in we had used a radwindow were the radgrid that we are placing the usercontrol will appear in the radwindow, but we were not able to do any operation on that.
Following are the details that we were doing:

<telerik:radgrid id="" runat="server">
</telerik:radgrid>
<telerik:RadWindow ID="RadWindow2" runat="server" Modal="true" ReloadOnShow="false"
            Behaviors="Maximize,Pin" VisibleStatusbar="false" VisibleTitlebar="false" InitialBehaviors="Maximize,Pin"
            Left="0" Top="-10" Height="100%" Width="100%" OnClientShow="onRadWindowShow"
            AutoSize="true" AutoSizeBehaviors="Height,Width" BackColor="White" EnableEmbeddedBaseStylesheet="false"
            EnableEmbeddedSkins="false" KeepInScreenBounds="false">
            <ContentTemplate>
                <div id="popupdiv" style="left: 0; top: -10; size: auto; width: 100%; height: 100%;
                    background-color: White;">
                </div>
            </ContentTemplate>
        </telerik:RadWindow>
<asp:HiddenField ID="radWindowShowHide" runat="server" />

  function zoomInWindow()
    {                  
        var oWnd = $find("<%=RadWindow2.ClientID%>");
        var container = document.getElementById('griddiv');
        var content = document.getElementById('popupdiv');
        var dialog = document.getElementById('changediv');
        var table = document.getElementById('tablediv');
        table.style.display = 'none';
        dialog.removeChild(container);
        content.appendChild(container);
        oWnd.set_width(400);
        oWnd.set_height(630);
        oWnd.show();          
        var btn=document.getElementById('<%=ImageButton1.ClientID%>');
        var btn1=document.getElementById('<%=ImageButton2.ClientID%>');
        btn.style.display = 'none';
        btn1.style.display = 'block';
        var hdn1=document.getElementById('<%=radWindowShowHide.ClientID%>');
        hdn1.value="0";
    }
    
    function zoomOutWindow()
    {
        var oWnd = $find("<%=RadWindow2.ClientID%>");
        oWnd.Close();
        var btn=document.getElementById('<%=ImageButton2.ClientID%>');
        btn.style.display = 'none';
        var btn1=document.getElementById('<%=ImageButton1.ClientID%>');
        btn1.style.display = 'block';
        var container = document.getElementById('griddiv');
        var content = document.getElementById('popupdiv');
        var dialog = document.getElementById('changediv');
        var table = document.getElementById('tablediv');
        table.style.display = 'block';
        content.removeChild(container)
        dialog.appendChild(container);
        var hdn1=document.getElementById('<%=radWindowShowHide.ClientID%>');
        hdn1.value="1";        
    }
        
    function ShowHide()
    {
        var hdn1=document.getElementById('<%=radWindowShowHide.ClientID%>');
        var btn=document.getElementById('<%=ImageButton1.ClientID%>');
        var btn1=document.getElementById('<%=ImageButton2.ClientID%>');
        if(hdn1.value=="0")
        {
            btn.style.display = 'none';
            btn1.style.display = 'block';
        }
        else
        {

            btn.style.display = 'block';
            btn1.style.display = 'none';
        }
    }


Here when click on the image zoom-in only the radwindow was displaying grid just for view ,not able to do any save.
So we thought of putting the radgrid inside radwindow and when zoom-in only we have resize the radwindow.
but when we placed radgrid inside radwindow nothing displayed.
this radgrid is in usercontrol.
Please suggest on this, if you have any code snippet please do share.

Thank you,
Preeti
Svetlina Anati
Telerik team
 answered on 30 Mar 2011
3 answers
135 views

Colleagues,

Who knows if it is possible to add a horizontal line showing the actual time to the RadScheduler for ASP.NET? It must move from top to bottom, as time passes, similar to what we can see in the Outlook’s calendar?

Regards,

- Stepan.

Veronica
Telerik team
 answered on 30 Mar 2011
10 answers
214 views
Is there a way when setting an appointment to have the time picker expanded to show more than just 8:00 am to 5:30 pm?
Peter
Telerik team
 answered on 30 Mar 2011
1 answer
47 views
Hi All,
I want to set a flag value whenever I close child Radwindow, and get that flag value on Parent radwindow, If any one have Idea how could i do this???
Shinu
Top achievements
Rank 2
 answered on 30 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?