Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
Hola,

I've created a usercontrol for our sitefinity portal to display our calendar information. Nothing very fancy just using pretty a pretty standard RadScheduler control and RadCalendar controls for naviagation. The code is pretty much identical to the Radscheduler demo page.

The control works perfectly in it's stand alone project. However, when I added it to a page in sitefinity all of the navigation and filtering work perfectly except for the monthview and weekview links. Clicking them doesn't bring up the appropriate view. In debugging, clicking those links never seem to make it back to the page view. Is there anything I need to add to get this working? We have other RadSchedulers in sitefinity that work just fine.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MasterCalendar.ascx.cs" 
    Inherits="edu.yale.som.mastercalendar.usercontrol.MasterCalendar" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<link href="SOMCalendarStyles.css" rel="stylesheet" type="text/css" /> 
<!-- Loading Manager --> 
<telerik:RadAjaxManager runat="Server" ID="RadAjaxManager1"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadCalendar1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadCalendar2" /> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="RadCalendar2"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadCalendar1" /> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="RadScheduler1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="chkCourses"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="chkGeneral"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="chkCareer"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="chkAdministration"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="chkCenters"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="chkFaculty"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="chkStudent"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007" /> 
<telerik:RadSplitter runat="server" ID="RadSplitter1" PanesBorderSize="0" Width="734px" 
    Height="590px" Skin="Office2007"
    <telerik:RadPane runat="Server" ID="leftPane" Width="220px" MinWidth="220" MaxWidth="300" 
        Scrolling="None"
        <!-- Upper Mini Cal --> 
        <telerik:RadCalendar runat="server" ID="RadCalendar1" Skin="Office2007" AutoPostBack="true" 
            EnableMultiSelect="false" DayNameFormat="FirstTwoLetters" EnableNavigation="true" 
            EnableMonthYearFastNavigation="false" OnSelectionChanged="RadCalendar1_SelectionChanged" 
            OnDefaultViewChanged="RadCalendar1_DefaultViewChanged"
        </telerik:RadCalendar> 
        <!-- Future Mini Cal --> 
        <telerik:RadCalendar runat="server" ID="RadCalendar2" Skin="Office2007" AutoPostBack="true" 
            EnableMultiSelect="false" DayNameFormat="FirstTwoLetters" EnableNavigation="false" 
            EnableMonthYearFastNavigation="false" OnSelectionChanged="RadCalendar2_SelectionChanged"
        </telerik:RadCalendar> 
        <!-- Calendar Filter --> 
        <telerik:RadPanelBar runat="server" Skin="Office2007" ID="PanelBar" Width="100%"
            <Items> 
                <telerik:RadPanelItem runat="server" Text="Calendars" Expanded="true"
                    <Items> 
                        <telerik:RadPanelItem runat="server"
                            <ItemTemplate> 
                                <div class="rpCheckBoxPanel"
                                    <div class="General"
                                        <asp:CheckBox ID="chkGeneral" runat="server" Text="General" Checked="true" AutoPostBack="true" 
                                            OnCheckedChanged="chk_OnCheckedChanged" EnableViewState="true"/><br /> 
                                    </div> 
                                    <div class="Administration"
                                        <asp:CheckBox ID="chkAdministration" runat="server" Text="Administration" Checked="true" 
                                            AutoPostBack="true" OnCheckedChanged="chk_OnCheckedChanged" EnableViewState="true"/><br /> 
                                    </div> 
                                    <div class="Career"
                                        <asp:CheckBox ID="chkCareer" runat="server" Text="Career" Checked="true" AutoPostBack="true" 
                                            OnCheckedChanged="chk_OnCheckedChanged" EnableViewState="true"/><br /> 
                                    </div> 
                                    <div class="Courses"
                                        <asp:CheckBox ID="chkCourses" runat="server" Text="Courses" Checked="true" AutoPostBack="true" 
                                            OnCheckedChanged="chk_OnCheckedChanged" EnableViewState="true"/><br /> 
                                    </div> 
                                    <div class="Centers"
                                        <asp:CheckBox ID="chkCenters" runat="server" Text="Centers & Programs" Checked="true" 
                                            AutoPostBack="true" OnCheckedChanged="chk_OnCheckedChanged" EnableViewState="true"/><br /> 
                                    </div> 
                                    <div class="Faculty"
                                        <asp:CheckBox ID="chkFaculty" runat="server" Text="Faculty" Checked="true" AutoPostBack="true" 
                                            Visible="true" OnCheckedChanged="chk_OnCheckedChanged" EnableViewState="true"/><br /> 
                                    </div> 
                                    <div class="Student"
                                        <asp:CheckBox ID="chkStudent" runat="server" Text="Student Organizations" Checked="true" 
                                            AutoPostBack="true" OnCheckedChanged="chk_OnCheckedChanged" EnableViewState="true"/><br /> 
                                    </div> 
                                </div> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelBar> 
    </telerik:RadPane> 
    <telerik:RadSplitBar runat="server" ID="RadSplitBar2" CollapseMode="Forward" /> 
    <telerik:RadPane runat="Server" ID="rightPane" Scrolling="None" Width="680px"
        <!-- Main Cal --> 
        <telerik:RadScheduler ID="RadScheduler1" runat="server" Skin="Office2007" EnableEmbeddedSkins="true" 
            AllowDelete="False" AllowEdit="False" AllowInsert="False" DataEndField="Meeting_End" 
            DataKeyField="Reservation_ID" DataRecurrenceField="Recurrence" DataRecurrenceParentKeyField="Recurrence_ID" 
            DataStartField="Meeting_Start" DataSubjectField="General_Meeting_Title" FirstDayOfWeek="Monday" 
            HoursPanelTimeFormat="htt" LastDayOfWeek="Sunday" ReadOnly="True" Style="top: 0px; 
            left: 0px; height: 590px; width: 680px;" ValidationGroup="ctl00_RadScheduler1" 
            DataMember="DefaultView" WeekView-GroupingDirection="Horizontal" ShowHeader="true" 
            OverflowBehavior="Scroll" TimelineView-UserSelectable="false" EnableDatePicker="false" 
            CustomAttributeNames="Category" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
            <MonthView AdaptiveRowHeight="True" ReadOnly="True" /> 
            <MultiDayView ReadOnly="True" /> 
            <TimelineView ReadOnly="True" /> 
            <DayView ReadOnly="True" /> 
            <WeekView ReadOnly="True" /> 
        </telerik:RadScheduler> 
    </telerik:RadPane> 
</telerik:RadSplitter> 
 
derek
Top achievements
Rank 2
 answered on 01 Jul 2009
0 answers
142 views
Hi,

    I am performing drag and drop from one treeview to another treeview but the problem is from treeview1 if i select one node and drop in tree2 it work fine but if i drop some other node from tree1 to tree2 than the same previous node added again in tree2.

but if i double click on tree1 nodes and add it works fine.

Another problem is expanding and collasping in treeview which is + image and - image: 
 whenever i hover over expand and collasp i loose my image.

let me know if you have some solution.

thanks,
AShi
Ashish Jain
Top achievements
Rank 1
 asked on 01 Jul 2009
2 answers
113 views
hi i would like to center my menu or may be make the width 800 and then spread out all the items evenly. thanks
David
Top achievements
Rank 1
 answered on 01 Jul 2009
6 answers
308 views
I have a RadGrid which has several column that are asp:DropDownList inside and itemtemplate.  One of these dropdownlist has a selection that if selected needs to validate a RadDatePicker.  All I need to do is have the RadDatePicker required if the dropdowlist has a certain value selected. 

Listed below, if someone clicks on "Weekly-PM"  I need to require the RadDateThru.  Thanks for your help.

<telerik:GridTemplateColumn HeaderText="Time" Groupable="false">  
   <ItemTemplate> 
       <asp:DropDownList ID="DropDownListTime" AutoPostBack="true" runat="server">  
            <asp:ListItem Text="Not Set" Value="0" /> 
            <asp:ListItem Text="Morning" Value="1" /> 
            <asp:ListItem Text="Evening" Value="2" /> 
            <asp:ListItem Text="Both" Value="3" /> 
            <asp:ListItem Text="Now" Value="4" /> 
            <asp:ListItem Text="Weekly-PM" Value="5" /> 
       </asp:DropDownList> 
       <asp:DropDownList ID="DropDownListDays" SelectionMode="Single" Enabled="false" runat="server">  
             <asp:ListItem Text="M" Value="2" /> 
             <asp:ListItem Text="T" Value="3" /> 
             <asp:ListItem Text="W" Value="4" /> 
             <asp:ListItem Text="R" Value="5" /> 
             <asp:ListItem Text="F" Value="6" /> 
       </asp:DropDownList> 
     </ItemTemplate> 
  </telerik:GridTemplateColumn> 
  <telerik:GridTemplateColumn HeaderText="Date" Groupable="false">  
      <ItemTemplate> 
         <telerik:RadDatePicker ID="RadDateThru" MinDate="2000-2-1" runat="server">  
           <DateInput ID="DateInput1" runat="server" />                                  </telerik:RadDatePicker>                                
   </ItemTemplate> 
</telerik:GridTemplateColumn> 
Mike
Top achievements
Rank 1
 answered on 01 Jul 2009
1 answer
93 views
Hi,

I am experiencing a strange behavior in RadSpell if the domain is set to a lower domain from a web page. My webpage is in a particular domain (say xx.yy.com). In order to integrate with another application in our organization I am changing the domain from javascript to a lower domain (say yy.com) on load of the page. Strangely the spell checker stops working at this point. I am receiving the following error(alert message) when I click on the spell check link.

"No radWindow found"

Upon clicking Ok on the alert box I receive a javascript error which reads "'this.ib' is null or not an object". I tried to debug the error and it appears to be in the SpellCheckDialog.js file at the following line of code.

this.Ib = this.ib.k();

Any help will be appreciated.

Thanks
-Sid
Siddhartha
Top achievements
Rank 1
 answered on 01 Jul 2009
6 answers
163 views
I have the following control
<telerik:RadTreeView   
    ID="radtree" runat="server" 
    OnDataBound="radtree_DataBound" OnDataBinding="radtree_DataBinding"   
    OnNodeExpand="radtree_NodeExpand" 
    EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False" 
    Skin="SomeSkin" OnNodeClick="radtree_NodeClick" 
    >      
    <CollapseAnimation Duration="100" Type="OutQuint" /> 
    <ExpandAnimation Duration="100" /> 
</telerik:RadTreeView> 

And here is my code behind for the event OnNodeClick:
protected void radtree_NodeClick(object sender, RadTreeNodeEventArgs e)  
{  
    RadTreeView node = (RadTreeView)sender;  

if i have defined my radtree.DataFieldID to some value is there a way in the NodeClick event to access that particular nodes DataField value?  I tried to do:
node.DataFieldID 

but this just returns the string of the column name not any particular unique id.

J
J
Top achievements
Rank 1
 answered on 01 Jul 2009
3 answers
211 views
Hello,

I have a RadWindowManager on my page and a linkbutton popping open the window. The code is set properly and it works the first time you click the link but if you close the modal and try to click the link again it gives a javascript error of "Object doesn't support this property or method". My example is below.

 

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">    
     <Windows>          
<telerik:RadWindow ID="AddPersonnel" runat="server" Title="Create New Personnel" Height="375px" Width="625px" ReloadOnShow="true" Modal="true" OnClientClose="refresh" Behavior="Close, Reload" /> 
     </Windows>      
</telerik:RadWindowManager> 
   
 
<script type="text/javascript">     
    function AddPersonnel()  {    
        window.radopen("/Portal/Modal/AddPersonnel.aspx", "AddPersonnel");      
        return false;    
    }     
</script> 
   
 
this.lnkCreatePersonnel.Attributes.Add("href", "#");      
this.lnkCreatePersonnel.Attributes.Add("onclick", "return AddPersonnel();"); 

I have also tried it using the following:

<a href="#" onclick="AddPersonnel();">Create Personnel</a>

I can't seem to fix this issue and I've tried multiple. Help would be much appreciated.

thanks,

Chad

 

 

 

 

 

Daniel Tharp
Top achievements
Rank 1
 answered on 01 Jul 2009
2 answers
183 views
Hi

          Is there any way to remove Sorting selection style from grid. I dont even want default column seletion style. I didnt apply any style to my grid. But whwn i sort any column it applies default sorting selection style to column. I dont want this option my column msut be look like asbefore the sorting selection.

Plz help me

SA
Appu
Top achievements
Rank 1
 answered on 01 Jul 2009
2 answers
85 views
I have a GridHTMLEditorColumn in my grid. When doing editing, it is the only column that tab does not work. Does anyone know how to tab out of this editor column or is there any workaround for that?

Thanks!
Ying

 

Ying
Top achievements
Rank 1
 answered on 01 Jul 2009
1 answer
186 views
Hi

I am trying to calculate a group aggregate for my grid. I am trying to calculate a SUM on a field called Distance but I get the error "Input string was not in the correct format"

I believe the problem is that the rows can have values like this: 8.72852595488195e-005

Is there anything I can do about this?

thanks

Veli
Telerik team
 answered on 01 Jul 2009
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?